#!/usr/bin/perl use CGI qw(:standard); print "Content-type: text/html\n\n"; print "
IN | LUNCH OUT | LUNCH IN | OUT | Total | \n"; print "||
---|---|---|---|---|---|---|
" , "$day" , " | \n"; print "" , textfield(-name => "$miniday" . "in", -size=>6) , radio_group(-name=>"$miniday" . "inampm", -values=>['am','pm']) , " | \n"; print "" , textfield(-name => "$miniday" . "lout", -size=>6) , radio_group(-name=>"$miniday" . "loutampm", -values=>['am','pm']) ," | \n"; print "" , textfield(-name => "$miniday" . "lin", -size=>6) , radio_group(-name=>"$miniday" . "linampm", -values=>['am','pm'], -default=>'pm') ," | \n"; print "" , textfield(-name => "$miniday" . "out", -size=>6) , radio_group(-name=>"$miniday" . "outampm", -values=>['am','pm'], -default=>'pm') ," | \n"; if($timeclock{$day}{time}) { print "$timeclock{$day}{time} | \n"; } else { print "" . submit(-name =>"action$day", -value=>"Fill out") . " | "; } print "
Total Time: | $timeclock{total} | \n"; print "|||||
"; print submit(-name =>"action", -value=>"Submit Time"); print " | \n"; print "\n"; print submit(-name =>"action", -value=>"Fill out All"); print " |