forked from science-ation/science-ation
Switch emergency contact relation to a select box instead of text entry
This commit is contained in:
parent
45e18745ba
commit
4c44f40b3d
@ -152,7 +152,16 @@ while($sr=mysql_fetch_object($sq))
|
||||
echo " <td>".i18n("Last Name").": </td><td><input type=\"text\" name=\"lastname[$id]\" size=\"20\" value=\"$r->lastname\" />".REQUIREDFIELD."</td>";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>";
|
||||
echo " <td>".i18n("Relation").": </td><td><input type=\"text\" name=\"relation[$id]\" size=\"20\" value=\"$r->relation\" />".REQUIREDFIELD."</td>";
|
||||
echo " <td>".i18n("Relation").": </td><td>";
|
||||
echo " <select name=\"relation[$id]\">\n";
|
||||
echo " <option value=\"\">".i18n("Choose a relation")."</option>\n";
|
||||
$relations=array("Parent","Legal Guardian","Grandparent","Family Friend", "Other");
|
||||
foreach($relations AS $rel) {
|
||||
if($r->relation==$rel) $sel="selected=\"selected\""; else $sel="";
|
||||
echo "<option $sel value=\"$rel\">".i18n($rel)."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo REQUIREDFIELD."</td>";
|
||||
echo " <td>".i18n("Email Address").": </td><td><input type=\"text\" name=\"email[$id]\" size=\"20\" value=\"$r->email\" /></td>";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>";
|
||||
|
Loading…
Reference in New Issue
Block a user