source: extensions/UserAdvManager/branches/2.6/admin/template/userlist.tpl @ 26956

Revision 26956, 4.5 KB checked in by Eric, 6 years ago (diff)

merge r26955 from trunk to branch 2.6 :
Next version is 2.6.0
Remove obsolete admin default theme
Customize tablesorter using zebra widget (colors according to admin theme in action) and tablesorter pager - step 2 and final

Add obsolete.list file

  • Property svn:eol-style set to LF
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.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.min.js'}
5
6{combine_css path= $UAM_PATH|@cat:'admin/template/uam.css'}
7{if $UAM_THEME=='clear'}{combine_css path= $UAM_PATH|@cat:'admin/template/themes/clear/theme.css'}{/if}
8{if $UAM_THEME=='roma'}{combine_css path= $UAM_PATH|@cat:'admin/template/themes/roma/theme.css'}{/if}
9
10
11<script type="text/javascript">
12jQuery().ready(function()
13{ldelim}
14  jQuery('.cluetip').cluetip(
15  {ldelim}
16    width: 600,
17    splitTitle: '|'
18  {rdelim});
19{rdelim});
20
21$(document).ready(function()
22    {ldelim}
23      $("#sorting")
24      .tablesorter(
25      {ldelim}
26          widgets: ["zebra"],
27          widgetOptions :
28          {ldelim}
29              zebra : [ "normal-row", "alt-row" ]
30          {rdelim},
31          sortList:[[3,0]],
32          // pass the headers argument and assing a object
33          headers:
34          {ldelim}
35              // assign the second column (we start counting zero)
36              1:
37              {ldelim}
38                  // disable it by setting the property sorter to false
39                  sorter: false
40              {rdelim},
41              // assign the fifth column (we start counting zero)
42              4:
43              {ldelim}
44                  // disable it by setting the property sorter to false
45                  sorter: false
46              {rdelim}
47          {rdelim}
48      {rdelim})
49      .tablesorterPager({ldelim}container: $("#pager"), page: 0, size: 20, output: '{ldelim}page{rdelim} / {ldelim}totalPages{rdelim}'{rdelim});
50    {rdelim}
51);
52</script>
53
54<div class="titrePage">
55  <h2>{'UAM_Title_Tab'|@translate} {$UAM_VERSION}<br/>{'UAM_Tracking registered users'|@translate}</h2>
56</div>
57
58<form method="post" class="general">
59  <fieldset>
60        <legend class="cluetip" title="{'UAM_Tracking registered users'|translate}|{'UAM_userlistTitle_d'|translate}">{'UAM_Tracking registered users'|@translate}</legend>
61    {if count($users) > 0}
62      <table id="sorting" class="table2">
63                        <thead>
64                        <tr class="throw">
65                        <th>{'Username'|@translate}</th>
66            <th>{'Profile'|@translate}</th>
67                        <th>{'Email address'|@translate}</th>
68            <th>{'UAM_LastVisit_Date'|@translate}</th>
69            <th>{'UAM_Nb_Days'|@translate}</th>
70                        </tr>
71                        </thead>
72        <tbody>
73        {foreach from=$users item=user name=users_loop}
74          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
75            <td><label>{$user.USERNAME}</label></td>
76            <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" alt=""/></a></td>
77            <td>{$user.EMAIL}</td>
78            <td style="text-align:center;">{$user.LASTVISIT}</td>
79{if $user.DISPLAY == 'green'}
80            <td style="color:lime;text-align:center;">{$user.DAYS}</td>
81{elseif $user.DISPLAY == 'orange'}
82            <td style="color:orange;text-align:center;">{$user.DAYS}</td>
83{elseif $user.DISPLAY == 'red'}
84            <td style="color:red;text-align:center;">{$user.DAYS}</td>
85{else}
86            <td style="text-align:center;">{$user.DAYS}</td>
87{/if}
88            {foreach from=$user.plugin_columns item=data}
89              <td>{$data}</td>
90            {/foreach}                         
91          </tr>
92        {/foreach}
93        </tbody>
94      </table>
95<div id="pager" class="pager">
96                <img src="{$UAM_PATH}admin/template/icon/first.png" class="first" alt=""/>
97                <img src="{$UAM_PATH}admin/template/icon/prev.png" class="prev" alt=""/>
98                <input type="text" class="pagedisplay"/>
99                <img src="{$UAM_PATH}admin/template/icon/next.png" class="next" alt=""/>
100                <img src="{$UAM_PATH}admin/template/icon/last.png" class="last" alt=""/>
101                <select class="pagesize" title="{'UAM_Select page size'|@translate}">
102                        <option  value="10">10</option>
103                        <option selected="selected" value="20">20</option>
104                        <option value="30">30</option>
105                        <option value="40">40</option>
106                </select>
107    <select class="gotoPage" title="{'UAM_Select page number'|@translate}"></select>
108</div>
109        <br/>
110  </fieldset>
111                {else}
112                <div>
113                        {'UAM_No_Userlist'|@translate}
114                </div>
115                {/if}
116</form>
Note: See TracBrowser for help on using the repository browser.