#!/usr/bin/perl
# Copyright 2001-2008 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 = ('Main' => 'Main',
'Error' => 'Error',
'Edit Translation' => 'Edit Translation',
'Eoy' => 'Eoy',
'Search' => 'Search',
'Original Text' => 'Original Text',
'Translated Text' => 'Translated Text',
'Both' => 'Both',
'Continue' => 'Continue',
'Start of Phrase' => 'Start of Phrase',
'Everywhere in Phrase' => 'Everywhere in Phrase',
'Translation' => 'Translation',
'Blank=All' => 'Blank=All',
);
my $self = 'xlatTransEdit.pl';
my $maxfieldlength = 70; # max size for text input fields.
use DBI;
use CGI;
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. " $@ \n";
die $lex{Error}. " $@\n";
}
my $q = new CGI;
print $q->header;
my %arr = $q->Vars;
my $dsn = "DBI:$dbtype:dbname=$dbase";
my $dbh = DBI->connect($dsn,$user,$password);
# Print Page Header
print "$doctype\n