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>{'Send connection settings by email'|@translate} <input type="checkbox" name="send_password_by_mail" value="1" checked="checked"></label> |
---|
17 | <label> <input class="submit" type="submit" name="submit_add" value="{'Submit'|@translate}"></label> |
---|
18 | </fieldset> |
---|
19 | </form> |
---|
20 | |
---|
21 | <form class="filter" method="get" name="filter" action="{$F_FILTER_ACTION}"> |
---|
22 | <fieldset> |
---|
23 | <legend>{'Filter'|@translate}</legend> |
---|
24 | <input type="hidden" name="page" value="user_list"> |
---|
25 | |
---|
26 | <label>{'Username'|@translate} <input type="text" name="username" value="{$F_USERNAME}"></label> |
---|
27 | |
---|
28 | <label> |
---|
29 | {'status'|@translate} |
---|
30 | {html_options name=status options=$status_options selected=$status_selected} |
---|
31 | </label> |
---|
32 | |
---|
33 | <label> |
---|
34 | {'Group'|@translate} |
---|
35 | {html_options name=group options=$group_options selected=$group_selected} |
---|
36 | </label> |
---|
37 | |
---|
38 | <label> |
---|
39 | {'Sort by'|@translate} |
---|
40 | {html_options name=order_by options=$order_options selected=$order_selected} |
---|
41 | </label> |
---|
42 | |
---|
43 | <label> |
---|
44 | {'Sort order'|@translate} |
---|
45 | {html_options name=direction options=$direction_options selected=$direction_selected} |
---|
46 | </label> |
---|
47 | |
---|
48 | <label> |
---|
49 | |
---|
50 | <input class="submit" type="submit" value="{'Submit'|@translate}"> |
---|
51 | </label> |
---|
52 | |
---|
53 | </fieldset> |
---|
54 | |
---|
55 | </form> |
---|
56 | |
---|
57 | <form method="post" name="preferences" action=""> |
---|
58 | |
---|
59 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
60 | |
---|
61 | <table class="table2" width="97%"> |
---|
62 | <thead> |
---|
63 | <tr class="throw"> |
---|
64 | <td> </td> |
---|
65 | <td>{'Username'|@translate}</td> |
---|
66 | <td>{'User status'|@translate}</td> |
---|
67 | <td>{'Email address'|@translate}</td> |
---|
68 | <td>{'Groups'|@translate}</td> |
---|
69 | <td>{'Properties'|@translate}</td> |
---|
70 | {if not empty($plugin_user_list_column_titles)} |
---|
71 | {foreach from=$plugin_user_list_column_titles item=title} |
---|
72 | <td>{$title}</td> |
---|
73 | {/foreach} |
---|
74 | {/if} |
---|
75 | <td>{'Actions'|@translate}</td> |
---|
76 | </tr> |
---|
77 | </thead> |
---|
78 | |
---|
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>{$user.STATUS}</td> |
---|
84 | <td>{$user.EMAIL}</td> |
---|
85 | <td>{$user.GROUPS}</td> |
---|
86 | <td>{$user.PROPERTIES}</td> |
---|
87 | {foreach from=$user.plugin_columns item=data} |
---|
88 | <td>{$data}</td> |
---|
89 | {/foreach} |
---|
90 | <td style="text-align:center;"> |
---|
91 | <a href="{$user.U_PERM}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/permissions.png" style="border:none" alt="{'Permissions'|@translate}" title="{'Permissions'|@translate}"></a> |
---|
92 | <a href="{$user.U_PROFILE}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png" style="border:none" alt="{'Profile'|@translate}" title="{'Profile'|@translate}"></a> |
---|
93 | {foreach from=$user.plugin_actions item=data} |
---|
94 | {$data} |
---|
95 | {/foreach} |
---|
96 | </td> |
---|
97 | </tr> |
---|
98 | {/foreach} |
---|
99 | </table> |
---|
100 | |
---|
101 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
102 | |
---|
103 | {* delete the selected users ? *} |
---|
104 | <fieldset> |
---|
105 | <legend>{'Deletions'|@translate}</legend> |
---|
106 | <label><input type="checkbox" name="confirm_deletion" value="1"> {'confirm'|@translate}</label> |
---|
107 | <input class="submit" type="submit" value="{'Delete selected users'|@translate}" name="delete"> |
---|
108 | </fieldset> |
---|
109 | |
---|
110 | <fieldset> |
---|
111 | <legend>{'Status'|@translate}</legend> |
---|
112 | |
---|
113 | <table> |
---|
114 | <tr> |
---|
115 | <td>{'Status'|@translate}</td> |
---|
116 | <td> |
---|
117 | <label><input type="radio" name="status_action" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
118 | <label><input type="radio" name="status_action" value="set" id="status_action_set"> {'set to'|@translate}</label> |
---|
119 | <select onchange="document.getElementById('status_action_set').checked = true;" name="status" size="1"> |
---|
120 | {html_options options=$pref_status_options selected=$pref_status_selected} |
---|
121 | </select> |
---|
122 | </td> |
---|
123 | </tr> |
---|
124 | </table> |
---|
125 | </fieldset> |
---|
126 | |
---|
127 | {* form to set properties for many users at once *} |
---|
128 | <fieldset> |
---|
129 | <legend>{'Groups'|@translate}</legend> |
---|
130 | |
---|
131 | <table> |
---|
132 | |
---|
133 | <tr> |
---|
134 | <td>{'associate to group'|@translate}</td> |
---|
135 | <td> |
---|
136 | {html_options name=associate options=$association_options selected=$associate_selected} |
---|
137 | </td> |
---|
138 | </tr> |
---|
139 | |
---|
140 | <tr> |
---|
141 | <td>{'dissociate from group'|@translate}</td> |
---|
142 | <td> |
---|
143 | {html_options name=dissociate options=$association_options selected=$dissociate_selected} |
---|
144 | </td> |
---|
145 | </tr> |
---|
146 | |
---|
147 | </table> |
---|
148 | |
---|
149 | </fieldset> |
---|
150 | |
---|
151 | {* Properties *} |
---|
152 | <fieldset> |
---|
153 | <legend>{'Properties'|@translate}</legend> |
---|
154 | |
---|
155 | <table> |
---|
156 | |
---|
157 | <tr> |
---|
158 | <td>{'High definition enabled'|@translate}</td> |
---|
159 | <td> |
---|
160 | <label><input type="radio" name="enabled_high" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
161 | / {'set to'|@translate} |
---|
162 | <label><input type="radio" name="enabled_high" value="true">{'Yes'|@translate}</label> |
---|
163 | <label><input type="radio" name="enabled_high" value="false">{'No'|@translate}</label> |
---|
164 | </td> |
---|
165 | </tr> |
---|
166 | |
---|
167 | <tr> |
---|
168 | <td>{'Privacy level'|@translate}</td> |
---|
169 | <td> |
---|
170 | <label><input type="radio" name="level_action" value="leave" checked="checked">{'leave'|@translate}</label> |
---|
171 | <label><input type="radio" name="level_action" value="set" id="level_action_set">{'set to'|@translate}</label> |
---|
172 | <select onchange="document.getElementById('level_action_set').checked = true;" name="level" size="1"> |
---|
173 | {html_options options=$level_options selected=$level_selected} |
---|
174 | </select> |
---|
175 | </td> |
---|
176 | </tr> |
---|
177 | </table> |
---|
178 | |
---|
179 | </fieldset> |
---|
180 | |
---|
181 | {* preference *} |
---|
182 | <fieldset> |
---|
183 | <legend>{'Preferences'|@translate}</legend> |
---|
184 | |
---|
185 | <table> |
---|
186 | <tr> |
---|
187 | <td>{'Number of photos per page'|@translate}</td> |
---|
188 | <td> |
---|
189 | <label><input type="radio" name="nb_image_page_action" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
190 | <label><input type="radio" name="nb_image_page_action" value="set" id="nb_image_page_action_set"> {'set to'|@translate}</label> |
---|
191 | <input onmousedown="document.getElementById('nb_image_page_action_set').checked = true;" |
---|
192 | size="4" maxlength="3" type="text" name="nb_image_page" value="{$NB_IMAGE_PAGE}"> |
---|
193 | </td> |
---|
194 | </tr> |
---|
195 | |
---|
196 | <tr> |
---|
197 | <td>{'Interface theme'|@translate}</td> |
---|
198 | <td> |
---|
199 | <label><input type="radio" name="theme_action" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
200 | <label><input type="radio" name="theme_action" value="set" id="theme_action_set"> {'set to'|@translate}</label> |
---|
201 | <select onchange="document.getElementById('theme_action_set').checked = true;" name="theme" size="1"> |
---|
202 | {html_options options=$theme_options selected=$theme_selected} |
---|
203 | </select> |
---|
204 | </td> |
---|
205 | </tr> |
---|
206 | |
---|
207 | <tr> |
---|
208 | <td>{'Language'|@translate}</td> |
---|
209 | <td> |
---|
210 | <label><input type="radio" name="language_action" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
211 | <label><input type="radio" name="language_action" value="set" id="language_action_set"> {'set to'|@translate}</label> |
---|
212 | <select onchange="document.getElementById('language_action_set').checked = true;" name="language" size="1"> |
---|
213 | {html_options options=$language_options selected=$language_selected} |
---|
214 | </select> |
---|
215 | </td> |
---|
216 | </tr> |
---|
217 | |
---|
218 | <tr> |
---|
219 | <td>{'Recent period'|@translate}</td> |
---|
220 | <td> |
---|
221 | <label><input type="radio" name="recent_period_action" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
222 | <label><input type="radio" name="recent_period_action" value="set" id="recent_period_action_set"> {'set to'|@translate}</label> |
---|
223 | <input onmousedown="document.getElementById('recent_period_action_set').checked = true;" |
---|
224 | type="text" size="3" maxlength="2" name="recent_period" value="{$RECENT_PERIOD}"> |
---|
225 | </td> |
---|
226 | </tr> |
---|
227 | |
---|
228 | <tr> |
---|
229 | <td>{'Expand all albums'|@translate}</td> |
---|
230 | <td> |
---|
231 | <label><input type="radio" name="expand" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
232 | / {'set to'|@translate} |
---|
233 | <label><input type="radio" name="expand" value="true">{'Yes'|@translate}</label> |
---|
234 | <label><input type="radio" name="expand" value="false">{'No'|@translate}</label> |
---|
235 | </td> |
---|
236 | </tr> |
---|
237 | |
---|
238 | {if $ACTIVATE_COMMENTS} |
---|
239 | <tr> |
---|
240 | <td>{'Show number of comments'|@translate}</td> |
---|
241 | <td> |
---|
242 | <label><input type="radio" name="show_nb_comments" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
243 | / {'set to'|@translate} |
---|
244 | <label><input type="radio" name="show_nb_comments" value="true">{'Yes'|@translate}</label> |
---|
245 | <label><input type="radio" name="show_nb_comments" value="false">{'No'|@translate}</label> |
---|
246 | </td> |
---|
247 | </tr> |
---|
248 | {/if} |
---|
249 | |
---|
250 | <tr> |
---|
251 | <td>{'Show number of hits'|@translate}</td> |
---|
252 | <td> |
---|
253 | <label><input type="radio" name="show_nb_hits" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
254 | / {'set to'|@translate} |
---|
255 | <label><input type="radio" name="show_nb_hits" value="true">{'Yes'|@translate}</label> |
---|
256 | <label><input type="radio" name="show_nb_hits" value="false">{'No'|@translate}</label> |
---|
257 | </td> |
---|
258 | </tr> |
---|
259 | |
---|
260 | </table> |
---|
261 | |
---|
262 | </fieldset> |
---|
263 | |
---|
264 | <p> |
---|
265 | {'target'|@translate} |
---|
266 | <label><input type="radio" name="target" value="all"> {'all'|@translate}</label> |
---|
267 | <label><input type="radio" name="target" value="selection" checked="checked"> {'selection'|@translate}</label> |
---|
268 | </p> |
---|
269 | |
---|
270 | <p> |
---|
271 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="pref_submit"> |
---|
272 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="pref_reset"> |
---|
273 | </p> |
---|
274 | |
---|
275 | </form> |
---|
276 | |
---|
277 | <script type="text/javascript">// <![CDATA[{literal} |
---|
278 | jQuery("form:last").submit( function() { |
---|
279 | if ( jQuery("input[name=target][value=selection]:checked", this).length > 0 ) |
---|
280 | if ( jQuery("input[name='selection[]']:checked", this).length == 0) |
---|
281 | { |
---|
282 | alert( {/literal}"{'Select at least one user'|@translate|escape:javascript}"{literal} ); |
---|
283 | return false; |
---|
284 | } |
---|
285 | return true; |
---|
286 | } |
---|
287 | );{/literal} |
---|
288 | // ]]> |
---|
289 | </script> |
---|
290 | |
---|