Fix signup form soit appears and update from 2004 to 2024

$(GET[action] no longer works, so nobbled for now  - needs more fettling.
This commit is contained in:
Expo on server 2024-06-16 10:51:36 +01:00
parent f7b06b06d6
commit 4da34a66c6

View File

@ -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&uuml;fth&ouml;hle. Eisl&uuml;fth&ouml;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">
@ -540,7 +542,7 @@ 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>
@ -553,7 +555,10 @@ END;
virtual("main.css"); virtual("main.css");
switch ($_GET[action]) {
# switch ($_GET[action]) {
switch ("blank") {
case "blank": case "blank":
initVars (); initVars ();
showForm (); showForm ();