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