#!/usr/bin/perl
# Copyright 2001-2022 Leslie Richardson
# This file is part of Open Admin for Schools.
use DBI;
use CGI;
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.',
'Record(s) Deleted' => 'Record(s) Deleted',
'Error' => 'Error',
'Main' => 'Main',
'Attendance' => 'Attendance',
'WD = Withdrawn' => 'WD = Withdrawn',
'Not Found' => 'Not Found',
'Continue' => 'Continue',
);
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. ": $@
\n";
die $lex{Error}. ": $@\n";
}
# 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";
$dsn = "DBI:$dbtype:dbname=$dbase";
$dbh = DBI->connect($dsn,$user,$password);
$dbh->{mysql_enable_utf8} = 1;
my $q = new CGI;
print $q->header( -charset, $charset );
my %arr = $q->Vars;
# Print Page Head
my $title = $lex{'Power Delete Attendance'};
print qq{$doctype\n