From e74c4ce64d83dd6b5f20b8e05754c0a651ebfeb4 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 23 Dec 2007 01:33:09 +0000 Subject: [PATCH] - Another GVRSF change. Optionally include registration fee information on the signature page. --- config/signaturepage.php | 9 +++++++ db/db.code.version.txt | 2 +- db/db.update.90.sql | 2 ++ register_participants_signature.php | 42 +++++++++++++++++++++++++++-- 4 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 db/db.update.90.sql diff --git a/config/signaturepage.php b/config/signaturepage.php index 679c2e5..54cc801 100644 --- a/config/signaturepage.php +++ b/config/signaturepage.php @@ -36,11 +36,13 @@ if($_POST['useparentdeclaration']) $usepg="1"; else $usepg="0"; if($_POST['useteacherdeclaration']) $usete="1"; else $usete="0"; if($_POST['usepostamble']) $usepa="1"; else $usepa="0"; + if($_POST['useregfee']) $userf="1"; else $userf="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'"); mysql_query("UPDATE signaturepage SET `use`='$usepa', `text`='".mysql_escape_string(stripslashes($_POST['postamble']))."' WHERE name='postamble'"); + mysql_query("UPDATE signaturepage SET `use`='$userf', `text`='' WHERE name='regfee'"); echo happy(i18n("Signature page text successfully saved")); } @@ -74,6 +76,13 @@ echo "