#!/usr/bin/perl
# Copyright 2001-2008 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.
# Language Support
my %lex = ('The Tab Key = next field.' => 'The Tab Key = next field.',
'Shift+Tab = previous field.' => 'Shift+Tab = previous field.',
'The Space Bar selects a checkbox.' => 'The Space Bar selects a checkbox.',
'The Up/Down Arrow keys select pulldown menus.' =>
'The Up/Down Arrow keys select pulldown menus.',
'The Mouse kills key entry productivity.' =>
'The Mouse kills key entry productivity.',
'No Entry' => 'No Entry',
'Add Student' => 'Add Student',
'Unable to open template file' => 'Unable to open template file',
'Save Record to Student Table' => 'Save Record to Student Table',
'Save Record to Pre-Registration Table' => 'Save Record to Pre-Registration Table',
'Save Record to Waiting List' => 'Save Record to Waiting List',
'Required Field' => 'Required Field',
'Bold' => 'Bold',
'Enrollment Date' => 'Enrollment Date',
'Entry Error' => 'Entry Error',
'No Student(s) Found' => 'No Student(s) Found',
'Clone this record' => 'Clone this record',
'Error' => 'Error',
'Main' => 'Main',
);
my $self = 'sentry1.pl';
use CGI;
use DBI;
my $q = new CGI;
print $q->header;
my %arr = $q->Vars;
# strip off leading text...
$arr{entrytype} =~ s/(.*)\((.*)\)/$2/;
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. " $@
\n";
die $lex{Error}. " $@\n";
}
eval require "../../lib/libmeta.pl";
if ( $@ ) {
print $lex{Error}. " $@
\n";
die $lex{Error}. " $@\n";
}
my @tim = localtime(time);
my $year = @tim[5] + 1900;
my $month = @tim[4] + 1;
my $day = @tim[3];
my $currdate = "$year-$month-$day";
$dsn = "DBI:$dbtype:dbname=$dbase";
$dbh = DBI->connect($dsn,$user,$password);
print "$doctype\n
"$lex{'The Tab Key = next field.'}" "$lex{'Shift+Tab = previous field.'}" "$lex{'The Space Bar selects a checkbox.'}" "$lex{'The Up/Down Arrow keys select pulldown menus.'}" "$lex{'The Mouse kills key entry productivity.'}"
'. $lex{'Entry Error'}. ': '. $lex{'No Student(s) Found'}.".
\n"; print "