add the following to student info:

- teacher name
	- teacher email
	- medical alert information
	- special food requirements (if configured)

changed height of textbox to better fit text on signature page
This commit is contained in:
james 2005-01-05 14:32:24 +00:00
parent 8e0d02b842
commit 675e9e41f2
2 changed files with 34 additions and 2 deletions

View File

@ -63,7 +63,7 @@ echo mysql_error();
$height['exhibitorsigspace']=0.40;
$height['exhibitorsigtext']=0.13;
$height['parenttitle']=0.2;
$height['parentbox']=2.60;
$height['parentbox']=2.80;
$height['parentsigspace']=0.40;
$height['parentsigtext']=0.13;

View File

@ -47,7 +47,7 @@ if($_POST['action']=="save")
{
//INSERT new record
$dob=$_POST['year'][$x]."-".$_POST['month'][$x]."-".$_POST['day'][$x];
mysql_query("INSERT INTO students (registrations_id,firstname,lastname,email,address,city,province,postalcode,phone,dateofbirth,grade,schools_id,tshirt,year) VALUES (".
mysql_query("INSERT INTO students (registrations_id,firstname,lastname,email,address,city,province,postalcode,phone,dateofbirth,grade,schools_id,tshirt,medicalalert,foodreq,teachername,teacheremail,year) VALUES (".
"'".$_SESSION['registration_id']."', ".
"'".mysql_escape_string(stripslashes($_POST['firstname'][$x]))."', ".
"'".mysql_escape_string(stripslashes($_POST['lastname'][$x]))."', ".
@ -61,6 +61,10 @@ if($_POST['action']=="save")
"'".mysql_escape_string(stripslashes($_POST['grade'][$x]))."', ".
"'".mysql_escape_string(stripslashes($_POST['schools_id'][$x]))."', ".
"'".mysql_escape_string(stripslashes($_POST['tshirt'][$x]))."', ".
"'".mysql_escape_string(stripslashes($_POST['medicalalert'][$x]))."', ".
"'".mysql_escape_string(stripslashes($_POST['foodreq'][$x]))."', ".
"'".mysql_escape_string(stripslashes($_POST['teachername'][$x]))."', ".
"'".mysql_escape_string(stripslashes($_POST['teacheremail'][$x]))."', ".
"'".$config['FAIRYEAR']."')");
echo mysql_error();
@ -83,6 +87,10 @@ echo mysql_error();
"dateofbirth='$dob', ".
"grade='".mysql_escape_string(stripslashes($_POST['grade'][$x]))."', ".
"schools_id='".mysql_escape_string(stripslashes($_POST['schools_id'][$x]))."', ".
"medicalalert='".mysql_escape_string(stripslashes($_POST['medicalalert'][$x]))."', ".
"foodreq='".mysql_escape_string(stripslashes($_POST['foodreq'][$x]))."', ".
"teachername='".mysql_escape_string(stripslashes($_POST['teachername'][$x]))."', ".
"teacheremail='".mysql_escape_string(stripslashes($_POST['teacheremail'][$x]))."', ".
"tshirt='".mysql_escape_string(stripslashes($_POST['tshirt'][$x]))."' ".
"WHERE id='".$_POST['id'][$x]."'");
echo notice(i18n("%1 %2 successfully updated",array($_POST['firstname'][$x],$_POST['lastname'][$x])));
@ -219,6 +227,22 @@ else if($newstatus=="complete")
echo "</select>\n";
echo " </td>";
echo "</tr>";
echo "<tr>\n";
echo "<td>".i18n("Medical Alert Info")."</td><td colspan=\"3\">";
echo "<input name=\"medicalalert\" type=\"text\" size=\"50\" value=\"$studentinfo->medicalalert\" />";
echo "</td>";
echo "</tr>\n";
if($config['participant_student_foodreq']=="yes")
{
echo "<tr>\n";
echo "<td>".i18n("Special Food Requirements")."</td><td colspan=\"3\">";
echo "<input name=\"foodreq\" type=\"text\" size=\"50\" value=\"$studentinfo->foodreq\" />";
echo "</td>";
echo "</tr>\n";
}
echo "<tr>\n";
echo " <td>".i18n("School")."</td><td>";
$schoolq=mysql_query("SELECT id,school FROM schools WHERE year='".$config['FAIRYEAR']."' ORDER by school");
@ -248,6 +272,14 @@ else if($newstatus=="complete")
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td>".i18n("Teacher Name")."</td><td><input type=\"text\" name=\"teachername[$x]\" value=\"$studentinfo->teachername\" /></td>\n";
echo " <td>".i18n("Teacher Email")."</td><td><input type=\"text\" name=\"teacheremail[$x]\" value=\"$studentinfo->teacheremail\" /></td>\n";
echo "</tr>\n";
echo "</table>";
if($numfound>$config['minstudentsperproject'] && $studentinfo->id)