diff --git a/config/signaturepage.php b/config/signaturepage.php index 69069e68..0bec720b 100644 --- a/config/signaturepage.php +++ b/config/signaturepage.php @@ -32,10 +32,12 @@ if($_POST['useexhibitordeclaration']) $useex="1"; else $useex="0"; if($_POST['useparentdeclaration']) $usepg="1"; else $usepg="0"; if($_POST['useteacherdeclaration']) $usete="1"; else $usete="0"; + if($_POST['usepostamble']) $usepa="1"; else $usepa="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'"); echo happy(i18n("Signature page text successfully saved")); } @@ -69,6 +71,16 @@ echo "
"; echo ""; echo "
"; echo "
"; + +$q=mysql_query("SELECT * FROM signaturepage WHERE name='postamble'"); +$r=mysql_fetch_object($q); +if($r->use) $ch="checked=\"checked\""; else $ch=""; +echo "".i18n("Place Additional Information after all the required signatures"); +echo "
"; +echo ""; +echo "
"; +echo "
"; + echo ""; echo ""; diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 425151f3..87523dd7 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -40 +41 diff --git a/db/db.update.41.sql b/db/db.update.41.sql new file mode 100644 index 00000000..ceaa8d79 --- /dev/null +++ b/db/db.update.41.sql @@ -0,0 +1,3 @@ +INSERT INTO `signaturepage` ( `id` , `name` , `use` , `text` ) VALUES ( '', 'postamble', '0', 'Please send the signed signature form and any required payment to: + +[Insert Address Here]'); diff --git a/register_participants_signature.php b/register_participants_signature.php index 84d65436..d2fc9f14 100644 --- a/register_participants_signature.php +++ b/register_participants_signature.php @@ -214,6 +214,18 @@ $pdf->newPage(); $pdf->hr(); } + $q=mysql_query("SELECT * FROM signaturepage WHERE name='postamble'"); + $r=mysql_fetch_object($q); + if($r->use) + { + //now for the teacher signature + $pdf->heading(i18n("Additional Information")); + + $box=$r->text; + $pdf->addText($box); + + } + /* header("Content-type: application/pdf"); diff --git a/register_participants_signature_tcpdf.php b/register_participants_signature_tcpdf.php index bc77f3f1..894d5afc 100644 --- a/register_participants_signature_tcpdf.php +++ b/register_participants_signature_tcpdf.php @@ -172,6 +172,16 @@ echo mysql_error(); } + $q=mysql_query("SELECT * FROM signaturepage WHERE name='postamble'"); + $r=mysql_fetch_object($q); + if($r->use) + { + //now for the teacher signature + $pagetext="

".i18n("Additional Information")."

"; + $pagetext.=nl2br($r->text); + $pdf->WriteHTML($pagetext); + } + $pdf->Output(); exit; ?>