From f971d5021e85d358f1ac992e49827c0418a142c2 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 7 Sep 2004 10:18:52 +0000 Subject: [PATCH] XHTML tidy up --- user/edit.html | 159 +++++++++++++++++++++++++------------------------ user/edit.php | 2 + 2 files changed, 83 insertions(+), 78 deletions(-) diff --git a/user/edit.html b/user/edit.html index 0600653cb4..d3ce542260 100644 --- a/user/edit.html +++ b/user/edit.html @@ -18,26 +18,26 @@ if (isadmin()) { $theadmin = get_admin(); $adminself = (($theadmin->id == $USER->id) and ($USER->id == $user->id)); echo ""; - echo "

".get_string("username").":

"; + echo " ".get_string("username").": "; if ($adminself || is_internal_auth($user->auth) ){ - echo " username); echo "\" />"; if (isset($err["username"])) formerr($err["username"]); } else { - echo ""; + echo " "; p($user->username); echo "username); echo "\" />"; } - echo ""; + echo " "; echo "\n"; if ($adminself || is_internal_auth($user->auth) ){ echo ""; - echo "

".get_string("newpassword").":

"; - echo " ".get_string("newpassword").": "; + echo " newpassword)) p($user->newpassword); echo "\" />"; if (isset($err["newpassword"])) { @@ -45,32 +45,32 @@ if (isadmin()) { } else if (empty($user->newpassword)) { echo " (".get_string("leavetokeep").")"; } - echo ""; + echo " "; echo "\n"; echo "
"; } } ?> -

:

+ : -

:

+ : -

:

+ : -

:

+ : -

:

+ : -

:

- : + mailformat, "") ?> - + -

:

- : + maildigest, "") ?> - + -

:

- : + autosubscribe, "") ?> - + htmleditor) { ?> -

:

- : + htmleditor, "") ?> - + -

:

+ : -

:

- : + country and $CFG->country) { $user->country = $CFG->country; @@ -143,11 +143,11 @@ if (isadmin()) { choose_from_menu (get_list_of_countries(), "country", $user->country, get_string("selectacountry")."...", "", "") ?> - + -

:

- : + lang) { $user->lang = $CFG->lang; } @@ -155,11 +155,11 @@ if (isadmin()) { } if (isset($err["lang"])) formerr($err["lang"]); ?> - + -

:

- : + timezone) > 13) { $user->timezone = 99; } @@ -182,20 +182,22 @@ if (isadmin()) { echo "(".get_string("currentlocaltime").")"; ?> - + -

:

- "; - } ?> - - - + : + "; + } + print_textarea(false, 10, 50, 50, 10, 'description', "$user->description"); + helpbutton("text", get_string("helptext")); + ?> + -
: +
: @@ -204,91 +206,92 @@ if (isadmin()) { if (!empty($CFG->gdversion) and $maxbytes and empty($CFG->disableuserimages)) { ?> -

:

- + : + id, $course->id, $user->picture, false, false, false); if ($user->picture) { echo '  '; print_string("delete"); } ?> - + -

:

- + : + - + - + gdversion) and isadmin()) { ?> -

:

- + : + wwwroot/$CFG->admin/config.php\">"; print_string('gdnot'); echo ""; ?> - + -

:

- + : + - + -

:

- + : + - + -

:

- + : + - + -

:

- - + : + + -

:

- - + : + + -

1:

- + 1: + - + -

2:

- + 2: + - + -

:

- + : + - + - " /> + " /> + diff --git a/user/edit.php b/user/edit.php index 3f77e01dfe..b6cd2b0f05 100644 --- a/user/edit.php +++ b/user/edit.php @@ -6,6 +6,8 @@ require_variable($id); // user id require_variable($course); // course id + + if (! $user = get_record("user", "id", $id)) { error("User ID was incorrect"); } -- 2.39.5