[2531] | 1 | |
---|
[2632] | 2 | {include file='include/datepicker.inc.tpl'} |
---|
| 3 | |
---|
| 4 | {literal} |
---|
| 5 | <script type="text/javascript"> |
---|
[2680] | 6 | pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); |
---|
[2632] | 7 | </script> |
---|
| 8 | {/literal} |
---|
| 9 | |
---|
[5188] | 10 | {known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"} |
---|
| 11 | {literal} |
---|
| 12 | <script type="text/javascript"> |
---|
| 13 | $(document).ready(function() { |
---|
| 14 | $("#tags").fcbkcomplete({ |
---|
| 15 | json_url: "admin.php?fckb_tags=1", |
---|
| 16 | cache: false, |
---|
[5198] | 17 | filter_case: false, |
---|
[5188] | 18 | filter_hide: true, |
---|
| 19 | firstselected: true, |
---|
| 20 | filter_selected: true, |
---|
| 21 | maxitems: 10, |
---|
| 22 | newel: true |
---|
| 23 | }); |
---|
| 24 | }); |
---|
| 25 | </script> |
---|
| 26 | {/literal} |
---|
| 27 | |
---|
[2531] | 28 | <h2>{'Batch management'|@translate}</h2> |
---|
| 29 | |
---|
| 30 | <h3>{$CATEGORIES_NAV}</h3> |
---|
| 31 | |
---|
| 32 | {if !empty($thumbnails)} |
---|
| 33 | <p style="text-align:center;"> |
---|
| 34 | {'global mode'|@translate} |
---|
| 35 | | <a href="{$U_UNIT_MODE}">{'unit mode'|@translate}</a> |
---|
| 36 | </p> |
---|
| 37 | |
---|
| 38 | <fieldset> |
---|
| 39 | |
---|
| 40 | <legend>{'Display options'|@translate}</legend> |
---|
| 41 | |
---|
| 42 | <p>{'elements per page'|@translate}: |
---|
| 43 | <a href="{$U_DISPLAY}&display=20">20</a> |
---|
| 44 | | <a href="{$U_DISPLAY}&display=50">50</a> |
---|
| 45 | | <a href="{$U_DISPLAY}&display=100">100</a> |
---|
| 46 | | <a href="{$U_DISPLAY}&display=all">{'all'|@translate}</a> |
---|
| 47 | </p> |
---|
| 48 | |
---|
| 49 | </fieldset> |
---|
| 50 | |
---|
| 51 | <form action="{$F_ACTION}" method="post"> |
---|
| 52 | |
---|
| 53 | <fieldset> |
---|
| 54 | |
---|
| 55 | <legend>{'Elements'|@translate}</legend> |
---|
| 56 | |
---|
[3182] | 57 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
[2531] | 58 | |
---|
| 59 | {if !empty($thumbnails)} |
---|
| 60 | <ul class="thumbnails"> |
---|
| 61 | {foreach from=$thumbnails item=thumbnail} |
---|
| 62 | <li><span class="wrap1"> |
---|
| 63 | <label> |
---|
| 64 | <span class="wrap2"> |
---|
| 65 | {if $thumbnail.LEVEL > 0} |
---|
| 66 | <em class="levelIndicatorB">{$thumbnail.LEVEL}</em> |
---|
| 67 | <em class="levelIndicatorF" title="{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}">{$thumbnail.LEVEL}</em> |
---|
| 68 | {/if} |
---|
| 69 | <span> |
---|
| 70 | <img src="{$thumbnail.TN_SRC}" |
---|
| 71 | alt="{$thumbnail.FILE}" |
---|
| 72 | title="{$thumbnail.TITLE}" |
---|
[3185] | 73 | class="thumbnail"> |
---|
[2531] | 74 | </span></span> |
---|
[3185] | 75 | <input type="checkbox" name="selection[]" value="{$thumbnail.ID}"> |
---|
[2531] | 76 | </label> |
---|
| 77 | </span> |
---|
| 78 | </li> |
---|
| 79 | {/foreach} |
---|
| 80 | </ul> |
---|
| 81 | {/if} |
---|
| 82 | |
---|
| 83 | </fieldset> |
---|
| 84 | |
---|
[5206] | 85 | {if isset($show_delete_form) } |
---|
[2531] | 86 | <fieldset> |
---|
[2678] | 87 | <legend>{'Deletions'|@translate}</legend> |
---|
| 88 | <p style="font-style:italic">{'Note: Only deletes photos added with pLoader'|@translate}</p> |
---|
| 89 | <p> |
---|
| 90 | {'target'|@translate} |
---|
[3185] | 91 | <label><input type="radio" name="target_deletion" value="all"> {'all'|@translate}</label> |
---|
| 92 | <label><input type="radio" name="target_deletion" value="selection" checked="checked"> {'selection'|@translate}</label> |
---|
[2678] | 93 | </p> |
---|
| 94 | <p> |
---|
[3185] | 95 | <label><input type="checkbox" name="confirm_deletion" value="1"> {'confirm'|@translate}</label> |
---|
| 96 | <input class="submit" type="submit" value="{'Delete selected photos'|@translate}" name="delete" {$TAG_INPUT_ENABLED}> |
---|
[2678] | 97 | </p> |
---|
| 98 | </fieldset> |
---|
| 99 | {/if} |
---|
[2531] | 100 | |
---|
[2678] | 101 | <fieldset> |
---|
| 102 | |
---|
[2531] | 103 | <legend>{'Form'|@translate}</legend> |
---|
| 104 | |
---|
| 105 | <table> |
---|
| 106 | |
---|
| 107 | <tr> |
---|
| 108 | <td>{'associate to category'|@translate}</td> |
---|
| 109 | <td> |
---|
| 110 | <select style="width:400px" name="associate" size="1"> |
---|
| 111 | <option value="0">------------</option> |
---|
| 112 | {html_options options=$associate_options } |
---|
| 113 | </select> |
---|
| 114 | </td> |
---|
| 115 | </tr> |
---|
| 116 | |
---|
| 117 | <tr> |
---|
| 118 | <td>{'dissociate from category'|@translate}</td> |
---|
| 119 | <td> |
---|
| 120 | <select style="width:400px" name="dissociate" size="1"> |
---|
| 121 | <option value="0">------------</option> |
---|
| 122 | {if !empty($dissociate_options)}{html_options options=$dissociate_options }{/if} |
---|
| 123 | </select> |
---|
| 124 | </td> |
---|
| 125 | </tr> |
---|
| 126 | |
---|
| 127 | <tr> |
---|
| 128 | <td>{'add tags'|@translate}</td> |
---|
[5188] | 129 | <td> |
---|
| 130 | <select id="tags" name="add_tags"> |
---|
| 131 | </select> |
---|
| 132 | </td> |
---|
[2531] | 133 | </tr> |
---|
| 134 | |
---|
| 135 | {if !empty($DEL_TAG_SELECTION)} |
---|
| 136 | <tr> |
---|
| 137 | <td>{'remove tags'|@translate}</td> |
---|
| 138 | <td>{$DEL_TAG_SELECTION}</td> |
---|
| 139 | </tr> |
---|
| 140 | {/if} |
---|
| 141 | |
---|
| 142 | <tr> |
---|
| 143 | <td>{'Author'|@translate}</td> |
---|
| 144 | <td> |
---|
[3185] | 145 | <label><input type="radio" name="author_action" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
| 146 | <label><input type="radio" name="author_action" value="unset"> {'unset'|@translate}</label> |
---|
| 147 | <label><input type="radio" name="author_action" value="set" id="author_action_set"> {'set to'|@translate}</label> |
---|
| 148 | <input onchange="document.getElementById('author_action_set').checked = true;" type="text" class="large" name="author" value=""> |
---|
[2531] | 149 | </td> |
---|
| 150 | </tr> |
---|
| 151 | |
---|
| 152 | <tr> |
---|
| 153 | <td>{'title'|@translate}</td> |
---|
| 154 | <td> |
---|
[3185] | 155 | <label><input type="radio" name="name_action" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
| 156 | <label><input type="radio" name="name_action" value="unset"> {'unset'|@translate}</label> |
---|
| 157 | <label><input type="radio" name="name_action" value="set" id="name_action_set"> {'set to'|@translate}</label> |
---|
| 158 | <input onchange="document.getElementById('name_action_set').checked = true;" type="text" class="large" name="name" value=""> |
---|
[2531] | 159 | </td> |
---|
| 160 | </tr> |
---|
| 161 | |
---|
| 162 | <tr> |
---|
| 163 | <td>{'Creation date'|@translate}</td> |
---|
| 164 | <td> |
---|
[3185] | 165 | <label><input type="radio" name="date_creation_action" value="leave" checked="checked"> {'leave'|@translate}</label> |
---|
| 166 | <label><input type="radio" name="date_creation_action" value="unset"> {'unset'|@translate}</label> |
---|
| 167 | <label><input type="radio" name="date_creation_action" value="set" id="date_creation_action_set"> {'set to'|@translate}</label> |
---|
[2680] | 168 | <select id="date_creation_day" name="date_creation_day"> |
---|
[2531] | 169 | <option value="0">--</option> |
---|
| 170 | {section name=day start=1 loop=32} |
---|
| 171 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 172 | {/section} |
---|
| 173 | </select> |
---|
[2680] | 174 | <select id="date_creation_month" name="date_creation_month"> |
---|
[2531] | 175 | {html_options options=$month_list selected=$DATE_CREATION_MONTH} |
---|
| 176 | </select> |
---|
[2680] | 177 | <input id="date_creation_year" |
---|
[2531] | 178 | name="date_creation_year" |
---|
| 179 | type="text" |
---|
| 180 | size="4" |
---|
| 181 | maxlength="4" |
---|
[3185] | 182 | value="{$DATE_CREATION_YEAR}"> |
---|
| 183 | <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
[2531] | 184 | </td> |
---|
| 185 | </tr> |
---|
| 186 | |
---|
| 187 | <tr> |
---|
| 188 | <td>{'Minimum privacy level'|@translate}</td> |
---|
| 189 | <td> |
---|
[3185] | 190 | <label><input type="radio" name="level_action" value="leave" checked="checked">{'leave'|@translate}</label> |
---|
| 191 | <label><input type="radio" name="level_action" value="set" id="level_action_set">{'set to'|@translate}</label> |
---|
[2531] | 192 | <select onchange="document.getElementById('level_action_set').checked = true;" name="level" size="1"> |
---|
| 193 | {html_options options=$level_options} |
---|
| 194 | </select> |
---|
| 195 | </td> |
---|
| 196 | </tr> |
---|
| 197 | |
---|
| 198 | </table> |
---|
| 199 | |
---|
| 200 | <p> |
---|
| 201 | {'target'|@translate} |
---|
[3185] | 202 | <label><input type="radio" name="target" value="all"> {'all'|@translate}</label> |
---|
| 203 | <label><input type="radio" name="target" value="selection" checked="checked"> {'selection'|@translate}</label> |
---|
[2531] | 204 | </p> |
---|
| 205 | |
---|
| 206 | |
---|
[3185] | 207 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}></p> |
---|
[2531] | 208 | |
---|
| 209 | </fieldset> |
---|
| 210 | |
---|
| 211 | <fieldset> |
---|
| 212 | |
---|
| 213 | <legend>{'Caddie management'|@translate}</legend> |
---|
| 214 | |
---|
| 215 | <ul style="list-style-type:none;"> |
---|
| 216 | {if ($IN_CADDIE)} |
---|
[3185] | 217 | <li><label><input type="radio" name="caddie_action" value="empty_all"> {'Empty caddie'|@translate}</label></li> |
---|
| 218 | <li><label><input type="radio" name="caddie_action" value="empty_selected"> {'Take selected elements out of caddie'|@translate}</label></li> |
---|
[2531] | 219 | {else} |
---|
[3185] | 220 | <li><label><input type="radio" name="caddie_action" value="add_selected"> {'Add selected elements to caddie'|@translate}</label></li> |
---|
[2531] | 221 | {/if} |
---|
| 222 | </ul> |
---|
| 223 | |
---|
[3185] | 224 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit_caddie"></p> |
---|
[2531] | 225 | |
---|
| 226 | </fieldset> |
---|
| 227 | |
---|
| 228 | </form> |
---|
| 229 | |
---|
| 230 | {else} |
---|
| 231 | <div class="infos"><p>{'Caddie is currently empty'|@translate}</p></div> |
---|
| 232 | {/if} |
---|