mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 13:17:03 +02:00
added the webui to the tarball
This commit is contained in:
81
webui/view/theme/default/templates/user/add.tpl
Normal file
81
webui/view/theme/default/templates/user/add.tpl
Normal file
@ -0,0 +1,81 @@
|
||||
|
||||
<h4><?php print $text_add_new_user_alias; ?></h4>
|
||||
|
||||
<?php if(isset($errorstring)){ ?><p class="loginfailed"><?php print $text_error; ?>: <?php print $errorstring; ?></p><?php } ?>
|
||||
|
||||
|
||||
<form action="index.php?route=user/add" name="adduser" method="post" autocomplete="off">
|
||||
<input type="hidden" name="uid" value="<?php print $next_user_id; ?>" />
|
||||
|
||||
<div id="ss1">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="domaincell"><textarea name="email" class="domain"><?php if(isset($post['email'])){ print $post['email']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_username; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="username" value="<?php if(isset($post['username'])){ print $post['username']; } ?>" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="realname" value="<?php if(isset($post['realname'])){ print $post['realname']; } ?>" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domain; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="domain">
|
||||
<?php asort($domains); foreach ($domains as $domain) { ?>
|
||||
<option value="<?php if(is_array($domain)){ print $domain['mapped']; } else { print $domain; } ?>"<?php if( (isset($post) && $domain == $post['domain']) || (!isset($post) && isset($_SESSION['last_domain']) && $domain == $_SESSION['last_domain']) ){ ?> selected="selected"<?php } ?>><?php if(is_array($domain)){ print $domain['mapped']; } else { print $domain; } ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(ENABLE_LDAP_IMPORT_FEATURE == 1) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell">LDAP DN:</div>
|
||||
<div class="domaincell"><input type="text" name="dn" value="<?php print $user['dn']; ?>" class="text" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password" value="" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password_again; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password2" value="" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_admin_user; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="isadmin">
|
||||
<option value="0"<?php if(isset($user['isadmin']) && $user['isadmin'] == 0){ ?> selected="selected"<?php } ?>><?php print $text_user_regular; ?></option>
|
||||
<?php if(Registry::get('admin_user') == 1) { ?><option value="1"<?php if(isset($user['isadmin']) && $user['isadmin'] == 1){ ?> selected="selected"<?php } ?>><?php print $text_user_masteradmin; ?></option><?php } ?>
|
||||
<option value="2"<?php if(isset($user['isadmin']) && $user['isadmin'] == 2){ ?> selected="selected"<?php } ?>><?php print $text_user_auditor; ?></option>
|
||||
<option value="3"<?php if(isset($user['isadmin']) && $user['isadmin'] == 3){ ?> selected="selected"<?php } ?>><?php print $text_user_read_only_admin; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_add; ?>" /><input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<?php if(isset($x)){ print $x; ?>. <a href="index.php?route=user/list"><?php print $text_back; ?></a>
|
||||
<?php } ?>
|
||||
|
99
webui/view/theme/default/templates/user/edit.tpl
Normal file
99
webui/view/theme/default/templates/user/edit.tpl
Normal file
@ -0,0 +1,99 @@
|
||||
|
||||
|
||||
<?php if(isset($user)) {
|
||||
|
||||
$userbasedn = preg_replace("/cn=([\w]+),/", "", $user['dn']); ?>
|
||||
|
||||
<form action="index.php?route=user/edit" name="adduser" method="post" autocomplete="off">
|
||||
<input type="hidden" name="uid" value="<?php print $uid; ?>" />
|
||||
|
||||
<div id="ss1">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="domaincell"><textarea name="email" class="domain"><?php print $emails; ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_username; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="username" value="<?php print $user['username']; ?>" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="realname" value="<?php print $user['realname']; ?>" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domain; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="domain">
|
||||
<?php asort($domains); foreach ($domains as $domain) { ?>
|
||||
<option value="<?php print $domain; ?>"<?php if($domain == $user['domain']){ ?> selected="selected"<?php } ?>><?php print $domain; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(ENABLE_LDAP_IMPORT_FEATURE == 1) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell">LDAP DN:</div>
|
||||
<div class="domaincell"><input type="text" name="dn" value="<?php print $user['dn']; ?>" class="text" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password" value="" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password_again; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password2" value="" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_user_id; ?>:</div>
|
||||
<div class="domaincell"><?php print $uid; ?></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_admin_user; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="isadmin">
|
||||
<option value="0"<?php if($user['isadmin'] == 0){ ?> selected="selected"<?php } ?>><?php print $text_user_regular; ?></option>
|
||||
<?php if(Registry::get('admin_user') == 1) { ?><option value="1"<?php if($user['isadmin'] == 1){ ?> selected="selected"<?php } ?>><?php print $text_user_masteradmin; ?></option><?php } ?>
|
||||
<option value="2"<?php if($user['isadmin'] == 2){ ?> selected="selected"<?php } ?>><?php print $text_user_auditor; ?></option>
|
||||
<option value="3"<?php if($user['isadmin'] == 3){ ?> selected="selected"<?php } ?>><?php print $text_user_read_only_admin; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_group_membership; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<?php foreach ($user['group_membership'] as $_group_uid) { ?>
|
||||
<?php $a = preg_split("/\s/", $this->model_user_user->getEmailsByUid($_group_uid)); print $a[0]; ?></br />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_modify; ?>" /><input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<p> </p>
|
||||
<p><a href="index.php?route=user/remove&uid=<?php print $user['uid']; ?>&user=<?php print $user['username']; ?>"><?php print $text_remove_this_user; ?>: <?php print $user['username']; ?></a></p>
|
||||
<p> </p>
|
||||
|
||||
<p>
|
||||
<?php } else if(isset($x)){ print $x; ?>.
|
||||
<?php } ?>
|
||||
|
||||
<a href="index.php?route=user/list"><?php print $text_back; ?></a>
|
||||
</p>
|
67
webui/view/theme/default/templates/user/list.tpl
Normal file
67
webui/view/theme/default/templates/user/list.tpl
Normal file
@ -0,0 +1,67 @@
|
||||
|
||||
<p/>
|
||||
|
||||
<p><a href="index.php?route=user/add"><?php print $text_add_new_user_alias; ?></a></p>
|
||||
|
||||
<h4><?php print $text_existing_users; ?></h4>
|
||||
|
||||
<form method="post" name="search1" action="index.php?route=user/list">
|
||||
<input type="text" name="search" value="<?php print $search; ?>" />
|
||||
<input type="submit" value="<?php print $text_search; ?>" />
|
||||
</form>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<?php if(isset($users)){ ?>
|
||||
|
||||
<div id="pagenav">
|
||||
<?php if($page > 0){ ?><a href="index.php?route=user/list&page=0&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> « <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php if($page > 0){ ?><a href="index.php?route=user/list&page=<?php print $prev_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> ‹ <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php print $users[0][$sort]; ?> - <?php print $users[count($users)-1][$sort]; ?>
|
||||
<?php if($total_users >= $page_len*($page+1) && $total_users > $page_len){ ?><a href="index.php?route=user/list&page=<?php print $next_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> › <?php if($total_users >= $page_len*($page+1) && $total_users > $page_len){ ?></a><?php } ?>
|
||||
<?php if($page < $total_pages){ ?><a href="index.php?route=user/list&page=<?php print $total_pages; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ss1" style="margin-top: 10px;">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?> <a href="index.php?route=user/list&sort=realname&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=realname&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
<div class="domaincell"><?php print $text_email; ?> <a href="index.php?route=user/list&sort=email&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=email&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
<div class="domaincell"><?php print $text_role; ?> <a href="index.php?route=user/list&sort=domain&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=domain&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
<div class="domaincell"> </div>
|
||||
</div>
|
||||
|
||||
<?php foreach($users as $user) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $user['realname']; ?></div>
|
||||
<div class="domaincell"><?php if($user['email'] != $user['shortemail']){ ?><span onmouseover="Tip('<?php print $user['email']; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $user['shortemail']; ?></span><?php } else { print $user['email']; } ?></div>
|
||||
<div class="domaincell">
|
||||
<?php
|
||||
if($user['isadmin'] == 0){ print $text_user_regular; }
|
||||
if($user['isadmin'] == 1){ print $text_user_masteradmin; }
|
||||
if($user['isadmin'] == 2){ print $text_user_auditor; }
|
||||
if($user['isadmin'] == 3){ print $text_user_read_only_admin; }
|
||||
?>
|
||||
</div>
|
||||
<div class="domaincell"><a href="index.php?route=user/edit&uid=<?php print $user['uid']; ?>"><?php print $text_edit_or_view; ?></a></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="pagenav">
|
||||
<?php if($page > 0){ ?><a href="index.php?route=user/list&page=0&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> « <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php if($page > 0){ ?><a href="index.php?route=user/list&page=<?php print $prev_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> ‹ <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php print $users[0][$sort]; ?> - <?php print $users[count($users)-1][$sort]; ?>
|
||||
<?php if($total_users >= $page_len*($page+1) && $total_users > $page_len){ ?><a href="index.php?route=user/list&page=<?php print $next_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> › <?php if($total_users >= $page_len*($page+1) && $total_users > $page_len){ ?></a><?php } ?>
|
||||
<?php if($page < $total_pages){ ?><a href="index.php?route=user/list&page=<?php print $total_pages; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
<?php print $text_not_found; ?>
|
||||
<?php } ?>
|
||||
|
||||
|
13
webui/view/theme/default/templates/user/remove.tpl
Normal file
13
webui/view/theme/default/templates/user/remove.tpl
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
<p>
|
||||
|
||||
<?php if($confirmed){ ?>
|
||||
|
||||
<?php print $x; ?>. <a href="index.php?route=user/list"><?php print $text_back; ?></a>
|
||||
|
||||
<?php } else { ?>
|
||||
<a href="index.php?route=user/remove&uid=<?php print $uid; ?>&user=<?php print $user; ?>&confirmed=1"><?php print $text_remove_this_user; ?>: <?php print $user; ?></a>
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
73
webui/view/theme/default/templates/user/settings.tpl
Normal file
73
webui/view/theme/default/templates/user/settings.tpl
Normal file
@ -0,0 +1,73 @@
|
||||
|
||||
<?php if(!isset($x)){ ?>
|
||||
|
||||
<form action="/settings.php" method="post" name="setpagelen">
|
||||
|
||||
<div id="search">
|
||||
|
||||
<div id="search1">
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1" style="width: 100px;"><?php print $text_page_length; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="pagelen">
|
||||
<option value="10"<?php if($page_len == 10) { ?> selected="selected"<?php } ?>>10
|
||||
<option value="20"<?php if($page_len == 20) { ?> selected="selected"<?php } ?>>20
|
||||
<option value="30"<?php if($page_len == 30) { ?> selected="selected"<?php } ?>>30
|
||||
<option value="50"<?php if($page_len == 50) { ?> selected="selected"<?php } ?>>50
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_language; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="lang">
|
||||
<?php foreach(Registry::get('langs') as $t) { ?>
|
||||
<option value="<?php print $t; ?>"<?php if(isset($_SESSION['lang']) && $_SESSION['lang'] == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_theme; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="theme">
|
||||
<?php foreach(Registry::get('themes') as $t) { ?>
|
||||
<option value="<?php print $t; ?>"<?php if(isset($_SESSION['theme']) && $_SESSION['theme'] == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"> </div>
|
||||
<div class="cell2"><input type="submit" value="<?php print $text_set; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<?php if(PASSWORD_CHANGE_ENABLED == 1) { ?>
|
||||
<form name="pwdchange" action="index.php?route=common/home" method="post" autocomplete="off">
|
||||
<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> </td><td><input type="submit" value="<?php print $text_submit; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<?php } else { ?>
|
||||
<?php print $x; ?>. <a href="index.php?route=common/home"><?php print $text_back; ?></a>
|
||||
<?php } ?>
|
||||
|
||||
|
Reference in New Issue
Block a user