#!/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.
%lex = ( 'Nominal Roll' => 'Nominal Roll',
'Main' => 'Main',
'Unable to open template file:' => 'Unable to open template file:',
'Select' => 'Select',
'Students' => 'Students',
'Homeroom' => 'Homeroom',
'Grade' => 'Grade',
'Blank=All' => 'Blank=All',
'Check' => 'Check',
'Next Page' => 'Next Page',
'Continue' => 'Continue',
'Error' => 'Error',
'Save' => 'Save',
'Record(s) Stored' => 'Record(s) Stored',
'Record Exists' => 'Record Exists',
'Red' => 'Red',
'Withdrawn Students' => 'Withdrawn Students',
'Show' => 'Show',
'Add' => 'Add',
'Withdrawn' => 'Withdrawn',
);
use CGI;
use DBI;
use Data::Password qw(:all); # for password checking...
my $self = 'nradd.pl';
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 $q = new CGI;
print $q->header( -charset, $charset );
my %arr = $q->Vars;
my $dsn = "DBI:$dbtype:dbname=$dbase";
$dbh = DBI->connect($dsn,$user,$password);
$dbh->{mysql_enable_utf8} = 1;
# Print Page Header
my $title = "$lex{Add} $lex{'Nominal Roll'}";
print qq{$doctype\n