[2531] | 1 | <div class="titrePage"> |
---|
[5021] | 2 | <h2>{'User list'|@translate}</h2> |
---|
[2531] | 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> |
---|
[3752] | 8 | <label>{'Username'|@translate} <input type="text" name="login" maxlength="50" size="20"></label> |
---|
[3935] | 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> |
---|
[8128] | 16 | <label> <input class="submit" type="submit" name="submit_add" value="{'Submit'|@translate}"></label> |
---|
[2531] | 17 | </fieldset> |
---|
| 18 | </form> |
---|
| 19 | |
---|
| 20 | <form class="filter" method="get" name="filter" action="{$F_FILTER_ACTION}"> |
---|
| 21 | <fieldset> |
---|
| 22 | <legend>{'Filter'|@translate}</legend> |
---|
[3752] | 23 | <input type="hidden" name="page" value="user_list"> |
---|
[2531] | 24 | |
---|
[3752] | 25 | <label>{'Username'|@translate} <input type="text" name="username" value="{$F_USERNAME}"></label> |
---|
[2531] | 26 | |
---|
| 27 | <label> |
---|
| 28 | {'status'|@translate} |
---|
| 29 | {html_options name=status options=$status_options selected=$status_selected} |
---|
| 30 | </label> |
---|
| 31 | |
---|
| 32 | <label> |
---|
[6281] | 33 | {'Group'|@translate} |
---|
[2531] | 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 | |
---|
[2564] | 47 | <label> |
---|
| 48 | |
---|
[3752] | 49 | <input class="submit" type="submit" value="{'Submit'|@translate}"> |
---|
[2564] | 50 | </label> |
---|
[2531] | 51 | |
---|
| 52 | </fieldset> |
---|
| 53 | |
---|
| 54 | </form> |
---|
| 55 | |
---|
| 56 | <form method="post" name="preferences" action=""> |
---|
| 57 | |
---|
[4455] | 58 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
[4024] | 59 | |
---|
[2531] | 60 | <table class="table2" width="97%"> |
---|
| 61 | <thead> |
---|
| 62 | <tr class="throw"> |
---|
| 63 | <td> </td> |
---|
| 64 | <td>{'Username'|@translate}</td> |
---|
[5021] | 65 | <td>{'User status'|@translate}</td> |
---|
[2531] | 66 | <td>{'Email address'|@translate}</td> |
---|
| 67 | <td>{'Groups'|@translate}</td> |
---|
[5021] | 68 | <td>{'Properties'|@translate}</td> |
---|
[2531] | 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}"> |
---|
[3752] | 80 | <td><input type="checkbox" name="selection[]" value="{$user.ID}" {$user.CHECKED} id="selection-{$user.ID}"></td> |
---|
[2531] | 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;"> |
---|
[5036] | 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> |
---|
[3752] | 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> |
---|
[2531] | 92 | {foreach from=$user.plugin_actions item=data} |
---|
| 93 | {$data} |
---|
| 94 | {/foreach} |
---|
| 95 | </td> |
---|
| 96 | </tr> |
---|
| 97 | {/foreach} |
---|
| 98 | </table> |
---|
| 99 | |
---|
[4455] | 100 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
[2531] | 101 | |
---|
| 102 | {* delete the selected users ? *} |
---|
| 103 | <fieldset> |
---|
| 104 | <legend>{'Deletions'|@translate}</legend> |
---|
[3752] | 105 | <label><input type="checkbox" name="confirm_deletion" value="1"> {'confirm'|@translate}</label> |
---|
[8128] | 106 | <input class="submit" type="submit" value="{'Delete selected users'|@translate}" name="delete"> |
---|
[2531] | 107 | </fieldset> |
---|
| 108 | |
---|
| 109 | <fieldset> |
---|
| 110 | <legend>{'Status'|@translate}</legend> |
---|
| 111 | |
---|
| 112 | <table> |
---|
| 113 | <tr> |
---|
| 114 | <td>{'Status'|@translate}</td> |
---|
| 115 | <td> |
---|
[3752] | 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> |
---|
[2531] | 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> |
---|
[5021] | 152 | <legend>{'Properties'|@translate}</legend> |
---|
[2531] | 153 | |
---|
| 154 | <table> |
---|
| 155 | |
---|
| 156 | <tr> |
---|
[5021] | 157 | <td>{'High definition enabled'|@translate}</td> |
---|
[2531] | 158 | <td> |
---|
[3752] | 159 | <label><input type="radio" name="enabled_high" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
[2531] | 160 | / {'set to'|@translate} |
---|
[3752] | 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> |
---|
[2531] | 163 | </td> |
---|
| 164 | </tr> |
---|
| 165 | |
---|
[3752] | 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> |
---|
[2531] | 176 | </table> |
---|
| 177 | |
---|
| 178 | </fieldset> |
---|
| 179 | |
---|
| 180 | {* preference *} |
---|
| 181 | <fieldset> |
---|
| 182 | <legend>{'Preferences'|@translate}</legend> |
---|
| 183 | |
---|
| 184 | <table> |
---|
| 185 | <tr> |
---|
[10198] | 186 | <td>{'Number of photos per page'|@translate}</td> |
---|
[2531] | 187 | <td> |
---|
[10198] | 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;" |
---|
[12471] | 191 | size="4" maxlength="3" type="text" name="nb_image_page" value="{$NB_IMAGE_PAGE}"> |
---|
[2531] | 192 | </td> |
---|
| 193 | </tr> |
---|
| 194 | |
---|
| 195 | <tr> |
---|
[5021] | 196 | <td>{'Interface theme'|@translate}</td> |
---|
[2531] | 197 | <td> |
---|
[5123] | 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"> |
---|
[5974] | 201 | {html_options options=$theme_options selected=$theme_selected} |
---|
[2531] | 202 | </select> |
---|
| 203 | </td> |
---|
| 204 | </tr> |
---|
| 205 | |
---|
| 206 | <tr> |
---|
[5021] | 207 | <td>{'Language'|@translate}</td> |
---|
[2531] | 208 | <td> |
---|
[3752] | 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> |
---|
[2531] | 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> |
---|
[5021] | 218 | <td>{'Recent period'|@translate}</td> |
---|
[2531] | 219 | <td> |
---|
[3752] | 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> |
---|
[2531] | 222 | <input onmousedown="document.getElementById('recent_period_action_set').checked = true;" |
---|
[3752] | 223 | type="text" size="3" maxlength="2" name="recent_period" value="{$RECENT_PERIOD}"> |
---|
[2531] | 224 | </td> |
---|
| 225 | </tr> |
---|
| 226 | |
---|
| 227 | <tr> |
---|
[6951] | 228 | <td>{'Expand all albums'|@translate}</td> |
---|
[2531] | 229 | <td> |
---|
[3752] | 230 | <label><input type="radio" name="expand" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
[2531] | 231 | / {'set to'|@translate} |
---|
[3752] | 232 | <label><input type="radio" name="expand" value="true">{'Yes'|@translate}</label> |
---|
| 233 | <label><input type="radio" name="expand" value="false">{'No'|@translate}</label> |
---|
[2531] | 234 | </td> |
---|
| 235 | </tr> |
---|
| 236 | |
---|
| 237 | <tr> |
---|
[5021] | 238 | <td>{'Show number of comments'|@translate}</td> |
---|
[2531] | 239 | <td> |
---|
[3752] | 240 | <label><input type="radio" name="show_nb_comments" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
[2531] | 241 | / {'set to'|@translate} |
---|
[3752] | 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> |
---|
[2531] | 244 | </td> |
---|
| 245 | </tr> |
---|
| 246 | |
---|
| 247 | <tr> |
---|
[5021] | 248 | <td>{'Show number of hits'|@translate}</td> |
---|
[2531] | 249 | <td> |
---|
[3752] | 250 | <label><input type="radio" name="show_nb_hits" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
[2531] | 251 | / {'set to'|@translate} |
---|
[3752] | 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> |
---|
[2531] | 254 | </td> |
---|
| 255 | </tr> |
---|
| 256 | |
---|
| 257 | <tr> |
---|
[8711] | 258 | <td>{'Maximum photo width'|@translate}</td> |
---|
[2531] | 259 | <td> |
---|
[3752] | 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> |
---|
[2531] | 263 | <input onmousedown="document.getElementById('maxwidth_action_set').checked = true;" |
---|
[3752] | 264 | type="text" size="4" maxlength="4" name="maxwidth" value="{$MAXWIDTH}"> |
---|
[2531] | 265 | </td> |
---|
| 266 | </tr> |
---|
| 267 | |
---|
| 268 | |
---|
| 269 | <tr> |
---|
[8711] | 270 | <td>{'Maximum photo height'|@translate}</td> |
---|
[2531] | 271 | <td> |
---|
[3752] | 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> |
---|
[2531] | 275 | <input onmousedown="document.getElementById('maxheight_action_set').checked = true;" |
---|
[3752] | 276 | type="text" size="4" maxlength="4" name="maxheight" value="{$MAXHEIGHT}"> |
---|
[2531] | 277 | </td> |
---|
| 278 | </tr> |
---|
| 279 | |
---|
| 280 | |
---|
| 281 | </table> |
---|
| 282 | |
---|
| 283 | </fieldset> |
---|
| 284 | |
---|
| 285 | <p> |
---|
| 286 | {'target'|@translate} |
---|
[3752] | 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> |
---|
[2531] | 289 | </p> |
---|
| 290 | |
---|
| 291 | <p> |
---|
[8128] | 292 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="pref_submit"> |
---|
[3752] | 293 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="pref_reset"> |
---|
[2531] | 294 | </p> |
---|
| 295 | |
---|
| 296 | </form> |
---|
| 297 | |
---|
[2578] | 298 | <script type="text/javascript">// <![CDATA[{literal} |
---|
| 299 | jQuery("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 | |
---|