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