source: extensions/NBC_UserAdvManager/branches/2.20/admin/template/userlist.tpl @ 9459

Last change on this file since 9459 was 9459, checked in by Eric, 13 years ago

r9458 merged from trunk to branch 2.20

  • Property svn:eol-style set to LF
File size: 3.8 KB
Line 
1{combine_script id='jquery' path='themes/default/js/jquery.min.js'}
2{combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'}
3{combine_script id='jquery.tablesorter' require='jquery' path=$UAM_PATH|@cat:'admin/template/js/jquery.tablesorter.min.js'}
4{combine_script id='jquery.tablesorter.pager' require='jquery' path=$UAM_PATH|@cat:'admin/template/js/jquery.tablesorter.pager.js'}
5
6{html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head}
7
8<script type="text/javascript">
9jQuery().ready(function()
10{ldelim}
11  jQuery('.cluetip').cluetip(
12  {ldelim}
13    width: 600,
14    splitTitle: '|'
15  {rdelim});
16{rdelim});
17
18$(document).ready(function()
19    {ldelim}
20      $("#sorting")
21      .tablesorter(
22      {ldelim}
23          sortList:[[3,1]],
24          // pass the headers argument and assing a object
25          headers:
26          {ldelim}
27              // assign the fourth column (we start counting zero)
28              4:
29              {ldelim}
30                  // disable it by setting the property sorter to false
31                  sorter: false
32              {rdelim}
33          {rdelim}
34      {rdelim})
35      .tablesorterPager({ldelim}container: $("#pager"), positionFixed: false, size: 20, totalPages: 0{rdelim});
36    {rdelim}
37);
38</script>
39
40<div class="titrePage">
41  <h2>{'UAM_Title_Tab'|@translate} {$UAM_VERSION}<br>{'UAM_SubTitle5'|@translate}</h2>
42</div>
43
44<form method="post" action="" class="general">
45  <fieldset>
46        <legend class="cluetip" title="{'UAM_userlistTitle'|translate}|{'UAM_userlistTitle_d'|translate}">{'UAM_UserList_Title'|@translate}</legend>
47    {if count($users) > 0}
48      <table id="sorting" class="table2" width="97%" summary="">
49                        <thead>
50                        <tr class="throw">
51                        <th>{'Username'|@translate}</th>
52            <th>{'Profile'|@translate}</th>
53                        <th>{'Email address'|@translate}</th>
54            <th>{'UAM_LastVisit_Date'|@translate}</th>
55            <th>{'UAM_Nb_Days'|@translate}</th>
56                        </tr>
57                        </thead>
58        <tbody>
59        {foreach from=$users item=user name=users_loop}
60          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
61            <td><label for="selection-{$user.ID}">{$user.USERNAME}</label></td>
62            <td style="text-align:center;"><a href="./admin.php?page=profile&amp;user_id={$user.ID}" title="{'Profile'|@translate}" onclick="window.open(this.href); return false;"><img src="{$UAM_PATH}admin/template/icon/edit_s.png"></a></td>
63            <td>{$user.EMAIL}</td>
64            <td style="text-align:center;">{$user.LASTVISIT}</td>
65{if $user.DISPLAY == 'green'}
66            <td style="color:lime;text-align:center;">{$user.DAYS}</td>
67{elseif $user.DISPLAY == 'orange'}
68            <td style="color:orange;text-align:center;">{$user.DAYS}</td>
69{elseif $user.DISPLAY == 'red'}
70            <td style="color:red;text-align:center;">{$user.DAYS}</td>
71{else}
72            <td style="text-align:center;">{$user.DAYS}</td>
73{/if}
74            {foreach from=$user.plugin_columns item=data}
75              <td>{$data}</td>
76            {/foreach}                         
77          </tr>
78        {/foreach}
79        </tbody>
80      </table>
81<div id="pager" class="pager">
82        <form>
83                <img src="{$UAM_PATH}admin/template/icon/first.png" class="first">
84                <img src="{$UAM_PATH}admin/template/icon/prev.png" class="prev">
85                <input type="text" class="pagedisplay">
86                <img src="{$UAM_PATH}admin/template/icon/next.png" class="next">
87                <img src="{$UAM_PATH}admin/template/icon/last.png" class="last">
88                <select class="pagesize">
89                        <option  value="10">10</option>
90                        <option selected="selected" value="20">20</option>
91                        <option value="30">30</option>
92                        <option value="40">40</option>
93                </select>
94        </form>
95</div>
96        <br>
97  </fieldset>
98                {else}
99                <div>
100                        {'UAM_No_Userlist'|@translate}
101                </div>
102                {/if}
103</form>
Note: See TracBrowser for help on using the repository browser.