4/9/99
All of the customisation is done in the cgi-bin/Time/Sheeting.pm file
####
#change these variables to customise the look of the database
###
sub topinc {
my $TOP_INC = '/usr/local/www/timesheet/htdocs/includes/time_top.inc';
return $TOP_INC;
}
sub botinc {
my $inc='/usr/local/www/timesheet/htdocs/includes/time_bottom.inc';
return $inc;
}
sub toptab{
my $tab='eda76f';
return $tab;
}
sub intab {
my $tab='fbe8d9';
return $tab;
}
sub abovetab {
my $tab='e2d5e4';
return $tab;
}
The topinc is the variable that points to the code that is used to generate
the menus along the top of each page.
You can either edit the time_top.inc file or create a new one and point
topinc to that.
The botinc is the same thing except it points to the code to be used at the
bottom of the page. You can change it in the same way as topinc
toptab is the colour that is used at the top of the main table on each page
if you look at http://timesheet.katipo.co.nz/cgi-bin/timesheet2.pl
(Username Guest, password Guest) toptab is the orange colour.
intab is used to set the value of the alternating colour in the table for
example on the above page intab is light orange colour
abovetab is used to specify the other colour that is used ... on the above
page abovetab is the purple/lilac colour
You can change any of these values and they will change on everypage in the
timesheet.
Apart from these changes, you are of course free to modify any of the perl
code that you see fit.
We only ask that if you make changes you share them with us also
Thanx
Chris
chris@katipo.co.nz
www.katipo.co.nz