source: trunk/admin/themes/default/template/user_list.tpl @ 6323

Revision 6281, 12.2 KB checked in by Gotcha, 9 years ago (diff)

merge r6280 from branch 2.1 to trunk

  • Property svn:eol-style set to LF
Line 
1<div class="titrePage">
2  <h2>{'User list'|@translate}</h2>
3</div>
4
5<form class="filter" method="post" name="add_user" action="{$F_ADD_ACTION}">
6  <fieldset>
7    <legend>{'Add a user'|@translate}</legend>
8    <label>{'Username'|@translate} <input type="text" name="login" maxlength="50" size="20"></label>
9    {if $Double_Password}
10                <label>{'Password'|@translate} <input type="password" name="password"></label>
11                <label>{'Confirm Password'|@translate} <input type="password" name="password_conf" id="password_conf"></label>
12                {else}
13                <label>{'Password'|@translate} <input type="text" name="password"></label>
14                {/if}
15                <label>{'Email address'|@translate} <input type="text" name="email"></label>
16    <label>&nbsp; <input class="submit" type="submit" name="submit_add" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}></label>
17  </fieldset>
18</form>
19
20<form class="filter" method="get" name="filter" action="{$F_FILTER_ACTION}">
21<fieldset>
22  <legend>{'Filter'|@translate}</legend>
23  <input type="hidden" name="page" value="user_list">
24
25  <label>{'Username'|@translate} <input type="text" name="username" value="{$F_USERNAME}"></label>
26
27  <label>
28  {'status'|@translate}
29  {html_options name=status options=$status_options selected=$status_selected}
30  </label>
31
32  <label>
33  {'Group'|@translate}
34  {html_options name=group options=$group_options selected=$group_selected}
35  </label>
36
37  <label>
38  {'Sort by'|@translate}
39  {html_options name=order_by options=$order_options selected=$order_selected}
40  </label>
41
42  <label>
43  {'Sort order'|@translate}
44  {html_options name=direction options=$direction_options selected=$direction_selected}
45  </label>
46
47  <label>
48  &nbsp;
49  <input class="submit" type="submit" value="{'Submit'|@translate}">
50  </label>
51
52</fieldset>
53
54</form>
55
56<form method="post" name="preferences" action="">
57
58{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
59
60<table class="table2" width="97%">
61  <thead>
62    <tr class="throw">
63      <td>&nbsp;</td>
64      <td>{'Username'|@translate}</td>
65      <td>{'User status'|@translate}</td>
66      <td>{'Email address'|@translate}</td>
67      <td>{'Groups'|@translate}</td>
68      <td>{'Properties'|@translate}</td>
69      {if not empty($plugin_user_list_column_titles)}
70      {foreach from=$plugin_user_list_column_titles item=title}
71      <td>{$title}</td>
72      {/foreach}
73      {/if}
74      <td>{'Actions'|@translate}</td>
75    </tr>
76  </thead>
77
78  {foreach from=$users item=user name=users_loop}
79  <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
80    <td><input type="checkbox" name="selection[]" value="{$user.ID}" {$user.CHECKED} id="selection-{$user.ID}"></td>
81    <td><label for="selection-{$user.ID}">{$user.USERNAME}</label></td>
82    <td>{$user.STATUS}</td>
83    <td>{$user.EMAIL}</td>
84    <td>{$user.GROUPS}</td>
85    <td>{$user.PROPERTIES}</td>
86    {foreach from=$user.plugin_columns item=data}
87    <td>{$data}</td>
88    {/foreach}
89    <td style="text-align:center;">
90      <a href="{$user.U_PERM}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/permissions.png" class="button" style="border:none" alt="{'Permissions'|@translate}" title="{'Permissions'|@translate}"></a>
91      <a href="{$user.U_PROFILE}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png" class="button" style="border:none" alt="{'Profile'|@translate}" title="{'Profile'|@translate}"></a>
92      {foreach from=$user.plugin_actions item=data}
93      {$data}
94      {/foreach}
95      </td>
96  </tr>
97  {/foreach}
98</table>
99
100{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
101
102{* delete the selected users ? *}
103<fieldset>
104  <legend>{'Deletions'|@translate}</legend>
105  <label><input type="checkbox" name="confirm_deletion" value="1"> {'confirm'|@translate}</label>
106  <input class="submit" type="submit" value="{'Delete selected users'|@translate}" name="delete" {$TAG_INPUT_ENABLED}>
107</fieldset>
108
109<fieldset>
110  <legend>{'Status'|@translate}</legend>
111
112  <table>
113    <tr>
114      <td>{'Status'|@translate}</td>
115      <td>
116        <label><input type="radio" name="status_action" value="leave" checked="checked"> {'leave'|@translate}</label>
117        <label><input type="radio" name="status_action" value="set" id="status_action_set"> {'set to'|@translate}</label>
118        <select onchange="document.getElementById('status_action_set').checked = true;" name="status" size="1">
119          {html_options options=$pref_status_options selected=$pref_status_selected}
120        </select>
121      </td>
122    </tr>
123
124    {if isset($adviser)}
125    <tr>
126      <td>{'Adviser'|@translate}</td>
127      <td>
128        <label><input type="radio" name="adviser" value="leave" checked="checked"> {'leave'|@translate}</label>
129        / {'set to'|@translate}
130        <label><input type="radio" name="adviser" value="true">{'Yes'|@translate}</label>
131        <label><input type="radio" name="adviser" value="false">{'No'|@translate}</label>
132      </td>
133    </tr>
134    {/if}
135
136  </table>
137</fieldset>
138
139{* form to set properties for many users at once *}
140<fieldset>
141  <legend>{'Groups'|@translate}</legend>
142
143<table>
144
145  <tr>
146    <td>{'associate to group'|@translate}</td>
147    <td>
148      {html_options name=associate options=$association_options selected=$associate_selected}
149    </td>
150  </tr>
151
152  <tr>
153    <td>{'dissociate from group'|@translate}</td>
154    <td>
155      {html_options name=dissociate options=$association_options selected=$dissociate_selected}
156    </td>
157  </tr>
158
159</table>
160
161</fieldset>
162
163{* Properties *}
164<fieldset>
165  <legend>{'Properties'|@translate}</legend>
166
167  <table>
168
169    <tr>
170      <td>{'High definition enabled'|@translate}</td>
171      <td>
172        <label><input type="radio" name="enabled_high" value="leave" checked="checked"> {'leave'|@translate}</label>
173        / {'set to'|@translate}
174        <label><input type="radio" name="enabled_high" value="true">{'Yes'|@translate}</label>
175        <label><input type="radio" name="enabled_high" value="false">{'No'|@translate}</label>
176      </td>
177    </tr>
178
179    <tr>
180      <td>{'Privacy level'|@translate}</td>
181      <td>
182        <label><input type="radio" name="level_action" value="leave" checked="checked">{'leave'|@translate}</label>
183        <label><input type="radio" name="level_action" value="set" id="level_action_set">{'set to'|@translate}</label>
184        <select onchange="document.getElementById('level_action_set').checked = true;" name="level" size="1">
185          {html_options options=$level_options selected=$level_selected}
186        </select>
187      </td>
188    </tr>
189  </table>
190
191</fieldset>
192
193{* preference *}
194<fieldset>
195  <legend>{'Preferences'|@translate}</legend>
196
197<table>
198  <tr>
199    <td>{'Number of images per row'|@translate}</td>
200    <td>
201      <label><input type="radio" name="nb_image_line_action" value="leave" checked="checked"> {'leave'|@translate}</label>
202      <label><input type="radio" name="nb_image_line_action" value="set" id="nb_image_line_action_set"> {'set to'|@translate}</label>
203      <input onmousedown="document.getElementById('nb_image_line_action_set').checked = true;"
204             size="3" maxlength="2" type="text" name="nb_image_line" value="{$NB_IMAGE_LINE}">
205    </td>
206  </tr>
207
208  <tr>
209    <td>{'Number of rows per page'|@translate}</td>
210    <td>
211      <label><input type="radio" name="nb_line_page_action" value="leave" checked="checked"> {'leave'|@translate}</label>
212      <label><input type="radio" name="nb_line_page_action" value="set" id="nb_line_page_action_set"> {'set to'|@translate}</label>
213      <input onmousedown="document.getElementById('nb_line_page_action_set').checked = true;"
214             size="3" maxlength="2" type="text" name="nb_line_page" value="{$NB_LINE_PAGE}">
215    <td>
216  </tr>
217
218  <tr>
219    <td>{'Interface theme'|@translate}</td>
220    <td>
221      <label><input type="radio" name="theme_action" value="leave" checked="checked"> {'leave'|@translate}</label>
222      <label><input type="radio" name="theme_action" value="set" id="theme_action_set"> {'set to'|@translate}</label>
223      <select onchange="document.getElementById('theme_action_set').checked = true;" name="theme" size="1">
224        {html_options options=$theme_options selected=$theme_selected}
225      </select>
226    </td>
227  </tr>
228
229  <tr>
230    <td>{'Language'|@translate}</td>
231    <td>
232      <label><input type="radio" name="language_action" value="leave" checked="checked"> {'leave'|@translate}</label>
233      <label><input type="radio" name="language_action" value="set" id="language_action_set"> {'set to'|@translate}</label>
234      <select onchange="document.getElementById('language_action_set').checked = true;" name="language" size="1">
235        {html_options options=$language_options selected=$language_selected}
236      </select>
237    </td>
238  </tr>
239
240  <tr>
241    <td>{'Recent period'|@translate}</td>
242    <td>
243      <label><input type="radio" name="recent_period_action" value="leave" checked="checked"> {'leave'|@translate}</label>
244      <label><input type="radio" name="recent_period_action" value="set" id="recent_period_action_set"> {'set to'|@translate}</label>
245      <input onmousedown="document.getElementById('recent_period_action_set').checked = true;"
246             type="text" size="3" maxlength="2" name="recent_period" value="{$RECENT_PERIOD}">
247    </td>
248  </tr>
249
250  <tr>
251    <td>{'Expand all categories'|@translate}</td>
252    <td>
253      <label><input type="radio" name="expand" value="leave" checked="checked"> {'leave'|@translate}</label>
254      / {'set to'|@translate}
255      <label><input type="radio" name="expand" value="true">{'Yes'|@translate}</label>
256      <label><input type="radio" name="expand" value="false">{'No'|@translate}</label>
257    </td>
258  </tr>
259
260  <tr>
261    <td>{'Show number of comments'|@translate}</td>
262    <td>
263      <label><input type="radio" name="show_nb_comments" value="leave" checked="checked"> {'leave'|@translate}</label>
264      / {'set to'|@translate}
265      <label><input type="radio" name="show_nb_comments" value="true">{'Yes'|@translate}</label>
266      <label><input type="radio" name="show_nb_comments" value="false">{'No'|@translate}</label>
267    </td>
268  </tr>
269
270  <tr>
271    <td>{'Show number of hits'|@translate}</td>
272    <td>
273      <label><input type="radio" name="show_nb_hits" value="leave" checked="checked"> {'leave'|@translate}</label>
274      / {'set to'|@translate}
275      <label><input type="radio" name="show_nb_hits" value="true">{'Yes'|@translate}</label>
276      <label><input type="radio" name="show_nb_hits" value="false">{'No'|@translate}</label>
277    </td>
278  </tr>
279
280  <tr>
281    <td>{'Maximum width of the pictures'|@translate}</td>
282    <td>
283      <label><input type="radio" name="maxwidth_action" value="leave" checked="checked"> {'leave'|@translate}</label>
284      <label><input type="radio" name="maxwidth_action" value="unset"> {'unset'|@translate}</label>
285      <label><input type="radio" name="maxwidth_action" value="set" id="maxwidth_action_set"> {'set to'|@translate}</label>
286      <input onmousedown="document.getElementById('maxwidth_action_set').checked = true;"
287             type="text" size="4" maxlength="4" name="maxwidth" value="{$MAXWIDTH}">
288    </td>
289  </tr>
290
291
292  <tr>
293    <td>{'Maximum height of the pictures'|@translate}</td>
294    <td>
295      <label><input type="radio" name="maxheight_action" value="leave" checked="checked"> {'leave'|@translate}</label>
296      <label><input type="radio" name="maxheight_action" value="unset"> {'unset'|@translate}</label>
297      <label><input type="radio" name="maxheight_action" value="set" id="maxheight_action_set"> {'set to'|@translate}</label>
298      <input onmousedown="document.getElementById('maxheight_action_set').checked = true;"
299             type="text" size="4" maxlength="4" name="maxheight" value="{$MAXHEIGHT}">
300    </td>
301  </tr>
302
303
304</table>
305
306</fieldset>
307
308<p>
309  {'target'|@translate}
310  <label><input type="radio" name="target" value="all"> {'all'|@translate}</label>
311  <label><input type="radio" name="target" value="selection" checked="checked"> {'selection'|@translate}</label>
312</p>
313
314<p>
315  <input class="submit" type="submit" value="{'Submit'|@translate}" name="pref_submit" {$TAG_INPUT_ENABLED}>
316  <input class="submit" type="reset" value="{'Reset'|@translate}" name="pref_reset">
317</p>
318
319</form>
320
321<script type="text/javascript">// <![CDATA[{literal}
322jQuery("form:last").submit( function() {
323        if ( jQuery("input[name=target][value=selection]:checked", this).length > 0 )
324        if ( jQuery("input[name='selection[]']:checked", this).length == 0)
325        {
326                alert( {/literal}"{'Select at least one user'|@translate|escape:javascript}"{literal} );
327                return false;
328        }
329        return true;
330}
331);{/literal}
332// ]]>
333</script>
334 
Note: See TracBrowser for help on using the repository browser.