piler/webui/view/theme/default/templates/user/settings.tpl

138 lines
4.6 KiB
Smarty
Raw Normal View History

2012-02-08 23:14:28 +01:00
<?php if(!isset($x)){ ?>
<h4><?php print $text_access_settings; ?></h4>
2013-04-05 10:16:33 +02:00
<p><em><?php print $text_access_setting_explanation; ?></em></p>
2013-04-05 10:16:33 +02:00
<table class="table table-striped">
<tr>
<td class="span2"><?php print $text_email_addresses; ?>:</td>
<td class="span8"><?php print $emails; ?>
</td>
</tr>
2013-01-05 16:42:36 +01:00
<?php if(Registry::get('auditor_user') == 1 && RESTRICTED_AUDITOR == 1) { ?>
<tr>
<td><?php print $text_domains; ?>:</td>
<td><?php print $domains; ?></td>
</tr>
2013-01-05 16:42:36 +01:00
<?php } ?>
2013-01-05 16:42:36 +01:00
<?php if(Registry::get('auditor_user') == 0 || RESTRICTED_AUDITOR == 0) { ?>
<?php if($wildcard_domains) { ?>
<tr>
<td><?php print $text_wildcard_domains; ?>:</td>
<td><?php print $wildcard_domains; ?></td>
</tr>
<?php } ?>
<tr>
<td><?php print $text_groups; ?>:</td>
<td><?php print $groups; ?></td>
</tr>
2013-01-05 16:42:36 +01:00
<?php } ?>
2013-01-05 16:42:36 +01:00
<?php if(ENABLE_FOLDER_RESTRICTIONS == 1) { ?>
<tr>
<td><?php print $text_folders; ?>:</td>
<td><?php print $folders; ?></td>
</tr>
2013-01-05 16:42:36 +01:00
<?php } ?>
2013-04-05 10:16:33 +02:00
</table>
2013-04-05 10:16:33 +02:00
<form action="/settings.php" method="post" name="setpagelen" class="form-horizontal">
<h4><?php print $text_display_settings; ?></h4>
2013-04-05 10:16:33 +02:00
<div class="control-group">
<label class="control-label" for="pagelen"><?php print $text_page_length; ?></label>
<div class="controls">
<select name="pagelen">
2013-11-15 22:04:26 +01:00
<?php foreach(Registry::get('paging') as $t) { ?>
<option value="<?php print $t; ?>"<?php if($page_len == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
<?php } ?>
2013-04-05 10:16:33 +02:00
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="theme"><?php print $text_theme; ?></label>
<div class="controls">
2012-02-08 23:14:28 +01:00
<select name="theme">
<?php foreach(Registry::get('themes') as $t) { ?>
2013-11-18 19:24:33 +01:00
<option value="<?php print $t; ?>"<?php if($theme == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
2012-02-08 23:14:28 +01:00
<?php } ?>
</select>
2013-04-05 10:16:33 +02:00
</div>
</div>
<div class="control-group">
<label class="control-label" for="theme"><?php print $text_language; ?></label>
<div class="controls">
2013-03-17 21:43:40 +01:00
<select name="lang">
<option value=""><?php print $text_use_browser_settings; ?></option>
<?php foreach(Registry::get('langs') as $t) { ?>
2013-11-18 19:24:33 +01:00
<option value="<?php print $t; ?>"<?php if($lang == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
2013-03-17 21:43:40 +01:00
<?php } ?>
</select>
2013-04-05 10:16:33 +02:00
</div>
</div>
2012-02-08 23:14:28 +01:00
2013-04-05 10:16:33 +02:00
<div class="control-group">
<div class="controls">
2013-08-01 22:28:42 +02:00
<input type="submit" value="<?php print $text_set; ?>" class="btn btn-primary" /> <input type="reset" value="<?php print $text_cancel; ?>" class="btn btn" onclick="Piler.go_to_default_page();" />
2013-04-05 10:16:33 +02:00
</div>
</div>
2012-02-08 23:14:28 +01:00
</form>
<?php if(ENABLE_GOOGLE_AUTHENTICATOR == 1) { ?>
<form method="post" name="setqr" class="form-horizontal">
<h4><?php print $text_google_authenticator_settings; ?></h4>
<div class="control-group">
<label class="control-label" for="ga_enabled"><?php print $text_enable; ?></label>
<div class="controls">
<input type="checkbox" name="ga_enabled" id="ga_enabled" onclick="Piler.toggle_ga();" <?php if($ga['ga_enabled'] == 1) { ?>checked="checked"<?php } ?> />
</div>
</div>
<div class="control-group">
<label class="control-label" for="ga_secret"><?php print $text_qr_code; ?></label>
<div id="QR" class="controls">
<?php print $ga['ga_secret']; ?> <a href="#" onclick="Piler.new_qr(); return false;"> <?php print $text_refresh_qr_code; ?></a><br /><img src="qr.php?ts=<?php print time(); ?>" />
</div>
</div>
</form>
<?php } ?>
2012-02-08 23:14:28 +01:00
<p>&nbsp;</p>
<?php if(PASSWORD_CHANGE_ENABLED == 1) { ?>
2013-04-05 10:16:33 +02:00
<h4><?php print $text_change_password; ?></h4>
<form name="pwdchange" action="settings.php" method="post" autocomplete="off">
2013-04-05 10:16:33 +02:00
<table border="0" cellpadding="0" cellspacing="0">
<tr><td><?php print $text_password; ?>: </td><td><input type="password" name="password" /></td></tr>
<tr><td><?php print $text_password_again; ?>: </td><td><input type="password" name="password2" /></td></tr>
<tr><td>&nbsp;</td><td><input type="submit" value="<?php print $text_submit; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></td></tr>
</table>
</form>
2012-02-08 23:14:28 +01:00
<?php } ?>
<?php } else { ?>
<?php print $x; ?>. <a href="settings.php"><?php print $text_back; ?></a>
2012-02-08 23:14:28 +01:00
<?php } ?>