source: extensions/Password_Policy/admin/template/PP_userlist.tpl @ 27282

Last change on this file since 27282 was 27282, checked in by Eric, 10 years ago

Next version i 2.6.3:
Fix display of page-up and down button in management tab

File size: 5.4 KB
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=$PP_PATH|@cat:'admin/template/js/jquery.tablesorter.min.js'}
4{combine_script id='jquery.tablesorter.pager' require='jquery' path=$PP_PATH|@cat:'admin/template/js/jquery.tablesorter.pager.min.js'}
5
6{combine_css path= $PP_PATH|@cat:'admin/template/pp.css'}
7{if $PP_THEME=='clear'}{combine_css path= $PP_PATH|@cat:'admin/template/themes/clear/theme.css'}{/if}
8{if $PP_THEME=='roma'}{combine_css path= $PP_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:[[1,0]],
32          // pass the headers argument and assing a object
33          headers:
34          {ldelim}
35              // assign the second column (we start counting zero)
36              0:
37              {ldelim}
38                  // disable it by setting the property sorter to false
39                  sorter: false
40              {rdelim},
41              // assign the second column (we start counting zero)
42              2:
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>{'PP_Title'|@translate} {$PP_VERSION}<br/>{'PP_Pwd_Actions'|@translate}</h2>
56</div>
57
58<form method="post" class="general">
59  <fieldset>
60        <legend class="cluetip" title="{'PP_Pwd_Actions'|translate}|{'PP_Pwd_Actions_d'|translate}">{'PP_Pwd_Actions'|@translate}</legend>
61{if count($users) > 0}
62      <table id="sorting" class="table2">
63                  <thead>
64                        <tr class="throw">
65                        <th>&nbsp;</th>
66                        <th>{'Username'|@translate}&nbsp;&nbsp;</th>
67            <th>{'Profile'|@translate}&nbsp;&nbsp;</th>
68            <th>{'User status'|@translate}&nbsp;&nbsp;</th>
69                        <th>{'Email address'|@translate}&nbsp;&nbsp;</th>
70         {if $PWRESET == True}
71            <th>{'PP_PwdReset'|@translate}&nbsp;&nbsp;</th>
72         {/if}
73         {if $LOGFAILBLOCK == True}
74            <th>{'PP_LockedUsers'|@translate}&nbsp;&nbsp;</th>
75         {/if}
76                        </tr>
77                        </thead>
78        <tbody>
79        {foreach from=$users item=user name=users_loop}
80          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
81            <td><input type="checkbox" name="selection[]" value="{$user.ID}" {$user.CHECKED} id="selection-{$user.ID}"/></td>
82            <td><label for="selection-{$user.ID}">{$user.USERNAME}</label></td>
83            <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="{$PP_PATH}admin/template/icons/edit_s.png" alt=""/></a></td>
84            <td>{$user.STATUS}</td>
85            <td>{$user.EMAIL}</td>
86          {if $PWRESET == True}
87            <td style="text-align:center;">{$user.PWDRESET}</td>
88          {/if}
89          {if $LOGFAILBLOCK == True}
90            <td style="text-align:center;">{$user.PWD_LOCKED}</td>
91          {/if}
92          </tr>
93        {/foreach}
94      </tbody>
95      </table>
96
97  <div id="pager" class="pager">
98                <img src="{$PP_PATH}admin/template/icons/first.png" class="first" alt=""/>
99                <img src="{$PP_PATH}admin/template/icons/prev.png" class="prev" alt=""/>
100                <input type="text" class="pagedisplay"/>
101                <img src="{$PP_PATH}admin/template/icons/next.png" class="next" alt=""/>
102                <img src="{$PP_PATH}admin/template/icons/last.png" class="last" alt=""/>
103                <select class="pagesize" title="{'PP_Select page size'|@translate}">
104                        <option  value="10">10</option>
105                        <option selected="selected" value="20">20</option>
106                        <option value="30">30</option>
107                        <option value="40">40</option>
108                </select>
109    <select class="gotoPage" title="{'PP_Select page number'|@translate}"></select>
110  </div>
111  <br/>
112
113  <fieldset>
114    <legend>{'target'|@translate}</legend>
115      <label><input type="radio" name="target" value="all"/> {'all'|@translate}</label>
116      <label><input type="radio" name="target" value="selection" checked="checked"/> {'selection'|@translate}</label>
117  </fieldset>
118
119  {if $PWRESET == True}
120  <fieldset>
121    <legend>{'PP_PwdReset'|@translate}</legend>
122      <label>{'confirm'|@translate} : <input type="checkbox" name="confirm_pwdreset" value="1"/></label><br />
123      <input class="submit" type="submit" value="{'PP_Password reset selected users'|@translate}" name="pwdreset"/>
124  </fieldset>
125  {/if}
126  {if $LOGFAILBLOCK == True}
127  <fieldset>
128    <legend>{'PP_Unlock'|@translate}</legend>
129      <label>{'confirm'|@translate} : <input type="checkbox" name="confirm_unlock" value="1"/></label><br />
130      <input class="submit" type="submit" value="{'PP_Unlock selected users'|@translate}" name="unlock"/>
131  </fieldset>
132  {/if}
133  </fieldset>
134{else}
135        <div>
136    {'PP_No_Userlist'|@translate}
137        </div>
138{/if}
139</form>
Note: See TracBrowser for help on using the repository browser.