source: extensions/NBC_UserAdvManager/trunk/admin/template/userlist.tpl @ 8841

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

Set compatibility for Piwigo 2.2-RC
Note : Little display bug remains on Piwigo's left menu due to sortable tables (userlist.tpl, usermanager.tpl and ghosttracker.tpl) when no user is listed.

  • Property svn:eol-style set to LF
File size: 3.3 KB
Line 
1{combine_script id="jquery" path=$ROOT_URL|@cat:"themes/default/js/jquery.js"}
2{combine_script id="jquery.cluetip" path=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
3{combine_script id="jquery.tablesorter" path=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"}
4{combine_script id="jquery.tablesorter.pager" 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({ldelim}sortList:[[3,1]]{rdelim})
22      .tablesorterPager({ldelim}container: $("#pager"), positionFixed: false, size: 20, totalPages: 0{rdelim});
23    {rdelim}
24);
25</script>
26
27<div class="titrePage">
28  <h2>{'Title_Tab'|@translate} {$UAM_VERSION}<br>{'SubTitle5'|@translate}</h2>
29</div>
30
31<form method="post" action="" class="general">
32  <fieldset>
33        <legend class="cluetip" title="{'UAM_userlistTitle'|translate}|{'UAM_userlistTitle_d'|translate}">{'UserList_Title'|@translate}</legend>
34
35      <table id="sorting" class="table2" width="97%" summary="">
36                        <thead>
37                        <tr class="throw">
38                        <th>{'Username'|@translate}</th>
39            <th>{'Profile'|@translate}</th>
40                        <th>{'Email address'|@translate}</th>
41            <th>{'LastVisit_Date'|@translate}</th>
42            <th>{'Nb_Days'|@translate}</th>
43                        </tr>
44                        </thead>
45        <tbody>
46        {foreach from=$users item=user name=users_loop}
47          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
48            <td><label for="selection-{$user.ID}">{$user.USERNAME}</label></td>
49            <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>
50            <td>{$user.EMAIL}</td>
51            <td style="text-align:center;">{$user.LASTVISIT}</td>
52{if $user.DISPLAY == 'green'}
53            <td style="color:lime;text-align:center;">{$user.DAYS}</td>
54{elseif $user.DISPLAY == 'orange'}
55            <td style="color:orange;text-align:center;">{$user.DAYS}</td>
56{elseif $user.DISPLAY == 'red'}
57            <td style="color:red;text-align:center;">{$user.DAYS}</td>
58{else}
59            <td style="text-align:center;">{$user.DAYS}</td>
60{/if}
61            {foreach from=$user.plugin_columns item=data}
62              <td>{$data}</td>
63            {/foreach}                         
64          </tr>
65        {/foreach}
66        </tbody>
67      </table>
68<div id="pager" class="pager">
69        <form>
70                <img src="{$UAM_PATH}admin/template/icon/first.png" class="first">
71                <img src="{$UAM_PATH}admin/template/icon/prev.png" class="prev">
72                <input type="text" class="pagedisplay">
73                <img src="{$UAM_PATH}admin/template/icon/next.png" class="next">
74                <img src="{$UAM_PATH}admin/template/icon/last.png" class="last">
75                <select class="pagesize">
76                        <option  value="10">10</option>
77                        <option selected="selected" value="20">20</option>
78                        <option value="30">30</option>
79                        <option value="40">40</option>
80                </select>
81        </form>
82</div>
83        <br>
84  </fieldset>
85</form>
Note: See TracBrowser for help on using the repository browser.