#!/usr/bin/perl
# Copyright 2001-2009 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 Term(s)' => 'Edit Term(s)',
'Main' => 'Main',
'Report Card' => 'Report Card',
'Multi-Track Mode' => 'Multi-Track Mode',
'Cannot open the term file' => 'Cannot open the term file',
'Term(s) Updated' => 'Term(s) Updated',
'Term settings for schools that have different grade levels' =>
'Term settings for schools that have different grade levels',
'with different term numbers and dates' =>
'with different term numbers and dates',
'Term' => 'Term',
'Term values must contain digits only' =>
'Term values must contain digits only',
'Error' => 'Error',
);
use CGI;
my $self = 'termed.pl';
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;
# Multi-Track mode: different grades have a different term (K-6,7-12)
if ($multiTrack){ # read all multitrack values
foreach my $type (sort values %g_termtype){
# %g_termtype def'd in admin.conf
$termtype{$type} = 0; # nominally 'e' and 'h'
}
}
# Print start of page
print "$doctype\n