#!/usr/bin/perl # Copyright 2001-2007 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 = ('Date Entry' => 'Date Entry', 'EOY' => 'EOY', 'Type' => 'Type', 'StatHol' => 'StatHol', 'Inservice' => 'Inservice', 'Holiday' => 'Holiday', 'Other' => 'Other', 'Description' => 'Description', 'Day in Cycle?' => 'Day in Cycle?', 'No' => 'No', 'Yes' => 'Yes', 'Save Date' => 'Save Date', 'Date' => 'Date', 'yymmdd' => 'yymmdd', 'Add Another Date' => 'Add Another Date', 'There was an error storing your data' => 'There was an error storing your data', 'Please record the following error string' => 'Please record the following error string', 'Contact' => 'Contact', 'The date is now stored' => 'The date is now stored', ); my $self = 'dateadd0.pl'; use DBI; use CGI; my $q = new CGI; print $q->header; my %arr = $q->Vars; # Read Config variables require "../../etc/admin.conf"; my $dsn = "DBI:$dbtype:dbname=$dbase"; my $dbh = DBI->connect($dsn,$user,$password); print "$doctype\n
[ ". $lex{EOY}. " |\n"; print " ". $lex{'Add Another Date'}. " ]\n"; print "