1<h1 class="header">
2 <?php echo _("Users in the system:") ?>
3 <?php if ($numitem): ?>
4  <small>[<?php printf(_("%d to %d of %d"), $start, $end, $numitem) ?>]</small>
5 <?php endif; ?>
6</h1>
7
8<div class="horde-content">
9 <form method="post" name="search" action="<?php echo Horde::selfUrl() ?>">
10 <?php echo Horde_Util::formInput() ?>
11 <input type="hidden" name="page" value="0" />
12 <?php echo Horde::label('search_pattern', _("Search:")) ?>
13 <input id="search_pattern" name="search_pattern" type="text" value="" size="50" maxlength="100" />
14 <input type="submit" class="horde-default" value="<?php echo _("Search") ?>" />
15 </form>
16</div>
17
18<table class="horde-table">
19<?php
20$remove = $auth->hasCapability('remove');
21$total = 0;
22$admin_url = Horde::url('admin/user.php');
23
24foreach ($users as $user):
25    if ($total++ < $min || $total > $max) {
26        continue;
27    }
28    $user_url = $admin_url->copy()->add('user_name', $user);
29?>
30 <tr>
31<?php if ($remove): ?>
32  <td width="1%"><?php echo Horde::link($user_url->add('form', 'remove_f'), _("Delete")) . Horde_Themes_Image::tag('delete.png', array('alt' => _("Delete"))) ?></a></td>
33<?php endif; ?>
34  <td width="1%"><?php echo Horde::link($user_url->add('form', 'update_f'), _("Update")) .  Horde_Themes_Image::tag('edit.png', array('alt' => _("Update"))) ?></a></td>
35  <td width="1%"><?php echo Horde::link($user_url->add('form', 'clear_f'), _("Clear user data")) .  Horde_Themes_Image::tag('reload.png', array('alt' => _("Clear user data"))) ?></a></td>
36  <td><?php echo $user ?></td>
37 </tr>
38<?php endforeach; ?>
39</table>
40<?php if ($numitem): ?>
41<div class="horde-content">
42<?php
43$pager = new Horde_Core_Ui_Pager('page', $vars, array('num' => $total, 'url' => $viewurl, 'page_count' => 10, 'perpage' => $perpage));
44echo $pager->render($page, $total, $viewurl);
45?>
46</div>
47<?php endif ?>
48