#!/usr/bin/perl
# Copyright 2001-2021 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.
my %lex = ('Withdraw' => 'Withdraw',
'Student' => 'Student',
'No Student(s) Found' => 'No Student(s) Found',
'Withdrawn' => 'Withdrawn',
'Contact' => 'Contact',
'Main' => 'Main',
'Error' => 'Error',
'Last,First/Last/Initials/Studnum' => 'Last,First/Last/Initials/Studnum',
'Search' => 'Search',
'Name' => 'Name',
'Birthdate' => 'Birthdate',
'Grade' => 'Grade',
'Homeroom' => 'Homeroom',
'Province' => 'Province',
'Country' => 'Country',
'Description' => 'Description',
'Reason' => 'Reason',
'Code' => 'Code',
'Transfer' => 'Transfer',
'Date' => 'Date',
'Yes' => 'Yes',
'Delete' => 'Delete',
'Insert' => 'Insert',
'Cannot open' => 'Cannot open',
'Student Number' => 'Student Number',
);
use DBI;
use CGI;
use Time::JulianDay;
my $self = 'withdraw.pl';
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. ": $@ \n";
die $lex{Error}. ": $@\n";
}
# Load audit write function
eval require "../../lib/libaudit.pl";
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;
# Page Header.
my $title = qq{$lex{Withdraw} $lex{Student}};
print qq{$doctype\n