if (isadmin()) {
echo "";
echo "".get_string("username").": | ";
if($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
echo "username);
echo "\">";
if (isset($err["username"])) formerr($err["username"]);
}else {
echo " | ";
p($user->username);
}
echo " | ";
echo "
";
if($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
echo "";
echo "".get_string("newpassword").": | ";
echo "newpassword)) p($user->newpassword);
echo "\">";
if (isset($err["newpassword"])) {
formerr($err["newpassword"]);
} else if (empty($user->newpassword)) {
echo " (".get_string("leavetokeep").")";
}
echo " | ";
echo "
";
echo "
|
";
}
}
?>
print_string("firstname") ?>: |
if (isset($err["firstname"])) formerr($err["firstname"]); ?>
|
print_string("lastname") ?>: |
if (isset($err["lastname"])) formerr($err["lastname"]); ?>
|
print_string("email") ?>: |
if (isset($err["email"])) formerr($err["email"]); ?>
|
print_string("emaildisplay") ?>: |
$choices["0"] = get_string("emaildisplayno");
$choices["1"] = get_string("emaildisplayyes");
$choices["2"] = get_string("emaildisplaycourse");
choose_from_menu ($choices, "maildisplay", $user->maildisplay, "") ?>
|
print_string("emailformat") ?>: |
unset($choices);
$choices["0"] = get_string("textformat");
$choices["1"] = get_string("htmlformat");
choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?>
|
if ($CFG->htmleditor) { ?>
print_string("textediting") ?>: |
unset($choices);
$choices["0"] = get_string("texteditor");
$choices["1"] = get_string("htmleditor");
choose_from_menu ($choices, "htmleditor", $user->htmleditor, "") ?>
|
} ?>
print_string("city") ?>: |
if (isset($err["city"])) formerr($err["city"]); ?>
|
print_string("country") ?>: |
if (!$user->country and $CFG->country) {
$user->country = $CFG->country;
}
choose_from_menu ($COUNTRIES, "country", $user->country, get_string("selectacountry")."...", "", "") ?>
if (isset($err["country"])) formerr($err["country"]); ?>
|
print_string("preferredlanguage") ?>: |
if ($languages = get_list_of_languages()) {
if (!$user->lang) {
$user->lang = $CFG->lang;
}
choose_from_menu ($languages, "lang", $user->lang, "", "", "");
}
if (isset($err["lang"])) formerr($err["lang"]);
?>
|
print_string("timezone") ?>: |
if (abs($user->timezone) > 13) {
$user->timezone = 99;
}
$timenow = time();
for ($tz = -26; $tz <= 26; $tz++) {
$zone = (float)$tz/2.0;
$usertime = $timenow + ($tz * 1800);
if ($tz == 0) {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT)";
} else if ($tz < 0) {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT$zone)";
} else {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT+$zone)";
}
}
choose_from_menu ($timezones, "timezone", $user->timezone, get_string("serverlocaltime"), "", "99");
echo "(".get_string("currentlocaltime").")";
?>
|
print_string("userdescription") ?>: |
if (isset($err["description"])) {
formerr($err["description"]);
echo " ";
} ?>
helpbutton("text", get_string("helptext")) ?>
|
print_string("followingoptional") ?>: |
if (!empty($CFG->gdversion)) { ?>
print_string("newpicture") ?>: |
helpbutton("picture", get_string("helppicture"));
print_string("maxsize", "", display_size(get_max_upload_file_size()));
if (isset($err["imagefile"])) formerr($err["imagefile"]);
?>
|
} ?>
print_string("webpage") ?>: |
if (isset($err["url"])) formerr($err["url"]); ?>
|
print_string("icqnumber") ?>: |
if (isset($err["icq"])) formerr($err["icq"]); ?>
|
print_string("idnumber") ?>: |
p($teacheronly) ?>
if (isset($err["idnumber"])) formerr($err["idnumber"]); ?>
|
print_string("phone") ?> 1: |
p($teacheronly) ?>
if (isset($err["phone1"])) formerr($err["phone1"]); ?>
|
print_string("phone") ?> 2: |
p($teacheronly) ?>
if (isset($err["phone2"])) formerr($err["phone2"]); ?>
|
print_string("address") ?>: |
p($teacheronly) ?>
if (isset($err["address"])) formerr($err["address"]); ?>
|
|
"> |