root/trunk/wifidog-auth/wifidog/admin/templates/user_log.html @ 379

Revision 379, 1.0 KB (checked in by aprilp, 8 years ago)

Added pages and sort options

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1{include file="templates/header.html"}
2
3{if $error}
4        <div id="help">
5        {$error}
6        </div>
7{else}
8<div>
9<form method="get">
10Sort: <select name="sort">{html_options values=$sort_ids selected=$sort output=$sort_ids}</select>
11Direction: <select name="direction">{html_options values=$direction_ids selected=$direction output=$direction_ids}</select>
12<input type="submit" value="{"Sort"|_}">
13</form>
14</div>
15
16<div>
17<table>
18<tr>
19        <th>Users</th>
20        <th>Email</th>
21        <th>Registered On</th>
22</tr>
23{section name=i loop=$users_array}
24<tr>
25    <td><a href="?user_id={$users_array[i].user_id}">{$users_array[i].user_id}</a></td>
26    <td>{$users_array[i].email}</td>
27        <td>{$users_array[i].reg_date|date_format:"%Y/%m/%d"}</td>
28    <td></td>
29</tr>
30{/section}
31</table>
32</div>
33<br>
34
35{if $pages}
36<div>
37Page:
38{section name=i loop=$pages}
39<a {if $pages[i].selected}style="font-weight: bold;" {/if}href="?sort={$sort}&direction={$direction}&page={$pages[i].number}">{$pages[i].number}</a>
40{/section}
41</div>
42{/if}
43
44{/if}
45
46{include file="templates/footer.html"}
Note: See TracBrowser for help on using the browser.