From b370dac7d5d203ce5c3864aa08f34c9d1cb01ee1 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 12 Jan 2006 16:27:47 +0000 Subject: [PATCH] Add all the "required fields" feedback for participant registration --- common.inc.php | 3 +++ register_participants_emergencycontact.php | 8 +++---- register_participants_mentor.php | 12 +++++----- register_participants_project.php | 12 +++++----- register_participants_safety.php | 2 +- register_participants_students.php | 26 +++++++++++----------- sfiab.css | 9 +++++++- 7 files changed, 41 insertions(+), 31 deletions(-) diff --git a/common.inc.php b/common.inc.php index 18fc1d72..66a5f755 100644 --- a/common.inc.php +++ b/common.inc.php @@ -22,6 +22,9 @@ */ ?> *'); + //figure out the directory to prepend to directoroy names, depending on if we are in a subdirectory or not if(substr(getcwd(),-6)=="/admin") $prependdir="../"; diff --git a/register_participants_emergencycontact.php b/register_participants_emergencycontact.php index 072f0d29..e11a31ab 100644 --- a/register_participants_emergencycontact.php +++ b/register_participants_emergencycontact.php @@ -148,15 +148,15 @@ while($sr=mysql_fetch_object($sq)) echo ""; echo "\n"; echo ""; - echo " "; - echo " "; + echo " "; + echo " "; echo "\n"; echo ""; - echo " "; + echo " "; echo " "; echo "\n"; echo ""; - echo " "; + echo " "; echo " "; echo "\n"; echo ""; diff --git a/register_participants_mentor.php b/register_participants_mentor.php index f82b6b11..72b16c6f 100644 --- a/register_participants_mentor.php +++ b/register_participants_mentor.php @@ -211,20 +211,20 @@ else if($newstatus=="complete") echo ""; echo "
".i18n("First Name").": firstname\" />".i18n("Last Name").": lastname\" />".i18n("First Name").": firstname\" />".REQUIREDFIELD."".i18n("Last Name").": lastname\" />".REQUIREDFIELD."
".i18n("Relation").": relation\" />".i18n("Relation").": relation\" />".REQUIREDFIELD."".i18n("Email Address").": email\" />
".i18n("Phone 1").": phone1\" />".i18n("Phone 1").": phone1\" />".REQUIREDFIELD."".i18n("Phone 2").": phone2\" />
"; echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "\n"; echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo " "; - echo "\n"; + echo "\n"; echo "\n"; echo "
".i18n("First Name")."firstname\" />".i18n("Last Name")."lastname\" />".i18n("First Name")."firstname\" />".REQUIREDFIELD."".i18n("Last Name")."lastname\" />".REQUIREDFIELD."
".i18n("Email Address")."email\" />".i18n("Phone")."phone\" />".i18n("Email Address")."email\" />".REQUIREDFIELD."".i18n("Phone")."phone\" />".REQUIREDFIELD."
".i18n("Organization")."organization\" />".i18n("Organization")."organization\" />".REQUIREDFIELD."".i18n("Position")."position\" />
".i18n("Description of help")."".REQUIREDFIELD."
"; diff --git a/register_participants_project.php b/register_participants_project.php index 415ad303..0052c764 100644 --- a/register_participants_project.php +++ b/register_participants_project.php @@ -161,7 +161,7 @@ else if($newstatus=="complete") echo "\n"; echo "id\">\n"; echo "\n"; - echo "\n"; + echo "\n"; echo ""; echo "\n"; + echo "
".i18n("Project Title").": title\" />
".i18n("Project Title").": title\" />".REQUIREDFIELD."
".i18n("Age Category").": "; echo i18n($agecategories[$projectcategories_id]['category']); echo " (".i18n("Grades %1-%2",array($agecategories[$projectcategories_id]['mingrade'],$agecategories[$projectcategories_id]['maxgrade'])).")"; @@ -176,7 +176,7 @@ else if($newstatus=="complete") echo "\n"; } - echo ""; + echo "".REQUIREDFIELD; if($config['usedivisionselector']=="yes") { ?> @@ -209,14 +209,14 @@ else if($newstatus=="complete") echo ""; } - echo ""; + echo "".REQUIREDFIELD; echo "
".i18n("Requirements").": "; echo ""; echo ""; - echo " "; + echo " "; if($projectinfo->req_table=="yes") $check="checked=\"checked\""; else $check=""; echo " "; echo " "; @@ -225,7 +225,7 @@ else if($newstatus=="complete") echo ""; echo ""; - echo " "; + echo " "; if($projectinfo->req_electricity=="yes") $check="checked=\"checked\""; else $check=""; echo " "; echo " "; @@ -242,7 +242,7 @@ else if($newstatus=="complete") echo ""; - echo ""; diff --git a/register_participants_safety.php b/register_participants_safety.php index ece45fcd..c8844766 100644 --- a/register_participants_safety.php +++ b/register_participants_safety.php @@ -94,7 +94,7 @@ echo mysql_error(); $newstatus=safetyStatus(); if($newstatus!="complete") { - echo error(i18n("Safety Information Incomplete")); + echo error(i18n("Safety Information Incomplete. You must agree to all safety questions!")); } else if($newstatus=="complete") { diff --git a/register_participants_students.php b/register_participants_students.php index 79bbbc26..4c27f2b9 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -235,8 +235,8 @@ else if($newstatus=="complete") echo ""; echo "
".i18n("Table")."".i18n("Table").REQUIREDFIELD."Yes 
".i18n("Electricity")."".i18n("Electricity").REQUIREDFIELD."Yes 
".i18n("Summary").":
"; + echo "
".i18n("Summary").": ".REQUIREDFIELD."
"; echo i18n("100 words maximum"); echo "
"; echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "\n"; echo "\n"; @@ -247,25 +247,25 @@ else if($newstatus=="complete") echo "\n"; if($studentinfo->sex=="female") $sel="selected=\"selected\""; else $sel=""; echo "\n"; - echo ""; + echo "".REQUIREDFIELD; echo "\n"; echo " \n"; echo "\n"; echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo " \n"; + echo REQUIREDFIELD."\n"; echo "\n"; echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "\n"; echo "\n"; @@ -277,8 +277,8 @@ else if($newstatus=="complete") emit_month_selector("month[$x]",$month); echo "
".i18n("First Name")."firstname\" />".i18n("Last Name")."lastname\" />".i18n("First Name")."firstname\" />".REQUIREDFIELD."".i18n("Last Name")."lastname\" />".REQUIREDFIELD."
".i18n("Email Address")."email\" />".i18n("City")."city\" />".i18n("Email Address")."email\" />".REQUIREDFIELD."".i18n("City")."city\" />".REQUIREDFIELD."
".i18n("Address")."address\" />".i18n("Address")."address\" />".REQUIREDFIELD."".i18n("Province").""; emit_province_selector("province[$x]",$studentinfo->province); - echo "
".i18n("Postal Code")."postalcode\" />".i18n("Phone")."phone\" />".i18n("Postal Code")."postalcode\" />".REQUIREDFIELD."".i18n("Phone")."phone\" />".REQUIREDFIELD."
\n"; emit_year_selector("year[$x]",$year,date("Y")-19,date("Y")-10); - echo "
\n"; - echo "
".REQUIREDFIELD."
\n"; + echo "\n"; echo " ".i18n("Grade")."\n"; echo "\n"; - echo " "; + echo REQUIREDFIELD.""; echo ""; echo "\n"; @@ -320,7 +320,7 @@ else if($newstatus=="complete") echo "\n"; } - echo ""; + echo "".REQUIREDFIELD; echo "\n"; echo " ".i18n("T-Shirt Size").""; diff --git a/sfiab.css b/sfiab.css index e3a86853..1c761e41 100644 --- a/sfiab.css +++ b/sfiab.css @@ -187,6 +187,7 @@ a { background: #F0DCDC; } + .notice { font-weight: bold; border: 1px solid Silver; @@ -209,6 +210,12 @@ a { color: red; } +.requiredfield { + font-weight: bold; + font-size: 0.8em; + color: #FF0000; +} + .viewtable { border-collapse: collapse; border-spacing: 0px; @@ -244,4 +251,4 @@ a { } - +