forked from science-ation/science-ation
- Add language and project requirements
- Also add the begin/end form tags
This commit is contained in:
parent
828c01a31b
commit
cc1356b6cb
@ -74,6 +74,7 @@ echo mysql_error();
|
||||
|
||||
echo "<a href=\"register_participants_main.php\"><< ".i18n("Back to Participant Registration Summary")."</a><br />";
|
||||
echo "<br />";
|
||||
echo "<form method=\"post\" action=\"register_participants_project.php\">";
|
||||
echo "<table>";
|
||||
echo "<tr><td>".i18n("Project Title").": </td><td><input type=\"text\" name=\"title\" size=\"50\" value=\"$r->title\" /></td></tr>";
|
||||
echo "<tr><td>".i18n("Age Category").": </td><td>";
|
||||
@ -92,11 +93,60 @@ echo mysql_error();
|
||||
}
|
||||
echo "</select>";
|
||||
echo "</td></tr>";
|
||||
echo "<tr><td>".i18n("Summary").": </td><td><textarea cols=\"70\" rows=\"15\" name=\"summary\">$r->summary</textarea><br />";
|
||||
|
||||
echo "<tr><td>".i18n("Language").": </td><td>";
|
||||
echo "<select name=\"language\">\n";
|
||||
|
||||
if($projectinfo->language)
|
||||
$currentlang=$projectinfo->language;
|
||||
else
|
||||
$currentlang=$_SESSION['lang'];
|
||||
|
||||
foreach($config['languages'] AS $key=>$val)
|
||||
{
|
||||
if($currentlang==$key) $selected="selected=\"selected\""; else $selected="";
|
||||
|
||||
echo "<option $selected value=\"$key\">$val</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "<tr><td>".i18n("Requirements").": </td><td>";
|
||||
echo "<table>";
|
||||
|
||||
echo "<tr>";
|
||||
echo " <td>".i18n("Table")."</td>";
|
||||
if($projectinfo->req_table=="yes") $check="checked=\"checked\""; else $check="";
|
||||
echo " <td><input $check type=\"radio\" name=\"req_table\" value=\"yes\" />Yes</td>";
|
||||
echo " <td width=\"20\"> </td>";
|
||||
if($projectinfo->req_table=="no") $check="checked=\"checked\""; else $check="";
|
||||
echo " <td><input $check type=\"radio\" name=\"req_table\" value=\"no\" />No</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
echo " <td>".i18n("Electricity")."</td>";
|
||||
if($projectinfo->req_electricity=="yes") $check="checked=\"checked\""; else $check="";
|
||||
echo " <td><input $check type=\"radio\" name=\"req_electricity\" value=\"yes\" />Yes</td>";
|
||||
echo " <td width=\"20\"> </td>";
|
||||
if($projectinfo->req_electricity=="no") $check="checked=\"checked\""; else $check="";
|
||||
echo " <td><input $check type=\"radio\" name=\"req_electricity\" value=\"no\" />No</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
echo " <td>".i18n("Special")."</td>";
|
||||
echo " <td colspan=\"3\"><input type=\"text\" name=\"req_special\" value=\"$projectinfo->req_special\" /></td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "</table>";
|
||||
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "<tr><td>".i18n("Summary").": </td><td><textarea cols=\"60\" rows=\"12\" name=\"summary\">$r->summary</textarea><br />";
|
||||
echo i18n("100 words maximum");
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
|
||||
|
||||
send_footer();
|
||||
|
Loading…
Reference in New Issue
Block a user