2001-11-22 06:23:56 +00:00
|
|
|
<P ALIGN=center>Items marked <B>private</B> will not be made visible to other students</P>
|
|
|
|
|
|
|
|
<FORM METHOD="post" ENCTYPE="multipart/form-data" action="edit.php">
|
|
|
|
<table cellpadding=9 cellspacing=0 >
|
|
|
|
<tr valign=top>
|
|
|
|
<td><P>New picture:</td>
|
|
|
|
<td>
|
|
|
|
<INPUT type="hidden" name="MAX_FILE_SIZE" value="4000000">
|
2002-03-15 10:19:21 +00:00
|
|
|
<input type="file" name="imagefile"> ( .jpg or .png ) <? helpbutton("picture") ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
<? formerr($err["imagefile"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
|
|
|
<td><P>Email:</td>
|
|
|
|
<td><input type="text" name="email" size=25 value="<?=$user->email ?>">
|
|
|
|
<? formerr($err["email"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
|
|
|
<td><P>ICQ Number:</td>
|
|
|
|
<td><input type="text" name="icq" size=25 value="<?=$user->icq ?>">
|
|
|
|
<? formerr($err["icq"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
|
|
|
<td><P>Phone Number 1:</td>
|
|
|
|
<td><input type="text" name="phone1" size=25 value="<?=$user->phone1 ?>"> (private)
|
|
|
|
<? formerr($err["phone1"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
|
|
|
<td><P>Phone Number 2:</td>
|
|
|
|
<td><input type="text" name="phone2" size=25 value="<?=$user->phone2 ?>"> (private)
|
|
|
|
<? formerr($err["phone2"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
|
|
|
<td><P>Address:</td>
|
|
|
|
<td><input type="text" name="address" size=25 value="<?=$user->address ?>"> (private)
|
|
|
|
<? formerr($err["address"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
|
|
|
<td><P>Web Address:</td>
|
|
|
|
<td><input type="text" name="url" size=25 value="<?=$user->url ?>">
|
|
|
|
<? formerr($err["url"]) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
|
|
|
<td><P>Description:</td>
|
|
|
|
<td><TEXTAREA NAME=description COLS=50 ROWS=10 WRAP=virtual><?=$user->description ?></TEXTAREA>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2002-06-05 03:15:30 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><P>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"] = gmdate("D, h:i a", $usertime)." (GMT)";
|
|
|
|
} else if ($tz < 0) {
|
|
|
|
$timezones["$zone"] = gmdate("D, h:i a", $usertime)." (GMT$zone)";
|
|
|
|
} else {
|
|
|
|
$timezones["$zone"] = gmdate("D, h:i a", $usertime)." (GMT+$zone)";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
choose_from_menu ($timezones, "timezone", $user->timezone, "Use the server's local time", "", "99");
|
|
|
|
|
|
|
|
?>
|
|
|
|
(Your current local time)</td>
|
|
|
|
</tr>
|
2001-11-22 06:23:56 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td><input type="submit" value="Update my profile"></td>
|
|
|
|
</TABLE>
|
|
|
|
<INPUT type="hidden" name="course" value="<?=$course->id ?>">
|
|
|
|
<INPUT type="hidden" name="id" value="<?=$user->id ?>">
|
|
|
|
</FORM>
|