mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
112 lines
3.6 KiB
HTML
112 lines
3.6 KiB
HTML
<FORM METHOD="post" ENCTYPE="multipart/form-data" action="edit.php">
|
|
<table cellpadding=9 cellspacing=0 >
|
|
<tr valign=top>
|
|
<td><P><? print_string("newpicture") ?>:</td>
|
|
<td>
|
|
<INPUT type="hidden" name="MAX_FILE_SIZE" value="4000000">
|
|
<input type="file" name="imagefile" size=40> ( .jpg / .png ) <? helpbutton("picture", get_string("helppicture") ) ?>
|
|
<? formerr($err["imagefile"]) ?>
|
|
</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")) ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td><P><? print_string("email") ?>:</td>
|
|
<td><input type="text" name="email" size=30 value="<? p($user->email) ?>">
|
|
<? formerr($err["email"]) ?>
|
|
</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>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td><P><? print_string("webpage") ?>:</td>
|
|
<td><input type="text" name="url" size=30 value="<? p($user->url) ?>">
|
|
<? formerr($err["url"]) ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td><P><? print_string("icqnumber") ?>:</td>
|
|
<td><input type="text" name="icq" size=25 value="<? p($user->icq) ?>">
|
|
<? formerr($err["icq"]) ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td><P><? print_string("idnumber") ?>:</td>
|
|
<td><input type="text" name="idnumber" size=25 value="<? p($user->idnumber) ?>"> <? p($teacheronly) ?>
|
|
<? formerr($err["idnumber"]) ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td><P><? print_string("phone") ?> 1:</td>
|
|
<td><input type="text" name="phone1" size=25 value="<? p($user->phone1) ?>"> <? p($teacheronly) ?>
|
|
<? formerr($err["phone1"]) ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td><P><? print_string("phone") ?> 2:</td>
|
|
<td><input type="text" name="phone2" size=25 value="<? p($user->phone2) ?>"> <? p($teacheronly) ?>
|
|
<? formerr($err["phone2"]) ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td><P><? print_string("address") ?>:</td>
|
|
<td><input type="text" name="address" size=25 value="<? p($user->address) ?>"> <? p($teacheronly) ?>
|
|
<? formerr($err["address"]) ?>
|
|
</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>
|
|
</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>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td><P><? print_string("timezone") ?>:</td>
|
|
<td><?
|
|
if (abs($user->timezone) > 12) {
|
|
$user->timezone = 99;
|
|
}
|
|
$timenow = time();
|
|
|
|
for ($tz = -23; $tz <= 24; $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).")";
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td><input type="submit" value="<? print_string("updatemyprofile") ?>"></td>
|
|
</TABLE>
|
|
<INPUT type="hidden" name="course" value="<? p($course->id) ?>">
|
|
<INPUT type="hidden" name="id" value="<? p($user->id) ?>">
|
|
</FORM>
|