#!/usr/bin/perl
# Copyright 2001-2022 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.
#NOTE: To Do: Fix yesterday, today, all at bottom (after attdeled.pl fixed).
my %lex = ('Delete' => 'Delete',
'Student' => 'Student',
'Date' => 'Date',
'Reason' => 'Reason',
'Period' => 'Period',
'Attendance' => 'Attendance',
'Delete Record' => 'Delete Record',
'Record Deleted' => 'Record Deleted',
'Contact' => 'Contact',
'Error' => 'Error',
'Main' => 'Main',
'Are you sure' => 'Are you sure',
'Today' => 'Today',
'Yesterday' => 'Yesterday',
'Another' => 'Another',
'Edit' => 'Edit',
'Delete' => 'Delete',
'Another' => 'Another',
);
my $self = 'attdel.pl';
use CGI;
use DBI;
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. ": $@
\n";
die $lex{Error}. ": $@\n";
}
my $q = new CGI;
print $q->header( -charset => $charset );
my %arr = $q->Vars;
my $dsn = "DBI:$dbtype:dbname=$dbase";
my $dbh = DBI->connect($dsn,$user,$password);
$dbh->{mysql_enable_utf8} = 1;
my $title = "$lex{Delete} $lex{Attendance}";
print qq{$doctype\n
[ $lex{Attendance} ]
}; print qq{