2003-05-10 09:36:57 +00:00
|
|
|
<?php
|
2004-08-26 22:38:39 +00:00
|
|
|
if (!isset($user->htmleditor)) {
|
2003-01-06 13:55:37 +00:00
|
|
|
$user->htmleditor = 1;
|
|
|
|
}
|
2004-01-25 19:37:04 +00:00
|
|
|
if (!isset($user->picture)) {
|
|
|
|
$user->picture = NULL;
|
|
|
|
}
|
2003-01-06 13:55:37 +00:00
|
|
|
if (empty($user->lang)) {
|
|
|
|
$user->lang = $CFG->lang;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2003-05-10 09:36:57 +00:00
|
|
|
<form method="post" enctype="multipart/form-data" action="edit.php">
|
2004-09-07 08:05:25 +00:00
|
|
|
<table cellpadding="9" cellspacing="0" >
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php
|
2002-08-08 14:17:55 +00:00
|
|
|
if (isadmin()) {
|
2003-09-09 17:40:07 +00:00
|
|
|
$theadmin = get_admin();
|
2003-09-22 13:25:27 +00:00
|
|
|
$adminself = (($theadmin->id == $USER->id) and ($USER->id == $user->id));
|
2004-09-07 08:05:25 +00:00
|
|
|
echo "<tr valign=\"top\">";
|
2004-09-07 10:18:52 +00:00
|
|
|
echo "<td align=\"right\"> ".get_string("username").": </td>";
|
2004-08-16 15:41:57 +00:00
|
|
|
if ($adminself || is_internal_auth($user->auth) ){
|
2004-09-07 10:18:52 +00:00
|
|
|
echo "<td> <input type=\"text\" name=\"username\" size=\"20\" value=\"";
|
2003-04-25 16:42:07 +00:00
|
|
|
p($user->username);
|
2004-09-07 08:54:43 +00:00
|
|
|
echo "\" />";
|
2003-04-25 16:42:07 +00:00
|
|
|
if (isset($err["username"])) formerr($err["username"]);
|
2003-06-13 02:37:52 +00:00
|
|
|
} else {
|
2004-09-07 10:18:52 +00:00
|
|
|
echo "<td> ";
|
2003-04-25 16:42:07 +00:00
|
|
|
p($user->username);
|
2003-06-13 02:37:52 +00:00
|
|
|
echo "<input type=\"hidden\" name=\"username\" value=\"";
|
|
|
|
p($user->username);
|
2004-09-07 08:54:43 +00:00
|
|
|
echo "\" />";
|
2003-04-25 16:42:07 +00:00
|
|
|
}
|
2004-09-07 10:18:52 +00:00
|
|
|
echo " </td>";
|
2004-09-07 08:54:43 +00:00
|
|
|
echo "</tr>\n";
|
2002-08-08 14:17:55 +00:00
|
|
|
|
2004-09-16 01:45:20 +00:00
|
|
|
$modules = get_list_of_plugins("auth");
|
|
|
|
foreach ($modules as $module) {
|
|
|
|
$auth_options[$module] = get_string("auth_$module"."title", "auth");
|
|
|
|
}
|
|
|
|
echo '<tr valign="top">';
|
2004-09-20 09:08:57 +00:00
|
|
|
echo '<td align="right">'.get_string("chooseauthmethod","auth").'</td>' . "\n<td>";
|
|
|
|
choose_from_menu ($auth_options, "auth", $user->auth);
|
2004-09-16 01:45:20 +00:00
|
|
|
echo "</td></tr>\n";
|
|
|
|
|
2004-09-20 09:08:57 +00:00
|
|
|
if ($adminself || is_internal_auth($user->auth) || (!empty($CFG->{'auth_'.$user->auth.'_stdchangepassword'}))) {
|
2004-09-07 08:05:25 +00:00
|
|
|
echo "<tr valign=\"top\">";
|
2004-09-07 10:18:52 +00:00
|
|
|
echo "<td align=\"right\"> ".get_string("newpassword").": </td>";
|
|
|
|
echo "<td> <input type=\"text\" name=\"newpassword\" size=\"20\" value=\"";
|
2003-04-25 06:01:59 +00:00
|
|
|
if (isset($user->newpassword)) p($user->newpassword);
|
2004-09-07 08:54:43 +00:00
|
|
|
echo "\" />";
|
2003-04-25 06:01:59 +00:00
|
|
|
if (isset($err["newpassword"])) {
|
|
|
|
formerr($err["newpassword"]);
|
|
|
|
} else if (empty($user->newpassword)) {
|
|
|
|
echo " (".get_string("leavetokeep").")";
|
|
|
|
}
|
2004-09-07 10:18:52 +00:00
|
|
|
echo " </td>";
|
2004-09-07 08:54:43 +00:00
|
|
|
echo "</tr>\n";
|
2004-09-21 13:20:13 +00:00
|
|
|
if(!$adminself && (isset($CFG->{'auth_'.$user->auth.'_stdchangepassword'}) || $CFG->changepassword)){
|
2004-09-20 09:08:57 +00:00
|
|
|
echo "<tr>";
|
2004-09-21 13:20:13 +00:00
|
|
|
echo '<td align=right><p>'.get_string('forcechangepassword', 'auth').':</td>';
|
|
|
|
echo '<td><input type="checkbox" name="forcepasswordchange" />'.get_string('forcechangepassword_help','auth').'</td>';
|
2004-09-20 09:08:57 +00:00
|
|
|
echo "</tr>";
|
|
|
|
}
|
|
|
|
|
2004-09-07 08:05:25 +00:00
|
|
|
echo "<tr><td colspan=\"2\"><hr /></td></tr>";
|
2002-08-08 14:17:55 +00:00
|
|
|
}
|
|
|
|
}
|
2004-09-21 13:20:13 +00:00
|
|
|
|
2002-08-08 14:17:55 +00:00
|
|
|
?>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"><?php print_string("firstname") ?>:</td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if (isset($CFG->auth_user_firstname_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="firstname" value="<?php p($user->firstname) ?>" />
|
|
|
|
<?php p($user->firstname) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="firstname" size="30" maxlength="20" value="<?php p($user->firstname) ?>" />
|
|
|
|
<?php } ?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["firstname"])) formerr($err["firstname"]); ?>
|
2002-12-30 05:13:43 +00:00
|
|
|
</td>
|
2002-08-06 09:36:42 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"><?php print_string("lastname") ?>:</td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset($CFG->auth_user_lastname_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="lastname" value="<?php p($user->lastname) ?>" />
|
|
|
|
<?php p($user->lastname) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="lastname" size="30" maxlength="20" value="<?php p($user->lastname) ?>" />
|
|
|
|
<?php } ?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["lastname"])) formerr($err["lastname"]); ?>
|
2002-12-30 05:13:43 +00:00
|
|
|
</td>
|
2002-08-06 09:36:42 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-20 09:08:57 +00:00
|
|
|
<td align="right"><p><?php print_string("email") ?>:</td>
|
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset($CFG->auth_user_email_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="email" value="<?php p($user->email) ?>" />
|
|
|
|
<?php p($user->email) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="email" size="30" maxlength="100" value="<?php p($user->email) ?>" />
|
|
|
|
<?php } ?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["email"])) formerr($err["email"]); ?>
|
2002-12-30 05:13:43 +00:00
|
|
|
</td>
|
2002-09-22 14:06:38 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"><?php print_string("emaildisplay") ?>:</td>
|
2004-06-01 07:59:35 +00:00
|
|
|
<td><?php
|
2004-07-24 08:53:33 +00:00
|
|
|
unset($choices);
|
2002-09-22 16:24:38 +00:00
|
|
|
$choices["0"] = get_string("emaildisplayno");
|
|
|
|
$choices["1"] = get_string("emaildisplayyes");
|
|
|
|
$choices["2"] = get_string("emaildisplaycourse");
|
|
|
|
choose_from_menu ($choices, "maildisplay", $user->maildisplay, "") ?>
|
2002-12-30 05:13:43 +00:00
|
|
|
</td>
|
2002-09-22 14:06:38 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"><?php print_string("emailactive") ?>:</td>
|
2004-07-24 08:53:33 +00:00
|
|
|
<td><?php
|
|
|
|
unset($choices);
|
|
|
|
$choices["0"] = get_string("emailenable");
|
|
|
|
$choices["1"] = get_string("emaildisable");
|
|
|
|
choose_from_menu ($choices, "emailstop", $user->emailstop, "") ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("emailformat") ?>: </td>
|
|
|
|
<td> <?php
|
2002-09-22 16:24:38 +00:00
|
|
|
unset($choices);
|
|
|
|
$choices["0"] = get_string("textformat");
|
|
|
|
$choices["1"] = get_string("htmlformat");
|
|
|
|
choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2002-09-22 14:06:38 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string('emaildigest') ?>: </td>
|
|
|
|
<td> <?php
|
2004-06-01 07:59:35 +00:00
|
|
|
unset($choices);
|
|
|
|
$choices['0'] = get_string('emaildigestoff');
|
|
|
|
$choices['1'] = get_string('emaildigestcomplete');
|
|
|
|
$choices['2'] = get_string('emaildigestsubjects');
|
|
|
|
choose_from_menu ($choices, 'maildigest', $user->maildigest, "") ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2004-06-01 07:59:35 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("autosubscribe") ?>: </td>
|
|
|
|
<td> <?php
|
2003-05-23 05:32:40 +00:00
|
|
|
unset($choices);
|
|
|
|
$choices["1"] = get_string("autosubscribeyes");
|
|
|
|
$choices["0"] = get_string("autosubscribeno");
|
|
|
|
choose_from_menu ($choices, "autosubscribe", $user->autosubscribe, "") ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2003-05-23 05:32:40 +00:00
|
|
|
</tr>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if ($CFG->htmleditor) { ?>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("textediting") ?>: </td>
|
|
|
|
<td> <?php
|
2002-10-10 07:29:09 +00:00
|
|
|
unset($choices);
|
|
|
|
$choices["0"] = get_string("texteditor");
|
|
|
|
$choices["1"] = get_string("htmleditor");
|
|
|
|
choose_from_menu ($choices, "htmleditor", $user->htmleditor, "") ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2002-10-10 07:29:09 +00:00
|
|
|
</tr>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php } ?>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-20 09:08:57 +00:00
|
|
|
<td align="right"> <?php print_string("city") ?>:</td>
|
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset($CFG->auth_user_city_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="city" value="<?php p($user->city) ?>" />
|
|
|
|
<?php p($user->city) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="city" size="25" maxlength="20" value="<?php p($user->city) ?>" />
|
|
|
|
<?php } ?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["city"])) formerr($err["city"]); ?>
|
2002-12-30 05:13:43 +00:00
|
|
|
</td>
|
2002-08-08 14:17:55 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("country") ?>: </td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td>
|
|
|
|
<?php
|
2002-12-14 08:18:18 +00:00
|
|
|
|
|
|
|
if (!$user->country and $CFG->country) {
|
|
|
|
$user->country = $CFG->country;
|
|
|
|
}
|
2004-06-01 07:59:35 +00:00
|
|
|
|
2004-09-21 06:09:09 +00:00
|
|
|
if(isset($CFG->auth_user_country_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="country" value="<?php p($user->country); ?>" />
|
|
|
|
<?php p($user->country);
|
|
|
|
} else {
|
|
|
|
choose_from_menu(get_list_of_countries(), "country", $user->country, get_string("selectacountry")."...", "", "");
|
|
|
|
}
|
|
|
|
?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["country"])) formerr($err["country"]); ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("preferredlanguage") ?>: </td>
|
|
|
|
<td> <?php if ($languages = get_list_of_languages()) {
|
2002-09-22 14:06:38 +00:00
|
|
|
if (!$user->lang) {
|
2002-10-18 08:46:12 +00:00
|
|
|
$user->lang = $CFG->lang;
|
2002-09-22 14:06:38 +00:00
|
|
|
}
|
2004-09-21 06:09:09 +00:00
|
|
|
if(isset($CFG->auth_user_lang_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="lang" value="<?php p($user->lang) ?>" />
|
|
|
|
<?php p($user->lang);
|
|
|
|
} else {
|
|
|
|
choose_from_menu ($languages, "lang", $user->lang, "", "", "");
|
|
|
|
}
|
2002-09-22 14:06:38 +00:00
|
|
|
}
|
2002-12-30 05:13:43 +00:00
|
|
|
if (isset($err["lang"])) formerr($err["lang"]);
|
2002-09-22 14:06:38 +00:00
|
|
|
?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("timezone") ?>: </td>
|
|
|
|
<td> <?php
|
2002-11-15 02:46:48 +00:00
|
|
|
if (abs($user->timezone) > 13) {
|
2002-09-22 14:06:38 +00:00
|
|
|
$user->timezone = 99;
|
|
|
|
}
|
|
|
|
$timenow = time();
|
2004-08-25 08:52:14 +00:00
|
|
|
$timeformat = get_string('strftimedaytime');
|
2002-09-22 14:06:38 +00:00
|
|
|
|
2002-11-15 02:46:48 +00:00
|
|
|
for ($tz = -26; $tz <= 26; $tz++) {
|
2002-09-22 14:06:38 +00:00
|
|
|
$zone = (float)$tz/2.0;
|
|
|
|
$usertime = $timenow + ($tz * 1800);
|
|
|
|
if ($tz == 0) {
|
2004-08-25 08:52:14 +00:00
|
|
|
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT)";
|
2002-09-22 14:06:38 +00:00
|
|
|
} else if ($tz < 0) {
|
2004-08-25 08:52:14 +00:00
|
|
|
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT$zone)";
|
2002-09-22 14:06:38 +00:00
|
|
|
} else {
|
2004-08-25 08:52:14 +00:00
|
|
|
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT+$zone)";
|
2002-09-22 14:06:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
choose_from_menu ($timezones, "timezone", $user->timezone, get_string("serverlocaltime"), "", "99");
|
|
|
|
|
2002-12-29 17:32:32 +00:00
|
|
|
echo "(".get_string("currentlocaltime").")";
|
2002-12-30 05:13:43 +00:00
|
|
|
?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2002-09-22 14:06:38 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("userdescription") ?>: </td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td><?php if (isset($err["description"])) {
|
|
|
|
formerr($err["description"]);
|
|
|
|
echo "<br />";
|
|
|
|
} ?>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset($CFG->auth_user_description_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="description" value="<?php p($user->description) ?>" />
|
|
|
|
<?php print format_text($user->description, FORMAT_MOODLE);
|
|
|
|
} else {
|
2004-09-07 10:18:52 +00:00
|
|
|
if (isset($err["description"])) {
|
|
|
|
formerr($err["description"]);
|
|
|
|
echo "<br />";
|
|
|
|
}
|
|
|
|
print_textarea(false, 10, 50, 50, 10, 'description', "$user->description");
|
|
|
|
helpbutton("text", get_string("helptext"));
|
2004-09-20 09:08:57 +00:00
|
|
|
|
|
|
|
} ?>
|
|
|
|
</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
</tr>
|
2002-09-22 16:24:38 +00:00
|
|
|
<tr>
|
2004-09-07 10:18:52 +00:00
|
|
|
<td colspan="2" align="center"> <br /><b><?php print_string("followingoptional") ?>:</b> </td>
|
2002-09-22 16:24:38 +00:00
|
|
|
</tr>
|
2003-01-05 06:45:20 +00:00
|
|
|
|
|
|
|
|
2004-06-01 07:59:35 +00:00
|
|
|
<?php
|
2003-10-06 18:02:35 +00:00
|
|
|
$maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);
|
2004-06-01 07:59:35 +00:00
|
|
|
if (!empty($CFG->gdversion) and $maxbytes and empty($CFG->disableuserimages)) {
|
2003-10-06 18:02:35 +00:00
|
|
|
?>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("currentpicture") ?>: </td>
|
|
|
|
<td>
|
2004-06-01 07:59:35 +00:00
|
|
|
<?php print_user_picture($user->id, $course->id, $user->picture, false, false, false);
|
2004-05-01 14:34:21 +00:00
|
|
|
if ($user->picture) {
|
|
|
|
echo ' <input type="checkbox" name="deletepicture" value="1">';
|
|
|
|
print_string("delete");
|
|
|
|
}
|
|
|
|
?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2004-05-01 14:34:21 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("newpicture") ?>: </td>
|
|
|
|
<td>
|
2004-09-16 00:16:48 +00:00
|
|
|
<?php
|
|
|
|
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
|
|
|
upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
|
|
|
|
helpbutton("picture", get_string("helppicture"));
|
2004-06-01 07:59:35 +00:00
|
|
|
print_string("maxsize", "", display_size($maxbytes));
|
2002-12-30 05:13:43 +00:00
|
|
|
if (isset($err["imagefile"])) formerr($err["imagefile"]);
|
2002-09-22 16:24:38 +00:00
|
|
|
?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2002-08-21 13:29:25 +00:00
|
|
|
</tr>
|
2004-08-19 04:45:07 +00:00
|
|
|
<?php } else if (empty($CFG->gdversion) and isadmin()) { ?>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("newpicture") ?>: </td>
|
|
|
|
<td>
|
2004-08-19 04:45:07 +00:00
|
|
|
<?php
|
|
|
|
echo "<a href=\"$CFG->wwwroot/$CFG->admin/config.php\">";
|
|
|
|
print_string('gdnot');
|
|
|
|
echo "</a>";
|
|
|
|
?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2004-08-19 04:45:07 +00:00
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
2003-01-05 06:45:20 +00:00
|
|
|
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("webpage") ?>: </td>
|
|
|
|
<td> <input type="text" name="url" size="50" maxlength="255" value="<?php p($user->url) ?>" />
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["url"])) formerr($err["url"]); ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("icqnumber") ?>: </td>
|
|
|
|
<td> <input type="text" name="icq" size="25" maxlength="15" value="<?php p($user->icq) ?>" />
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["icq"])) formerr($err["icq"]); ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("idnumber") ?>: </td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset($CFG->auth_user_idnumber_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="idnumber" value="<?php p($user->idnumber) ?>" />
|
|
|
|
<?php p($user->idnumber) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="idnumber" size="25" maxlength="12" value="<?php p($user->idnumber) ?>" /> <?php p($teacheronly) ?>
|
|
|
|
<?php } ?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["idnumber"])) formerr($err["idnumber"]); ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2002-06-05 05:37:55 +00:00
|
|
|
</tr>
|
2004-02-04 14:24:29 +00:00
|
|
|
<?php if (isadmin()) { ?>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-20 09:08:57 +00:00
|
|
|
<td align="right"> <?php print_string("institution") ?>:</td>
|
|
|
|
<td><input type="text" name="institution" size="25" maxlength="40" value="<?php p($user->institution) ?>" /> <?php p($teacheronly) ?>
|
|
|
|
</td>
|
2004-02-04 14:24:29 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("department") ?>: </td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset( $CFG->auth_user_department_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="department" value="<?php p($user->department) ?>" />
|
|
|
|
<?php p($user->department) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="department" size="25" maxlength="30" value="<?php p($user->department) ?>" /> <?php p($teacheronly) ?>
|
|
|
|
<?php } ?>
|
|
|
|
</td>
|
2004-02-04 14:24:29 +00:00
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("phone") ?> 1: </td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset($CFG->auth_user_phone1_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="phone1" value="<?php p($user->phone1) ?>" />
|
|
|
|
<?php p($user->phone1) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="phone1" size="25" maxlength="20" value="<?php p($user->phone1) ?>" /> <?php p($teacheronly) ?>
|
|
|
|
<?php } ?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["phone1"])) formerr($err["phone1"]); ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("phone") ?> 2: </td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset($CFG->auth_user_phone2_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="phone2" value="<?php p($user->phone2) ?>" />
|
|
|
|
<?php p($user->phone2) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="phone2" size="25" maxlength="20" value="<?php p($user->phone2) ?>" /> <?php p($teacheronly) ?>
|
|
|
|
<?php } ?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["phone2"])) formerr($err["phone2"]); ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
2004-09-07 08:05:25 +00:00
|
|
|
<tr valign="top">
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <?php print_string("address") ?>: </td>
|
2004-09-20 09:08:57 +00:00
|
|
|
<td>
|
2004-09-21 06:09:09 +00:00
|
|
|
<?php if(isset($CFG->auth_user_address_editlock)){ ?>
|
2004-09-20 09:08:57 +00:00
|
|
|
<input type="hidden" name="address" value="<?php p($user->address) ?>" />
|
|
|
|
<?php p($user->address) ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="text" name="address" size="25" maxlength="70" value="<?php p($user->address) ?>" /> <?php p($teacheronly) ?>
|
|
|
|
<?php } ?>
|
2003-05-10 09:36:57 +00:00
|
|
|
<?php if (isset($err["address"])) formerr($err["address"]); ?>
|
2004-09-07 10:18:52 +00:00
|
|
|
</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2002-12-30 05:13:43 +00:00
|
|
|
<td></td>
|
2004-09-07 10:18:52 +00:00
|
|
|
<td align="right"> <input type="submit" value="<?php print_string("updatemyprofile") ?>" /> </td>
|
|
|
|
</tr>
|
2003-05-10 09:36:57 +00:00
|
|
|
</table>
|
2004-09-07 08:05:25 +00:00
|
|
|
<input type="hidden" name="course" value="<?php p($course->id) ?>" />
|
|
|
|
<input type="hidden" name="id" value="<?php p($user->id) ?>" />
|
2003-05-10 09:36:57 +00:00
|
|
|
</form>
|