mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 19:11:59 +01:00
68 lines
5.0 KiB
Smarty
68 lines
5.0 KiB
Smarty
|
|
||
|
<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 } ?>
|
||
|
|
||
|
|