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

Revision 26956, 5.2 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<script type="text/javascript">
11jQuery().ready(function()
12{ldelim}
13  jQuery('.cluetip').cluetip(
14  {ldelim}
15    width: 600,
16    splitTitle: '|'
17  {rdelim});
18{rdelim});
19
20$(document).ready(function()
21    {ldelim}
22      $("#sorting")
23      .tablesorter({ldelim}widgets: ["zebra"],widgetOptions :{ldelim}zebra : [ "normal-row", "alt-row" ]{rdelim},sortList:[[4,1]], headers: {ldelim} 0: {ldelim} sorter: false {rdelim},2: {ldelim} sorter: false {rdelim}{rdelim}{rdelim})
24      .tablesorterPager({ldelim}container: $("#pager"), page: 0, size: 20, output: '{ldelim}page{rdelim} / {ldelim}totalPages{rdelim}',{rdelim});
25    {rdelim});
26</script>
27
28<div class="titrePage">
29  <h2>{'UAM_Title_Tab'|@translate} {$UAM_VERSION}<br/>{'UAM_SubTitle4'|@translate}</h2>
30</div>
31
32<form method="post" class="general">
33  <fieldset>
34        <legend>{'UAM_GT_Init'|@translate}</legend>
35    <ul>
36                  <li>
37        <label>{'UAM_GhostTracker_Init'|@translate}</label><br/><br/>
38      </li>
39    </ul>
40    <p><input class="submit" type="submit" value="{'UAM_GT_Reset'|@translate}" name="GhostTracker_Init"/></p>
41  </fieldset>
42 
43    {if count($users) > 0}
44  <fieldset>
45    <legend class="cluetip" title="{'UAM_GhostTracker_Title'|translate}|{'UAM_gtTitle_d'|translate}">{'UAM_GhostTracker_Title'|@translate}</legend>
46      <table id="sorting" class="table2">
47        <thead>
48          <tr class="throw">
49            <th>&nbsp;</th>
50            <th>{'Username'|@translate}</th>
51            <th>{'Profile'|@translate}</th>
52            <th>{'Email address'|@translate}</th>
53            <th>{'UAM_LastVisit_Date'|@translate}</th>
54            <th>{'UAM_Reminder'|@translate}</th>
55          </tr>
56        </thead>
57        <tbody>
58          {foreach from=$users item=user name=users_loop}
59            <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
60              <td><input type="checkbox" name="selection[]" value="{$user.ID}" {$user.CHECKED} id="selection-{$user.ID}"/></td>
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" alt=""/></a></td>
63              <td>{$user.EMAIL}</td>
64            {if $user.REMINDER == l10n('UAM_Reminder_Sent_NOK')}
65              <td style="color:orange;text-align:center;">{$user.LASTVISIT}</td>
66              <td style="color:orange;text-align:center;">{$user.REMINDER}</td>
67            {else $user.REMINDER == l10n('UAM_Reminder_Sent_OK')}
68              <td style="color:red;text-align:center;">{$user.LASTVISIT}</td>
69              <td style="color:red;text-align:center;">{$user.REMINDER}</td>
70            {/if}
71              {foreach from=$user.plugin_columns item=data}
72                <td>{$data}</td>
73              {/foreach}                       
74            </tr>
75          {/foreach}
76        </tbody>
77      </table>
78      <div id="pager" class="pager">
79        <img src="{$UAM_PATH}admin/template/icon/first.png" class="first" alt=""/>
80        <img src="{$UAM_PATH}admin/template/icon/prev.png" class="prev" alt=""/>
81        <input type="text" class="pagedisplay"/>
82        <img src="{$UAM_PATH}admin/template/icon/next.png" class="next" alt=""/>
83        <img src="{$UAM_PATH}admin/template/icon/last.png" class="last" alt=""/>
84        <select class="pagesize" title="{'UAM_Select page size'|@translate}">
85          <option  value="10">10</option>
86          <option selected="selected" value="20">20</option>
87          <option value="30">30</option>
88          <option value="40">40</option>
89        </select>
90        <select class="gotoPage" title="{'UAM_Select page number'|@translate}"></select>
91      </div>
92      <br/>
93      <fieldset>
94      <p>
95        {'target'|@translate}
96        <label><input type="radio" name="target" value="all"/> {'all'|@translate}</label>
97        <label><input type="radio" name="target" value="selection" checked="checked"/> {'selection'|@translate}</label>
98      </p>
99
100      <p>
101        <input class="submit" type="submit" value="{'UAM_Delete_selected'|@translate}" name="Del_Selected"/>
102        <input class="submit" type="submit" value="{'UAM_Reminder'|@translate}" name="Reminder_Email"/>
103      </p>
104      </fieldset>
105  </fieldset>
106    {else}
107  <fieldset>
108    <legend class="cluetip" title="{'UAM_GhostTracker_Title'|translate}|{'UAM_gtTitle_d'|translate}">{'UAM_GhostTracker_Title'|@translate}</legend>
109                  <div>
110                         {'UAM_No_Ghosts'|@translate}
111                  </div>
112  </fieldset>
113                {/if}
114</form>
Note: See TracBrowser for help on using the repository browser.