#!/usr/bin/perl # Copyright 2001-2006 Leslie Richardson # This file is part of Open Admin for Schools. # Open Admin for Schools is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. use DBI; use CGI; my @month = ('','January','February','March','April','May','June','July', 'August','September','October','November','December'); my %lex = ('Power Delete Attendance' => 'Power Delete Attendance', 'Name' => 'Name', 'Subject' => 'Subject', 'Period' => 'Period', 'Reason' => 'Reason', 'Date' => 'Date', 'Delete' => 'Delete', 'Selected Records' => 'Selected Records', 'There will be no confirmation of deletion.' => 'There will be no confirmation of deletion.', 'Your selected records are now deleted' => 'Your selected records are now deleted', 'There was an error deleting your data' => 'There was an error deleting your data', 'Attendance' => 'Attendance', 'Records' => 'Records' ); # Get Date my @tim = localtime(time); my $year = @tim[5] + 1900; my $month = @tim[4] + 1; my $day = @tim[3]; my $currdate = "$year-$month-$day"; my $currdate1 = "@month[$month] $day, $year"; require "../etc/admin.conf" or die "Cannot open admin.conf!"; $dsn = "DBI:$dbtype:dbname=$dbase"; $dbh = DBI->connect($dsn,$user,$password); $q = new CGI; print $q->header; %arr = $q->Vars; # Print Page Head print "$doctype\n
\n"; print "