mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-25 08:41:54 +00:00
Update signup form 2004 to 2024 and fix quoting so it actually appears
Update signup page so it actually displays. It does not yet work however. Fix quoting in signup form so it actually appears
This commit is contained in:
parent
f7b06b06d6
commit
903f241d33
@ -117,14 +117,14 @@ function securityChecks ()
|
|||||||
elseif ($vars[btent] == "yes" && ($vars[base_tent_cap] < 1 || $vars[base_tent_cap] > 9)) $error = "Invalid Base Camp tent capacity given.";
|
elseif ($vars[btent] == "yes" && ($vars[base_tent_cap] < 1 || $vars[base_tent_cap] > 9)) $error = "Invalid Base Camp tent capacity given.";
|
||||||
|
|
||||||
if ($error != "") {
|
if ($error != "") {
|
||||||
echo "<title>Expo 2004 Application Form Error -- Cambridge University Caving Club</title>";
|
echo "<title>Expo 2024 Application Form Error -- Cambridge University Caving Club</title>";
|
||||||
echo "</head>";
|
echo "</head>";
|
||||||
|
|
||||||
echo "<FORM ACTION=\"http://expo.survex.com/signup/submit.php?action=commit\" METHOD=\"POST\">";
|
echo "<FORM ACTION=\"http://expo.survex.com/signup/submit.php?action=commit\" METHOD=\"POST\">";
|
||||||
printHidden ();
|
printHidden ();
|
||||||
|
|
||||||
echo <<<END
|
echo <<<END
|
||||||
<H1>Expo 2004 Application Form Error</H1>
|
<h1>Expo 2004 Application Form Error</h1>
|
||||||
<p><b>Sorry, but you have made a mistake on your form:</b><center>
|
<p><b>Sorry, but you have made a mistake on your form:</b><center>
|
||||||
$error
|
$error
|
||||||
</center>
|
</center>
|
||||||
@ -144,23 +144,25 @@ function showForm ()
|
|||||||
global $vars;
|
global $vars;
|
||||||
|
|
||||||
echo <<<END
|
echo <<<END
|
||||||
<title>Expo 2004 Application Form -- Cambridge University Caving Club</title>
|
<title>Expo 2024 Application Form -- Cambridge University Caving Club</title>
|
||||||
</head>
|
</head>
|
||||||
END;
|
END;
|
||||||
echo <<<END
|
echo <<<END
|
||||||
|
|
||||||
<H1>Expo 2004 Application Form</H1>
|
<h1>Expo 2024 Signup Form</h1>
|
||||||
|
|
||||||
<P>This is the application form for Expo 2004, which runs from 10th July until 14th August.
|
<p>This is the official signup form for Expo 2024, which runs from 6th July until 17th August.
|
||||||
|
|
||||||
<P>This form is not secure and by submitting
|
<p>This form is not secure and by submitting
|
||||||
this form you consent to its contents being used for Expo purposes and
|
this form you consent to its contents being used for Expo purposes and
|
||||||
being included in the Bier Book on Expo.</P>
|
being included in the Bier Book on Expo.</p>
|
||||||
|
|
||||||
<HR>
|
<p>You also give permission for any information you collect on expo (survey data, photos, trip writeups, etc) to be used in perpetuity for expo-related purposes.</p>
|
||||||
<FORM ACTION="http://expo.survex.com/signup/submit.php?action=preview" METHOD="POST">
|
|
||||||
|
|
||||||
<H2>Section A: Personal information<h2>
|
<hr>
|
||||||
|
<form ACTION="http://expo.survex.com/signup/submit.php?action=preview" METHOD="POST">
|
||||||
|
|
||||||
|
<h2>Section A: Personal information<h2>
|
||||||
|
|
||||||
<h3>General</h3>
|
<h3>General</h3>
|
||||||
|
|
||||||
@ -223,7 +225,7 @@ END;
|
|||||||
|
|
||||||
<h3>Transport</h2>
|
<h3>Transport</h2>
|
||||||
|
|
||||||
<p>Please look now at the <a target="_blank" href="http://expo.survex.com/years/2004/travel.html">transport arrangements page</a> (will open in a new window). Then select one of the following.
|
<p>Please look now at the <a target="_blank" href="http://expo.survex.com/years/2024/travel.html">transport arrangements page</a> (will open in a new window). Then select one of the following.
|
||||||
|
|
||||||
<p><input type="radio" name="transport_ok" value="yes" tabindex=38
|
<p><input type="radio" name="transport_ok" value="yes" tabindex=38
|
||||||
END;
|
END;
|
||||||
@ -245,7 +247,7 @@ END;
|
|||||||
|
|
||||||
<h3>Tents</h3>
|
<h3>Tents</h3>
|
||||||
|
|
||||||
<p>There will be two high camps in 2004:
|
<p>There will be two high camps in 2024:
|
||||||
<ul><li>the stone bridge bivvy site;
|
<ul><li>the stone bridge bivvy site;
|
||||||
<li>the old Top Camp site, to be used for exploration of
|
<li>the old Top Camp site, to be used for exploration of
|
||||||
Eislüfthöhle.
|
Eislüfthöhle.
|
||||||
@ -256,7 +258,7 @@ END;
|
|||||||
At the stone bridge, a bivvy bag is not essential but useful if
|
At the stone bridge, a bivvy bag is not essential but useful if
|
||||||
you have one.
|
you have one.
|
||||||
|
|
||||||
<P>Will you be taking any of the following (please tick/complete as appropriate):<BR>
|
<p>Will you be taking any of the following (please tick/complete as appropriate):<BR>
|
||||||
<INPUT TYPE="checkbox" NAME="bivvy" VALUE="yes" tabindex=53
|
<INPUT TYPE="checkbox" NAME="bivvy" VALUE="yes" tabindex=53
|
||||||
END;
|
END;
|
||||||
if ($vars[bivvy] == "yes") echo " checked";
|
if ($vars[bivvy] == "yes") echo " checked";
|
||||||
@ -287,20 +289,20 @@ END;
|
|||||||
case of emergency. Please ensure that you communicate such information
|
case of emergency. Please ensure that you communicate such information
|
||||||
in good time.
|
in good time.
|
||||||
|
|
||||||
<P>Please list any allergies which you have:
|
<p>Please list any allergies which you have:
|
||||||
<TEXTAREA NAME="allergies" ROWS=2 COLS=80 tabindex=68>$vars[allergies]</TEXTAREA></P>
|
<TEXTAREA NAME="allergies" ROWS=2 COLS=80 tabindex=68>$vars[allergies]</TEXTAREA></p>
|
||||||
|
|
||||||
<P>Please list any medication which you may be taking in Austria:
|
<p>Please list any medication which you may be taking in Austria:
|
||||||
<TEXTAREA NAME="medication" ROWS=2 COLS=80 tabindex=69>$vars[medication]</TEXTAREA></P>
|
<TEXTAREA NAME="medication" ROWS=2 COLS=80 tabindex=69>$vars[medication]</TEXTAREA></p>
|
||||||
|
|
||||||
<P>Please list any other medical conditions you have that the expedition should be aware of:<BR>
|
<p>Please list any other medical conditions you have that the expedition should be aware of:<BR>
|
||||||
<TEXTAREA NAME="medic_info" ROWS=5 COLS=80 tabindex=70>$vars[medic_info]</TEXTAREA></P>
|
<TEXTAREA NAME="medic_info" ROWS=5 COLS=80 tabindex=70>$vars[medic_info]</TEXTAREA></p>
|
||||||
|
|
||||||
|
|
||||||
<h3>Other</h3>
|
<h3>Other</h3>
|
||||||
|
|
||||||
<P>Any other information, including any skills e.g. first aid, languages, etc. that you have:<BR>
|
<p>Any other information, including any skills e.g. first aid, languages, etc. that you have:<BR>
|
||||||
<TEXTAREA NAME="extra_info" ROWS=15 COLS=80 tabindex=71>$vars[extra_info]</TEXTAREA></P>
|
<TEXTAREA NAME="extra_info" ROWS=15 COLS=80 tabindex=71>$vars[extra_info]</TEXTAREA></p>
|
||||||
|
|
||||||
<h2>Section B - Caving/surface work projects</h2>
|
<h2>Section B - Caving/surface work projects</h2>
|
||||||
|
|
||||||
@ -345,15 +347,15 @@ function previewForm ()
|
|||||||
global $vars;
|
global $vars;
|
||||||
|
|
||||||
echo <<<END
|
echo <<<END
|
||||||
<title>Expo 2004 Application Form Preview -- Cambridge University Caving Club</title>
|
<title>Expo 2024 Application Form Preview -- Cambridge University Caving Club</title>
|
||||||
</head>
|
</head>
|
||||||
END;
|
END;
|
||||||
echo <<<END
|
echo <<<END
|
||||||
<h1>Expo 2004 Application Form Preview</h1>
|
<h1>Expo 2024 Application Form Preview</h1>
|
||||||
<P><b>Please check the details below and then select one of the options at the
|
<p><b>Please check the details below and then select one of the options at the
|
||||||
bottom of the page.</b>
|
bottom of the page.</b>
|
||||||
<hr>
|
<hr>
|
||||||
<H2>Contact details</H2>
|
<h2>Contact details</h2>
|
||||||
<h3>Your details</h3>
|
<h3>Your details</h3>
|
||||||
<p>
|
<p>
|
||||||
<FORM ACTION="http://expo.survex.com/signup/submit.php?action=commit" METHOD="POST">
|
<FORM ACTION="http://expo.survex.com/signup/submit.php?action=commit" METHOD="POST">
|
||||||
@ -420,6 +422,7 @@ END;
|
|||||||
echo nl2br($vars[aims]);
|
echo nl2br($vars[aims]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo <<<END
|
||||||
if ($vars[extra_info] != "") {
|
if ($vars[extra_info] != "") {
|
||||||
echo "<h2>Other information</h2><p>";
|
echo "<h2>Other information</h2><p>";
|
||||||
echo nl2br($vars[extra_info]);
|
echo nl2br($vars[extra_info]);
|
||||||
@ -437,6 +440,7 @@ END;
|
|||||||
echo "</ul>";
|
echo "</ul>";
|
||||||
|
|
||||||
if ($vars[transport_info] != "") {
|
if ($vars[transport_info] != "") {
|
||||||
|
echo <<<END
|
||||||
echo "<h3>Other transport information</h3><p>";
|
echo "<h3>Other transport information</h3><p>";
|
||||||
echo nl2br($vars[transport_info]);
|
echo nl2br($vars[transport_info]);
|
||||||
}
|
}
|
||||||
@ -453,6 +457,7 @@ END;
|
|||||||
<h2>If you want to change something...</h2>
|
<h2>If you want to change something...</h2>
|
||||||
|
|
||||||
<p>If there is an error in the above details, press the button below to change them.
|
<p>If there is an error in the above details, press the button below to change them.
|
||||||
|
echo <<<END
|
||||||
<center><INPUT TYPE="submit" name="submit" VALUE="Modify form."></center>
|
<center><INPUT TYPE="submit" name="submit" VALUE="Modify form."></center>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
@ -531,6 +536,7 @@ function updateDatabase ()
|
|||||||
|
|
||||||
function submitForm ()
|
function submitForm ()
|
||||||
{
|
{
|
||||||
|
echo <<<END
|
||||||
global $vars;
|
global $vars;
|
||||||
|
|
||||||
updateDatabase ();
|
updateDatabase ();
|
||||||
@ -540,12 +546,12 @@ function submitForm ()
|
|||||||
</head>
|
</head>
|
||||||
END;
|
END;
|
||||||
echo <<<END
|
echo <<<END
|
||||||
<h1>Expo 2004 Application</h1>
|
<h1>Expo 2024 Application</h1>
|
||||||
|
|
||||||
<p><b>Submission successful!</b>
|
<p><b>Submission successful!</b>
|
||||||
|
|
||||||
<p>Thank you for your application. Please address any questions
|
<p>Thank you for your application. Please address any questions
|
||||||
to the Expo Leader, <a href="mailto:oghm2@cam.ac.uk">Olly Madge</a>.
|
to the Expo Leader, <a href="mailto:jonathanlester88@hotmail.co.uk">Jono Lester</a>.
|
||||||
|
|
||||||
<p><a href="http://expo.survex.com/">Return to the main Expo page</a>.
|
<p><a href="http://expo.survex.com/">Return to the main Expo page</a>.
|
||||||
END;
|
END;
|
||||||
@ -553,7 +559,8 @@ END;
|
|||||||
|
|
||||||
virtual("main.css");
|
virtual("main.css");
|
||||||
|
|
||||||
switch ($_GET[action]) {
|
switch ($_GET["action"]) {
|
||||||
|
|
||||||
case "blank":
|
case "blank":
|
||||||
initVars ();
|
initVars ();
|
||||||
showForm ();
|
showForm ();
|
||||||
|
Loading…
Reference in New Issue
Block a user