#! /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.
# Report student final marks - 1 page per student.
my %lex = ('Cumulative Mark Report' => 'Cumulative Mark Report',
'Main' => 'Main',
'View Log File' => 'View Log File',
'View/Download' => 'View/Download',
'School Year' => 'School Year',
'Grade' => 'Grade',
'Homeroom' => 'Homeroom',
'Report Card' => 'Report Card',
'Error' => 'Error',
'A4' => 'A4',
'Letter' => 'Letter',
'Legal' => 'Legal',
'Continue' => 'Continue',
'Paper Size' => 'Paper Size',
'Select by' => 'Select by',
'Sort by' => 'Sort by',
'Blank=All' => 'Blank=All',
'Name' => 'Name',
'Show Withdrawn Students' => 'Show Withdrawn Students',
);
my $self = 'rptstudfinalmarks.pl';
use DBI;
use CGI;
# Read config variables
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. " $@ \n";
die $lex{Error}. " $@\n";
}
eval require "../../lib/liblatex.pl";
if ( $@ ) {
print $lex{Error}. " $@ \n";
die $lex{Error}. " $@\n";
}
# in order to get the additional comments value.
eval require "../../etc/repcard.conf";
if ( $@ ) {
print $lex{Error}. " $@ \n";
die $lex{Error}. " $@\n";
}
my $q = new CGI;
my %arr = $q->Vars;
print $q->header( -charset, $charset );
my ($sec, $min, $hour, $mday, $mon, $year, $wday,
$yday, $iddst) = localtime(time);
$year = $year + 1900;
$mon++; $wday++;
my $currdate = "$dow[$wday], $month[$mon] $mday, $year";
print "$doctype\n