Copyright (C) 2005 James Grant This program 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, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> << ".i18n("Back to Configuration")."
"; if($_POST['action']=="save") { if($_POST['useexhibitordeclaration']) $useex="1"; else $useex="0"; if($_POST['useparentdeclaration']) $usepg="1"; else $usepg="0"; if($_POST['useteacherdeclaration']) $usete="1"; else $usete="0"; mysql_query("UPDATE signaturepage SET `use`='$useex', `text`='".mysql_escape_string(stripslashes($_POST['exhibitordeclaration']))."' WHERE name='exhibitordeclaration'"); mysql_query("UPDATE signaturepage SET `use`='$usepg', `text`='".mysql_escape_string(stripslashes($_POST['parentdeclaration']))."' WHERE name='parentdeclaration'"); mysql_query("UPDATE signaturepage SET `use`='$usete', `text`='".mysql_escape_string(stripslashes($_POST['teacherdeclaration']))."' WHERE name='teacherdeclaration'"); echo happy(i18n("Signature page text successfully saved")); } echo "
"; $q=mysql_query("SELECT * FROM signaturepage WHERE name='exhibitordeclaration'"); $r=mysql_fetch_object($q); echo "
"; echo "\n"; if($r->use) $ch="checked=\"checked\""; else $ch=""; echo "".i18n("Use the exhibitor declaration and obtain exhibitor signatures"); echo "
"; echo ""; echo "
"; echo "
"; $q=mysql_query("SELECT * FROM signaturepage WHERE name='parentdeclaration'"); $r=mysql_fetch_object($q); if($r->use) $ch="checked=\"checked\""; else $ch=""; echo "".i18n("Use the parent/guardian declaration and obtain parent/guardian signatures"); echo "
"; echo ""; echo "
"; echo "
"; $q=mysql_query("SELECT * FROM signaturepage WHERE name='teacherdeclaration'"); $r=mysql_fetch_object($q); if($r->use) $ch="checked=\"checked\""; else $ch=""; echo "".i18n("Use the teacher declaration and obtain teacher's signature"); echo "
"; echo ""; echo "
"; echo "
"; echo ""; echo "
"; send_footer(); ?>