#!/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.
my %lex = ('Edit' => 'Edit',
'Nominal Roll' => 'Nominal Roll',
'Main' => 'Main',
'Delete' => 'Delete',
'Error' => 'Error',
'Student' => 'Student',
'Grade' => 'Grade',
'Select' => 'Select',
'Unable to open template file:' => 'Unable to open template file:',
'Record(s)' => 'Record(s)',
'Updated' => 'Updated',
'Continue' => 'Continue',
'All' => 'All',
'Fields' => 'Fields',
'Students' => 'Students',
'Homeroom' => 'Homeroom',
'Check' => 'Check',
'Next Page' => 'Next Page',
'Blank=All' => 'Blank=All',
'Name' => 'Name',
'Moved' => 'Moved',
'Not Found' => 'Not Found',
'Record' => 'Record',
'Group' => 'Group',
'Save' => 'Save',
);
use DBI;
use CGI;
my $self = 'nrdeled.pl';
$nrtable = 'student_inac';
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;
# Print Page Header
my $title = "$lex{Edit}/$lex{Delete} $lex{'Nominal Roll'} $lex{'Record(s)'}";
print qq{$doctype\n