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

Revision 10198, 11.2 KB checked in by mistic100, 9 years ago (diff)

bug:2224 one parameter for change thumnails number (needs some translations)

  • 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}"></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">
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  </table>
124</fieldset>
125
126{* form to set properties for many users at once *}
127<fieldset>
128  <legend>{'Groups'|@translate}</legend>
129
130<table>
131
132  <tr>
133    <td>{'associate to group'|@translate}</td>
134    <td>
135      {html_options name=associate options=$association_options selected=$associate_selected}
136    </td>
137  </tr>
138
139  <tr>
140    <td>{'dissociate from group'|@translate}</td>
141    <td>
142      {html_options name=dissociate options=$association_options selected=$dissociate_selected}
143    </td>
144  </tr>
145
146</table>
147
148</fieldset>
149
150{* Properties *}
151<fieldset>
152  <legend>{'Properties'|@translate}</legend>
153
154  <table>
155
156    <tr>
157      <td>{'High definition enabled'|@translate}</td>
158      <td>
159        <label><input type="radio" name="enabled_high" value="leave" checked="checked"> {'leave'|@translate}</label>
160        / {'set to'|@translate}
161        <label><input type="radio" name="enabled_high" value="true">{'Yes'|@translate}</label>
162        <label><input type="radio" name="enabled_high" value="false">{'No'|@translate}</label>
163      </td>
164    </tr>
165
166    <tr>
167      <td>{'Privacy level'|@translate}</td>
168      <td>
169        <label><input type="radio" name="level_action" value="leave" checked="checked">{'leave'|@translate}</label>
170        <label><input type="radio" name="level_action" value="set" id="level_action_set">{'set to'|@translate}</label>
171        <select onchange="document.getElementById('level_action_set').checked = true;" name="level" size="1">
172          {html_options options=$level_options selected=$level_selected}
173        </select>
174      </td>
175    </tr>
176  </table>
177
178</fieldset>
179
180{* preference *}
181<fieldset>
182  <legend>{'Preferences'|@translate}</legend>
183
184<table>
185  <tr>
186    <td>{'Number of photos per page'|@translate}</td>
187    <td>
188      <label><input type="radio" name="nb_image_page_action" value="leave" checked="checked"> {'leave'|@translate}</label>
189      <label><input type="radio" name="nb_image_page_action" value="set" id="nb_image_page_action_set"> {'set to'|@translate}</label>
190      <input onmousedown="document.getElementById('nb_image_page_action_set').checked = true;"
191             size="3" maxlength="2" type="text" name="nb_image_page" value="{$NB_IMAGE_PAGE}">
192    </td>
193  </tr>
194
195  <tr>
196    <td>{'Interface theme'|@translate}</td>
197    <td>
198      <label><input type="radio" name="theme_action" value="leave" checked="checked"> {'leave'|@translate}</label>
199      <label><input type="radio" name="theme_action" value="set" id="theme_action_set"> {'set to'|@translate}</label>
200      <select onchange="document.getElementById('theme_action_set').checked = true;" name="theme" size="1">
201        {html_options options=$theme_options selected=$theme_selected}
202      </select>
203    </td>
204  </tr>
205
206  <tr>
207    <td>{'Language'|@translate}</td>
208    <td>
209      <label><input type="radio" name="language_action" value="leave" checked="checked"> {'leave'|@translate}</label>
210      <label><input type="radio" name="language_action" value="set" id="language_action_set"> {'set to'|@translate}</label>
211      <select onchange="document.getElementById('language_action_set').checked = true;" name="language" size="1">
212        {html_options options=$language_options selected=$language_selected}
213      </select>
214    </td>
215  </tr>
216
217  <tr>
218    <td>{'Recent period'|@translate}</td>
219    <td>
220      <label><input type="radio" name="recent_period_action" value="leave" checked="checked"> {'leave'|@translate}</label>
221      <label><input type="radio" name="recent_period_action" value="set" id="recent_period_action_set"> {'set to'|@translate}</label>
222      <input onmousedown="document.getElementById('recent_period_action_set').checked = true;"
223             type="text" size="3" maxlength="2" name="recent_period" value="{$RECENT_PERIOD}">
224    </td>
225  </tr>
226
227  <tr>
228    <td>{'Expand all albums'|@translate}</td>
229    <td>
230      <label><input type="radio" name="expand" value="leave" checked="checked"> {'leave'|@translate}</label>
231      / {'set to'|@translate}
232      <label><input type="radio" name="expand" value="true">{'Yes'|@translate}</label>
233      <label><input type="radio" name="expand" value="false">{'No'|@translate}</label>
234    </td>
235  </tr>
236
237  <tr>
238    <td>{'Show number of comments'|@translate}</td>
239    <td>
240      <label><input type="radio" name="show_nb_comments" value="leave" checked="checked"> {'leave'|@translate}</label>
241      / {'set to'|@translate}
242      <label><input type="radio" name="show_nb_comments" value="true">{'Yes'|@translate}</label>
243      <label><input type="radio" name="show_nb_comments" value="false">{'No'|@translate}</label>
244    </td>
245  </tr>
246
247  <tr>
248    <td>{'Show number of hits'|@translate}</td>
249    <td>
250      <label><input type="radio" name="show_nb_hits" value="leave" checked="checked"> {'leave'|@translate}</label>
251      / {'set to'|@translate}
252      <label><input type="radio" name="show_nb_hits" value="true">{'Yes'|@translate}</label>
253      <label><input type="radio" name="show_nb_hits" value="false">{'No'|@translate}</label>
254    </td>
255  </tr>
256
257  <tr>
258    <td>{'Maximum photo width'|@translate}</td>
259    <td>
260      <label><input type="radio" name="maxwidth_action" value="leave" checked="checked"> {'leave'|@translate}</label>
261      <label><input type="radio" name="maxwidth_action" value="unset"> {'unset'|@translate}</label>
262      <label><input type="radio" name="maxwidth_action" value="set" id="maxwidth_action_set"> {'set to'|@translate}</label>
263      <input onmousedown="document.getElementById('maxwidth_action_set').checked = true;"
264             type="text" size="4" maxlength="4" name="maxwidth" value="{$MAXWIDTH}">
265    </td>
266  </tr>
267
268
269  <tr>
270    <td>{'Maximum photo height'|@translate}</td>
271    <td>
272      <label><input type="radio" name="maxheight_action" value="leave" checked="checked"> {'leave'|@translate}</label>
273      <label><input type="radio" name="maxheight_action" value="unset"> {'unset'|@translate}</label>
274      <label><input type="radio" name="maxheight_action" value="set" id="maxheight_action_set"> {'set to'|@translate}</label>
275      <input onmousedown="document.getElementById('maxheight_action_set').checked = true;"
276             type="text" size="4" maxlength="4" name="maxheight" value="{$MAXHEIGHT}">
277    </td>
278  </tr>
279
280
281</table>
282
283</fieldset>
284
285<p>
286  {'target'|@translate}
287  <label><input type="radio" name="target" value="all"> {'all'|@translate}</label>
288  <label><input type="radio" name="target" value="selection" checked="checked"> {'selection'|@translate}</label>
289</p>
290
291<p>
292  <input class="submit" type="submit" value="{'Submit'|@translate}" name="pref_submit">
293  <input class="submit" type="reset" value="{'Reset'|@translate}" name="pref_reset">
294</p>
295
296</form>
297
298<script type="text/javascript">// <![CDATA[{literal}
299jQuery("form:last").submit( function() {
300        if ( jQuery("input[name=target][value=selection]:checked", this).length > 0 )
301        if ( jQuery("input[name='selection[]']:checked", this).length == 0)
302        {
303                alert( {/literal}"{'Select at least one user'|@translate|escape:javascript}"{literal} );
304                return false;
305        }
306        return true;
307}
308);{/literal}
309// ]]>
310</script>
311 
Note: See TracBrowser for help on using the repository browser.