source: extensions/UserAdvManager/trunk/admin/template/userlist.tpl @ 9924

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

Piwigo 2.2 compliance : Using combine_css

  • Property svn:eol-style set to LF
File size: 3.8 KB
RevLine 
[9458]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'}
[5593]5
[9924]6{combine_css path= $UAM_PATH|@cat:'admin/template/uam.css'}
[5593]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});
[6378]17
18$(document).ready(function()
[6399]19    {ldelim}
20      $("#sorting")
[8875]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})
[6399]35      .tablesorterPager({ldelim}container: $("#pager"), positionFixed: false, size: 20, totalPages: 0{rdelim});
[6378]36    {rdelim}
37);
[5593]38</script>
39
40<div class="titrePage">
[9177]41  <h2>{'UAM_Title_Tab'|@translate} {$UAM_VERSION}<br>{'UAM_SubTitle5'|@translate}</h2>
[5593]42</div>
43
44<form method="post" action="" class="general">
45  <fieldset>
[9177]46        <legend class="cluetip" title="{'UAM_userlistTitle'|translate}|{'UAM_userlistTitle_d'|translate}">{'UAM_UserList_Title'|@translate}</legend>
[9324]47    {if count($users) > 0}
[6378]48      <table id="sorting" class="table2" width="97%" summary="">
[5593]49                        <thead>
50                        <tr class="throw">
[6378]51                        <th>{'Username'|@translate}</th>
[6783]52            <th>{'Profile'|@translate}</th>
[6378]53                        <th>{'Email address'|@translate}</th>
[9177]54            <th>{'UAM_LastVisit_Date'|@translate}</th>
55            <th>{'UAM_Nb_Days'|@translate}</th>
[5593]56                        </tr>
57                        </thead>
[6378]58        <tbody>
[5593]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>
[6783]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>
[5593]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}
[6378]79        </tbody>
[5593]80      </table>
[6399]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>
[5593]96        <br>
97  </fieldset>
[9324]98                {else}
99                <div>
100                        {'UAM_No_Userlist'|@translate}
101                </div>
102                {/if}
[5593]103</form>
Note: See TracBrowser for help on using the repository browser.