2001-11-22 06:23:56 +00:00
|
|
|
<FORM METHOD="post" ENCTYPE="multipart/form-data" action="edit.php">
|
|
|
|
<table cellpadding=9 cellspacing=0 >
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("newpicture") ?>:</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
<td>
|
|
|
|
<INPUT type="hidden" name="MAX_FILE_SIZE" value="4000000">
|
2002-07-04 07:52:06 +00:00
|
|
|
<input type="file" name="imagefile" size=40> ( .jpg / .png ) <? helpbutton("picture") ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
<? formerr($err["imagefile"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("userdescription") ?>:</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
<td><TEXTAREA NAME=description COLS=50 ROWS=10 WRAP=virtual><?=$user->description ?></TEXTAREA>
|
|
|
|
<? helpbutton("text") ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("email") ?>:</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
<td><input type="text" name="email" size=30 value="<?=$user->email ?>">
|
2001-11-22 06:23:56 +00:00
|
|
|
<? formerr($err["email"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("emailformat") ?>:</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
<td><?
|
2002-07-04 07:52:06 +00:00
|
|
|
$choices["0"] = get_string("textformat");
|
|
|
|
$choices["1"] = get_string("htmlformat");
|
2002-06-05 05:37:55 +00:00
|
|
|
choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("webpage") ?>:</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
<td><input type="text" name="url" size=30 value="<?=$user->url ?>">
|
|
|
|
<? formerr($err["url"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("icqnumber") ?>:</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
<td><input type="text" name="icq" size=25 value="<?=$user->icq ?>">
|
|
|
|
<? formerr($err["icq"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("idnumber") ?>:</td>
|
|
|
|
<td><input type="text" name="idnumber" size=25 value="<?=$user->idnumber ?>"> <?=$teacheronly ?>
|
2002-06-05 05:37:55 +00:00
|
|
|
<? formerr($err["idnumber"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("phone") ?> 1:</td>
|
|
|
|
<td><input type="text" name="phone1" size=25 value="<?=$user->phone1 ?>"> <?=$teacheronly ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
<? formerr($err["phone1"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("phone") ?> 2:</td>
|
|
|
|
<td><input type="text" name="phone2" size=25 value="<?=$user->phone2 ?>"> <?=$teacheronly ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
<? formerr($err["phone2"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("address") ?>:</td>
|
|
|
|
<td><input type="text" name="address" size=25 value="<?=$user->address ?>"> <?=$teacheronly ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
<? formerr($err["address"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("city") ?>:</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
<td><input type="text" name="city" size=25 value="<?=$user->city ?>">
|
|
|
|
<? formerr($err["city"]) ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("country") ?>:</td>
|
|
|
|
<td><? choose_from_menu ($COUNTRIES, "country", $user->country, get_string("selectacountry")."...", "", "") ?>
|
2002-06-05 05:37:55 +00:00
|
|
|
<? formerr($err["country"]) ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-06-05 03:15:30 +00:00
|
|
|
<tr valign=top>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><P><? echo get_string("timezone") ?>:</td>
|
2002-06-05 03:15:30 +00:00
|
|
|
<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) {
|
2002-07-04 07:52:06 +00:00
|
|
|
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT)";
|
2002-06-05 03:15:30 +00:00
|
|
|
} else if ($tz < 0) {
|
2002-07-04 07:52:06 +00:00
|
|
|
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT$zone)";
|
2002-06-05 03:15:30 +00:00
|
|
|
} else {
|
2002-07-04 07:52:06 +00:00
|
|
|
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT+$zone)";
|
2002-06-05 03:15:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-07-04 07:52:06 +00:00
|
|
|
choose_from_menu ($timezones, "timezone", $user->timezone, get_string("serverlocaltime"), "", "99");
|
2002-06-05 03:15:30 +00:00
|
|
|
|
2002-07-04 07:52:06 +00:00
|
|
|
echo "(".get_string(currentlocaltime).")";
|
2002-06-05 03:15:30 +00:00
|
|
|
?>
|
2002-07-04 07:52:06 +00:00
|
|
|
</td>
|
2002-06-05 03:15:30 +00:00
|
|
|
</tr>
|
2001-11-22 06:23:56 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
2002-07-04 07:52:06 +00:00
|
|
|
<td><input type="submit" value="<? echo get_string("updatemyprofile") ?>"></td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</TABLE>
|
|
|
|
<INPUT type="hidden" name="course" value="<?=$course->id ?>">
|
|
|
|
<INPUT type="hidden" name="id" value="<?=$user->id ?>">
|
|
|
|
</FORM>
|