#!/usr/bin/perl
# Copyright 2001-2010 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 = (
'Fees' => 'Fees',
'Main' => 'Main',
'No Records Found' => 'No Records Found',
'Top' => 'Top',
'Lock Number' => 'Lock Number',
'Combination' => 'Combination',
'Comment' => 'Comment',
'Pool' => 'Pool',
'Assign Available Locks' => 'Assign Available Locks',
'Student' => 'Student',
'Assign' => 'Assign',
'Group' => 'Group',
'Grade' => 'Grade',
'Homeroom' => 'Homeroom',
'Blank=All' => 'Blank=All',
'Continue' => 'Continue',
'No Entry' => 'No Entry',
'Lock' => 'Lock',
'Locker' => 'Locker',
'Error' => 'Error',
'or' => 'or',
);
my $self = 'lockassign.pl';
use DBI;
use CGI;
use Cwd;
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;
$dbh->{mysql_enable_utf8} = 1;
# Get current dir so know what CSS to display;
my $runmode = 'main';
if ( getcwd() =~ /tcgi/){ # we are in tcgi
$css = $tchcss;
$homepage = $tchpage;
$runmode = 'teacher';
}
# Print Page Header
print "$doctype\n
". $lex{'No Records Found'}. "
\n"; print "