Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Saner format for editing profile

  • Loading branch information...
commit affb83a226e3d769dbd1752599addb5fdcb9d377 1 parent 1fdaab8
martin authored
Showing with 33 additions and 32 deletions.
  1. +33 −32 user/edit.html
View
65 user/edit.html
@@ -44,36 +44,33 @@
</td>
</tr>
<tr valign=top>
- <td><P><? print_string("city") ?>:</td>
- <td><input type="text" name="city" size=25 value="<? p($user->city) ?>">
- <? formerr($err["city"]) ?>
+ <td><P><? print_string("emaildisplay") ?>:</td>
+ <td><?
+ $choices["0"] = get_string("emaildisplayno");
+ $choices["1"] = get_string("emaildisplayyes");
+ $choices["2"] = get_string("emaildisplaycourse");
+ choose_from_menu ($choices, "maildisplay", $user->maildisplay, "") ?>
</td>
</tr>
<tr valign=top>
- <td><P><? print_string("country") ?>:</td>
- <td><? choose_from_menu ($COUNTRIES, "country", $user->country, get_string("selectacountry")."...", "", "") ?>
- <? formerr($err["country"]) ?>
+ <td><P><? print_string("emailformat") ?>:</td>
+ <td><?
+ unset($choices);
+ $choices["0"] = get_string("textformat");
+ $choices["1"] = get_string("htmlformat");
+ choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?>
</td>
</tr>
<tr valign=top>
- <td><P><? print_string("userdescription") ?>:</td>
- <td><TEXTAREA NAME=description COLS=50 ROWS=10 WRAP=virtual><? p($user->description) ?></TEXTAREA>
- <? helpbutton("text", get_string("helptext")) ?>
- <? formerr($err["description"]) ?>
+ <td><P><? print_string("city") ?>:</td>
+ <td><input type="text" name="city" size=25 value="<? p($user->city) ?>">
+ <? formerr($err["city"]) ?>
</td>
</tr>
-<tr>
- <td colspan=2><BR><B><? print_string("followingoptional") ?>:</B></td>
-</tr>
<tr valign=top>
- <td><P><? print_string("newpicture") ?>:</td>
- <td>
- <INPUT type="hidden" name="MAX_FILE_SIZE" value="<? echo get_max_upload_file_size() ?>">
- <input type="file" name="imagefile" size=40>
- <? helpbutton("picture", get_string("helppicture"));
- print_string("maxsize", "", display_size(get_max_upload_file_size()));
- formerr($err["imagefile"]);
- ?>
+ <td><P><? print_string("country") ?>:</td>
+ <td><? choose_from_menu ($COUNTRIES, "country", $user->country, get_string("selectacountry")."...", "", "") ?>
+ <? formerr($err["country"]) ?>
</td>
</tr>
<tr valign=top>
@@ -115,20 +112,24 @@
</td>
</tr>
<tr valign=top>
- <td><P><? print_string("emailformat") ?>:</td>
- <td><?
- $choices["0"] = get_string("textformat");
- $choices["1"] = get_string("htmlformat");
- choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?>
+ <td><P><? print_string("userdescription") ?>:</td>
+ <td><TEXTAREA NAME=description COLS=50 ROWS=10 WRAP=virtual><? p($user->description) ?></TEXTAREA>
+ <? helpbutton("text", get_string("helptext")) ?>
+ <? formerr($err["description"]) ?>
</td>
</tr>
+<tr>
+ <td colspan=2><BR><B><? print_string("followingoptional") ?>:</B></td>
+</tr>
<tr valign=top>
- <td><P><? print_string("emaildisplay") ?>:</td>
- <td><?
- $choices["0"] = get_string("emaildisplayno");
- $choices["1"] = get_string("emaildisplayyes");
- $choices["2"] = get_string("emaildisplaycourse");
- choose_from_menu ($choices, "maildisplay", $user->maildisplay, "") ?>
+ <td><P><? print_string("newpicture") ?>:</td>
+ <td>
+ <INPUT type="hidden" name="MAX_FILE_SIZE" value="<? echo get_max_upload_file_size() ?>">
+ <input type="file" name="imagefile" size=40>
+ <? helpbutton("picture", get_string("helppicture"));
+ print_string("maxsize", "", display_size(get_max_upload_file_size()));
+ formerr($err["imagefile"]);
+ ?>
</td>
</tr>
<tr valign=top>
Please sign in to comment.
Something went wrong with that request. Please try again.