#!/usr/bin/perl
# Copyright 2001-2019 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 = ( 'Edit' => 'Edit',
'Transfers' => 'Transfers',
'Main' => 'Main',
'Last Name' => 'Last Name',
'First Name' => 'First Name',
'Middle Name' => 'Middle Name',
'Birthdate' => 'Birthdate',
'Update Record' => 'Update Record',
'Another' => 'Another',
'Record' => 'Record',
'Updated' => 'Updated',
'Contact' => 'Contact',
'Error' => 'Error',
'Student Number' => 'Student Number',
'Date' => 'Date',
'Type' => 'Type',
'Entry Type' => 'Entry Type',
'Exit Type' => 'Exit Type',
'Province' => 'Province',
'Country' => 'Country',
'Description' => 'Description',
'Identity Number' => 'Identity Number',
'School Enrollments' => 'School Enrollments',
);
my $self = 'transed.pl';
use CGI;
use DBI;
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. ": $@
\n";
die $lex{Error}. ": $@\n";
}
# pull in global enrol/withdraw descriptors
eval require "$globdir/global.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;
# Print Page Head
my $title = qq{$lex{Edit} $lex{Transfers}/$lex{'School Enrollments'}};
print qq{$doctype\n
[ $lex{Edit} $lex{Another} $lex{Record} | }; print qq{$lex{Main} ]
\n}; print qq{