forked from science-ation/science-ation
switch judge info to use province selector
This commit is contained in:
parent
726f466ac1
commit
abf8f8d7a7
@ -307,7 +307,7 @@ function emit_province_selector($name,$selected="")
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo "<select name=\"$name\">\n";
|
echo "<select name=\"$name\">\n";
|
||||||
echo "<option value=\"\">".i18n("Province")."</option>\n";
|
echo "<option value=\"\">".i18n("Select a Province")."</option>\n";
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q))
|
||||||
{
|
{
|
||||||
if($r->code == $selected) $sel="selected=\"selected\""; else $sel="";
|
if($r->code == $selected) $sel="selected=\"selected\""; else $sel="";
|
||||||
|
@ -80,7 +80,9 @@ echo " <td>".i18n("City")."</td><td><input type=\"text\" name=\"city\" value=\"$
|
|||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo " <td>".i18n("Address")."</td><td><input type=\"text\" name=\"address\" value=\"$judgeinfo->address\" /></td>\n";
|
echo " <td>".i18n("Address")."</td><td><input type=\"text\" name=\"address\" value=\"$judgeinfo->address\" /></td>\n";
|
||||||
echo " <td>".i18n("Province")."</td><td><input type=\"text\" name=\"province\" value=\"$judgeinfo->province\" /></td>\n";
|
echo " <td>".i18n("Province")."</td><td>";
|
||||||
|
emit_province_selector("province",$judgeinfo->province);
|
||||||
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo " <td>".i18n("Postal Code")."</td><td><input type=\"text\" name=\"postalcode\" value=\"$judgeinfo->postalcode\" /></td>\n";
|
echo " <td>".i18n("Postal Code")."</td><td><input type=\"text\" name=\"postalcode\" value=\"$judgeinfo->postalcode\" /></td>\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user