You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.1 KiB
100 lines
3.1 KiB
<h1><?php echo __('Manage Your Profile Information'); ?></h1>
|
|
<p><?php echo __(
|
|
'Use the forms below to update the information we have on file for your account'
|
|
); ?>
|
|
</p>
|
|
<form action="profile.php" method="post">
|
|
<?php csrf_token(); ?>
|
|
<table width="800" class="padded">
|
|
<?php
|
|
foreach ($user->getForms() as $f) {
|
|
$f->render(['staff' => false]);
|
|
}
|
|
if ($acct = $thisclient->getAccount()) {
|
|
$info=$acct->getInfo();
|
|
$info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
|
|
?>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div><hr><h3><?php echo __('Preferences'); ?></h3>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="180">
|
|
<?php echo __('Time Zone');?>:
|
|
</td>
|
|
<td>
|
|
<?php
|
|
$TZ_NAME = 'timezone';
|
|
$TZ_TIMEZONE = $info['timezone'];
|
|
include INCLUDE_DIR.'staff/templates/timezone.tmpl.php'; ?>
|
|
<div class="error"><?php echo $errors['timezone']; ?></div>
|
|
</td>
|
|
</tr>
|
|
<?php if ($cfg->getSecondaryLanguages()) { ?>
|
|
<tr>
|
|
<td width="180">
|
|
<?php echo __('Preferred Language'); ?>:
|
|
</td>
|
|
<td>
|
|
<?php
|
|
$langs = Internationalization::getConfiguredSystemLanguages(); ?>
|
|
<select name="lang">
|
|
<option value="">— <?php echo __('Use Browser Preference'); ?> —</option>
|
|
<?php foreach($langs as $l) {
|
|
$selected = ($info['lang'] == $l['code']) ? 'selected="selected"' : ''; ?>
|
|
<option value="<?php echo $l['code']; ?>" <?php echo $selected;
|
|
?>><?php echo Internationalization::getLanguageDescription($l['code']); ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
<span class="error"> <?php echo $errors['lang']; ?></span>
|
|
</td>
|
|
</tr>
|
|
<?php }
|
|
if ($acct->isPasswdResetEnabled()) { ?>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div><hr><h3><?php echo __('Access Credentials'); ?></h3></div>
|
|
</td>
|
|
</tr>
|
|
<?php if (!isset($_SESSION['_client']['reset-token'])) { ?>
|
|
<tr>
|
|
<td width="180">
|
|
<?php echo __('Current Password'); ?>:
|
|
</td>
|
|
<td>
|
|
<input type="password" size="18" name="cpasswd" value="<?php echo $info['cpasswd']; ?>">
|
|
<span class="error"> <?php echo $errors['cpasswd']; ?></span>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
<tr>
|
|
<td width="180">
|
|
<?php echo __('New Password'); ?>:
|
|
</td>
|
|
<td>
|
|
<input type="password" size="18" name="passwd1" value="<?php echo $info['passwd1']; ?>">
|
|
<span class="error"> <?php echo $errors['passwd1']; ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="180">
|
|
<?php echo __('Confirm New Password'); ?>:
|
|
</td>
|
|
<td>
|
|
<input type="password" size="18" name="passwd2" value="<?php echo $info['passwd2']; ?>">
|
|
<span class="error"> <?php echo $errors['passwd2']; ?></span>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
</table>
|
|
<hr>
|
|
<p style="text-align: center;">
|
|
<input type="submit" value="Update"/>
|
|
<input type="reset" value="Reset"/>
|
|
<input type="button" value="Cancel" onclick="javascript:
|
|
window.location.href='index.php';"/>
|
|
</p>
|
|
</form>
|