Index: common.awk =================================================================== --- common.awk (nonexistent) +++ common.awk (revision 17185) @@ -0,0 +1,7 @@ +function cat(fn ,tmp) +{ + close(fn) + while((getline tmp < fn) == 1) + print tmp + close(fn) +} Index: table.awk =================================================================== --- table.awk (nonexistent) +++ table.awk (revision 17185) @@ -0,0 +1,30 @@ +BEGIN { + cat("template/page_head.html") + print "" + print "" + print "" +} + +/^#/ { next } + +{ + subp=$3 + sum += ($2+0) + if ((subp == "-") || (subp == "")) + subp = " " + print "" + print " " +} + + +END { + print "" + print "

Donation Records

" + print "
DateNamesubprojectAmount Accumulated
" $1 + print " " subp + print " " $4 + print " " $2 + print " " sum + print "
" + cat("template/page_foot.html") +} \ No newline at end of file