[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> |
---|
[12886] | 16 | <label>{'Send connection settings by email'|@translate} <input type="checkbox" name="send_password_by_mail" value="1" checked="checked"></label> |
---|
[8128] | 17 | <label> <input class="submit" type="submit" name="submit_add" value="{'Submit'|@translate}"></label> |
---|
[2531] | 18 | </fieldset> |
---|
| 19 | </form> |
---|
| 20 | |
---|
| 21 | <form class="filter" method="get" name="filter" action="{$F_FILTER_ACTION}"> |
---|
| 22 | <fieldset> |
---|
| 23 | <legend>{'Filter'|@translate}</legend> |
---|
[3752] | 24 | <input type="hidden" name="page" value="user_list"> |
---|
[2531] | 25 | |
---|
[3752] | 26 | <label>{'Username'|@translate} <input type="text" name="username" value="{$F_USERNAME}"></label> |
---|
[2531] | 27 | |
---|
| 28 | <label> |
---|
| 29 | {'status'|@translate} |
---|
| 30 | {html_options name=status options=$status_options selected=$status_selected} |
---|
| 31 | </label> |
---|
| 32 | |
---|
| 33 | <label> |
---|
[6281] | 34 | {'Group'|@translate} |
---|
[2531] | 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 | |
---|
[2564] | 48 | <label> |
---|
| 49 | |
---|
[3752] | 50 | <input class="submit" type="submit" value="{'Submit'|@translate}"> |
---|
[2564] | 51 | </label> |
---|
[2531] | 52 | |
---|
| 53 | </fieldset> |
---|
| 54 | |
---|
| 55 | </form> |
---|
| 56 | |
---|
| 57 | <form method="post" name="preferences" action=""> |
---|
| 58 | |
---|
[4455] | 59 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
[4024] | 60 | |
---|
[2531] | 61 | <table class="table2" width="97%"> |
---|
| 62 | <thead> |
---|
| 63 | <tr class="throw"> |
---|
| 64 | <td> </td> |
---|
| 65 | <td>{'Username'|@translate}</td> |
---|
[5021] | 66 | <td>{'User status'|@translate}</td> |
---|
[2531] | 67 | <td>{'Email address'|@translate}</td> |
---|
| 68 | <td>{'Groups'|@translate}</td> |
---|
[5021] | 69 | <td>{'Properties'|@translate}</td> |
---|
[2531] | 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}"> |
---|
[3752] | 81 | <td><input type="checkbox" name="selection[]" value="{$user.ID}" {$user.CHECKED} id="selection-{$user.ID}"></td> |
---|
[2531] | 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;"> |
---|
[12482] | 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> |
---|
[2531] | 93 | {foreach from=$user.plugin_actions item=data} |
---|
| 94 | {$data} |
---|
| 95 | {/foreach} |
---|
| 96 | </td> |
---|
| 97 | </tr> |
---|
| 98 | {/foreach} |
---|
| 99 | </table> |
---|
| 100 | |
---|
[4455] | 101 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
[2531] | 102 | |
---|
| 103 | {* delete the selected users ? *} |
---|
| 104 | <fieldset> |
---|
| 105 | <legend>{'Deletions'|@translate}</legend> |
---|
[3752] | 106 | <label><input type="checkbox" name="confirm_deletion" value="1"> {'confirm'|@translate}</label> |
---|
[8128] | 107 | <input class="submit" type="submit" value="{'Delete selected users'|@translate}" name="delete"> |
---|
[2531] | 108 | </fieldset> |
---|
| 109 | |
---|
| 110 | <fieldset> |
---|
| 111 | <legend>{'Status'|@translate}</legend> |
---|
| 112 | |
---|
| 113 | <table> |
---|
| 114 | <tr> |
---|
| 115 | <td>{'Status'|@translate}</td> |
---|
| 116 | <td> |
---|
[3752] | 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> |
---|
[2531] | 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> |
---|
[5021] | 153 | <legend>{'Properties'|@translate}</legend> |
---|
[2531] | 154 | |
---|
| 155 | <table> |
---|
| 156 | |
---|
| 157 | <tr> |
---|
[5021] | 158 | <td>{'High definition enabled'|@translate}</td> |
---|
[2531] | 159 | <td> |
---|
[3752] | 160 | <label><input type="radio" name="enabled_high" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
[2531] | 161 | / {'set to'|@translate} |
---|
[3752] | 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> |
---|
[2531] | 164 | </td> |
---|
| 165 | </tr> |
---|
| 166 | |
---|
[3752] | 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> |
---|
[2531] | 177 | </table> |
---|
| 178 | |
---|
| 179 | </fieldset> |
---|
| 180 | |
---|
| 181 | {* preference *} |
---|
| 182 | <fieldset> |
---|
| 183 | <legend>{'Preferences'|@translate}</legend> |
---|
| 184 | |
---|
| 185 | <table> |
---|
| 186 | <tr> |
---|
[10198] | 187 | <td>{'Number of photos per page'|@translate}</td> |
---|
[2531] | 188 | <td> |
---|
[10198] | 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;" |
---|
[12470] | 192 | size="4" maxlength="3" type="text" name="nb_image_page" value="{$NB_IMAGE_PAGE}"> |
---|
[2531] | 193 | </td> |
---|
| 194 | </tr> |
---|
| 195 | |
---|
| 196 | <tr> |
---|
[5021] | 197 | <td>{'Interface theme'|@translate}</td> |
---|
[2531] | 198 | <td> |
---|
[5123] | 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"> |
---|
[5974] | 202 | {html_options options=$theme_options selected=$theme_selected} |
---|
[2531] | 203 | </select> |
---|
| 204 | </td> |
---|
| 205 | </tr> |
---|
| 206 | |
---|
| 207 | <tr> |
---|
[5021] | 208 | <td>{'Language'|@translate}</td> |
---|
[2531] | 209 | <td> |
---|
[3752] | 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> |
---|
[2531] | 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> |
---|
[5021] | 219 | <td>{'Recent period'|@translate}</td> |
---|
[2531] | 220 | <td> |
---|
[3752] | 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> |
---|
[2531] | 223 | <input onmousedown="document.getElementById('recent_period_action_set').checked = true;" |
---|
[3752] | 224 | type="text" size="3" maxlength="2" name="recent_period" value="{$RECENT_PERIOD}"> |
---|
[2531] | 225 | </td> |
---|
| 226 | </tr> |
---|
| 227 | |
---|
| 228 | <tr> |
---|
[6951] | 229 | <td>{'Expand all albums'|@translate}</td> |
---|
[2531] | 230 | <td> |
---|
[3752] | 231 | <label><input type="radio" name="expand" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
[2531] | 232 | / {'set to'|@translate} |
---|
[3752] | 233 | <label><input type="radio" name="expand" value="true">{'Yes'|@translate}</label> |
---|
| 234 | <label><input type="radio" name="expand" value="false">{'No'|@translate}</label> |
---|
[2531] | 235 | </td> |
---|
| 236 | </tr> |
---|
| 237 | |
---|
[12887] | 238 | {if $ACTIVATE_COMMENTS} |
---|
[2531] | 239 | <tr> |
---|
[5021] | 240 | <td>{'Show number of comments'|@translate}</td> |
---|
[2531] | 241 | <td> |
---|
[3752] | 242 | <label><input type="radio" name="show_nb_comments" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
[2531] | 243 | / {'set to'|@translate} |
---|
[3752] | 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> |
---|
[2531] | 246 | </td> |
---|
| 247 | </tr> |
---|
[12887] | 248 | {/if} |
---|
[2531] | 249 | |
---|
| 250 | <tr> |
---|
[5021] | 251 | <td>{'Show number of hits'|@translate}</td> |
---|
[2531] | 252 | <td> |
---|
[3752] | 253 | <label><input type="radio" name="show_nb_hits" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
[2531] | 254 | / {'set to'|@translate} |
---|
[3752] | 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> |
---|
[2531] | 257 | </td> |
---|
| 258 | </tr> |
---|
| 259 | |
---|
| 260 | </table> |
---|
| 261 | |
---|
| 262 | </fieldset> |
---|
| 263 | |
---|
| 264 | <p> |
---|
| 265 | {'target'|@translate} |
---|
[3752] | 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> |
---|
[2531] | 268 | </p> |
---|
| 269 | |
---|
| 270 | <p> |
---|
[8128] | 271 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="pref_submit"> |
---|
[3752] | 272 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="pref_reset"> |
---|
[2531] | 273 | </p> |
---|
| 274 | |
---|
| 275 | </form> |
---|
| 276 | |
---|
[2578] | 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 | |
---|