[8394] | 1 | {include file='include/tag_selection.inc.tpl'} |
---|
| 2 | {include file='include/datepicker.inc.tpl'} |
---|
| 3 | |
---|
| 4 | {footer_script}{literal} |
---|
| 5 | pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); |
---|
| 6 | {/literal}{/footer_script} |
---|
| 7 | |
---|
| 8 | {combine_script id='jquery.fcbkcomplete' load='footer' require='jquery' path='themes/default/js/plugins/jquery.fcbkcomplete.js'} |
---|
| 9 | |
---|
| 10 | {footer_script require='jquery.fcbkcomplete'}{literal} |
---|
| 11 | jQuery(document).ready(function() { |
---|
| 12 | jQuery("#tags").fcbkcomplete({ |
---|
| 13 | json_url: "admin.php?fckb_tags=1", |
---|
| 14 | cache: false, |
---|
| 15 | filter_case: false, |
---|
| 16 | filter_hide: true, |
---|
| 17 | firstselected: true, |
---|
| 18 | filter_selected: true, |
---|
| 19 | maxitems: 100, |
---|
| 20 | newel: true |
---|
| 21 | }); |
---|
| 22 | }); |
---|
| 23 | {/literal}{/footer_script} |
---|
| 24 | |
---|
| 25 | {footer_script} |
---|
| 26 | var nb_thumbs_page = {$nb_thumbs_page}; |
---|
| 27 | var nb_thumbs_set = {$nb_thumbs_set}; |
---|
| 28 | var applyOnDetails_pattern = "{'on the %d selected photos'|@translate}"; |
---|
| 29 | |
---|
| 30 | var selectedMessage_pattern = "{'%d of %d photos selected'|@translate}"; |
---|
| 31 | var selectedMessage_none = "{'No photo selected, %d photos in current set'|@translate}"; |
---|
| 32 | var selectedMessage_all = "{'All %d photos are selected'|@translate}"; |
---|
| 33 | {literal} |
---|
| 34 | function str_repeat(i, m) { |
---|
| 35 | for (var o = []; m > 0; o[--m] = i); |
---|
| 36 | return o.join(''); |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | function sprintf() { |
---|
| 40 | var i = 0, a, f = arguments[i++], o = [], m, p, c, x, s = ''; |
---|
| 41 | while (f) { |
---|
| 42 | if (m = /^[^\x25]+/.exec(f)) { |
---|
| 43 | o.push(m[0]); |
---|
| 44 | } |
---|
| 45 | else if (m = /^\x25{2}/.exec(f)) { |
---|
| 46 | o.push('%'); |
---|
| 47 | } |
---|
| 48 | else if (m = /^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(f)) { |
---|
| 49 | if (((a = arguments[m[1] || i++]) == null) || (a == undefined)) { |
---|
| 50 | throw('Too few arguments.'); |
---|
| 51 | } |
---|
| 52 | if (/[^s]/.test(m[7]) && (typeof(a) != 'number')) { |
---|
| 53 | throw('Expecting number but found ' + typeof(a)); |
---|
| 54 | } |
---|
| 55 | switch (m[7]) { |
---|
| 56 | case 'b': a = a.toString(2); break; |
---|
| 57 | case 'c': a = String.fromCharCode(a); break; |
---|
| 58 | case 'd': a = parseInt(a); break; |
---|
| 59 | case 'e': a = m[6] ? a.toExponential(m[6]) : a.toExponential(); break; |
---|
| 60 | case 'f': a = m[6] ? parseFloat(a).toFixed(m[6]) : parseFloat(a); break; |
---|
| 61 | case 'o': a = a.toString(8); break; |
---|
| 62 | case 's': a = ((a = String(a)) && m[6] ? a.substring(0, m[6]) : a); break; |
---|
| 63 | case 'u': a = Math.abs(a); break; |
---|
| 64 | case 'x': a = a.toString(16); break; |
---|
| 65 | case 'X': a = a.toString(16).toUpperCase(); break; |
---|
| 66 | } |
---|
| 67 | a = (/[def]/.test(m[7]) && m[2] && a >= 0 ? '+'+ a : a); |
---|
| 68 | c = m[3] ? m[3] == '0' ? '0' : m[3].charAt(1) : ' '; |
---|
| 69 | x = m[5] - String(a).length - s.length; |
---|
| 70 | p = m[5] ? str_repeat(c, x) : ''; |
---|
| 71 | o.push(s + (m[4] ? a + p : p + a)); |
---|
| 72 | } |
---|
| 73 | else { |
---|
| 74 | throw('Huh ?!'); |
---|
| 75 | } |
---|
| 76 | f = f.substring(m[0].length); |
---|
| 77 | } |
---|
| 78 | return o.join(''); |
---|
| 79 | } |
---|
| 80 | |
---|
| 81 | $(document).ready(function() { |
---|
| 82 | function checkPermitAction() { |
---|
| 83 | var nbSelected = 0; |
---|
| 84 | if ($("input[name=setSelected]").is(':checked')) { |
---|
| 85 | nbSelected = nb_thumbs_set; |
---|
| 86 | } |
---|
| 87 | else { |
---|
| 88 | $(".thumbnails input[type=checkbox]").each(function() { |
---|
| 89 | if ($(this).is(':checked')) { |
---|
| 90 | nbSelected++; |
---|
| 91 | } |
---|
| 92 | }); |
---|
| 93 | } |
---|
| 94 | |
---|
| 95 | if (nbSelected == 0) { |
---|
| 96 | $("#permitAction").hide(); |
---|
| 97 | $("#forbidAction").show(); |
---|
| 98 | } |
---|
| 99 | else { |
---|
| 100 | $("#permitAction").show(); |
---|
| 101 | $("#forbidAction").hide(); |
---|
| 102 | } |
---|
| 103 | |
---|
| 104 | $("#applyOnDetails").text( |
---|
| 105 | sprintf( |
---|
| 106 | applyOnDetails_pattern, |
---|
| 107 | nbSelected |
---|
| 108 | ) |
---|
| 109 | ); |
---|
| 110 | |
---|
| 111 | // display the number of currently selected photos in the "Selection" fieldset |
---|
| 112 | if (nbSelected == 0) { |
---|
| 113 | $("#selectedMessage").text( |
---|
| 114 | sprintf( |
---|
| 115 | selectedMessage_none, |
---|
| 116 | nb_thumbs_set |
---|
| 117 | ) |
---|
| 118 | ); |
---|
| 119 | } |
---|
| 120 | else if (nbSelected == nb_thumbs_set) { |
---|
| 121 | $("#selectedMessage").text( |
---|
| 122 | sprintf( |
---|
| 123 | selectedMessage_all, |
---|
| 124 | nb_thumbs_set |
---|
| 125 | ) |
---|
| 126 | ); |
---|
| 127 | } |
---|
| 128 | else { |
---|
| 129 | $("#selectedMessage").text( |
---|
| 130 | sprintf( |
---|
| 131 | selectedMessage_pattern, |
---|
| 132 | nbSelected, |
---|
| 133 | nb_thumbs_set |
---|
| 134 | ) |
---|
| 135 | ); |
---|
| 136 | } |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | $('img.thumbnail').tipTip({ |
---|
| 140 | 'delay' : 0, |
---|
| 141 | 'fadeIn' : 200, |
---|
[9466] | 142 | 'fadeOut' : 200 |
---|
[8394] | 143 | }); |
---|
| 144 | |
---|
| 145 | $("[id^=action_]").hide(); |
---|
| 146 | |
---|
[9806] | 147 | $("select[name=selectAction]").change(function () { |
---|
[8394] | 148 | $("[id^=action_]").hide(); |
---|
| 149 | $("#action_"+$(this).attr("value")).show(); |
---|
[9806] | 150 | |
---|
| 151 | if ($(this).val() != -1) { |
---|
| 152 | $("#applyActionBlock").show(); |
---|
| 153 | } |
---|
| 154 | else { |
---|
| 155 | $("#applyActionBlock").hide(); |
---|
| 156 | } |
---|
[8394] | 157 | }); |
---|
| 158 | |
---|
| 159 | $(".wrap1 label").click(function () { |
---|
| 160 | $("input[name=setSelected]").attr('checked', false); |
---|
| 161 | |
---|
| 162 | var wrap2 = $(this).children(".wrap2"); |
---|
| 163 | var checkbox = $(this).children("input[type=checkbox]"); |
---|
| 164 | |
---|
| 165 | if ($(checkbox).is(':checked')) { |
---|
| 166 | $(wrap2).addClass("thumbSelected"); |
---|
| 167 | } |
---|
| 168 | else { |
---|
| 169 | $(wrap2).removeClass('thumbSelected'); |
---|
| 170 | } |
---|
| 171 | |
---|
| 172 | checkPermitAction(); |
---|
| 173 | }); |
---|
| 174 | |
---|
| 175 | $("#selectAll").click(function () { |
---|
[9064] | 176 | $("input[name=setSelected]").attr('checked', false); |
---|
| 177 | selectPageThumbnails(); |
---|
| 178 | checkPermitAction(); |
---|
| 179 | return false; |
---|
| 180 | }); |
---|
| 181 | |
---|
| 182 | function selectPageThumbnails() { |
---|
[8394] | 183 | $(".thumbnails label").each(function() { |
---|
| 184 | var wrap2 = $(this).children(".wrap2"); |
---|
| 185 | var checkbox = $(this).children("input[type=checkbox]"); |
---|
| 186 | |
---|
| 187 | $(checkbox).attr('checked', true); |
---|
| 188 | $(wrap2).addClass("thumbSelected"); |
---|
| 189 | }); |
---|
[9064] | 190 | } |
---|
[8394] | 191 | |
---|
| 192 | $("#selectNone").click(function () { |
---|
| 193 | $("input[name=setSelected]").attr('checked', false); |
---|
| 194 | |
---|
| 195 | $(".thumbnails label").each(function() { |
---|
| 196 | var wrap2 = $(this).children(".wrap2"); |
---|
| 197 | var checkbox = $(this).children("input[type=checkbox]"); |
---|
| 198 | |
---|
| 199 | $(checkbox).attr('checked', false); |
---|
| 200 | $(wrap2).removeClass("thumbSelected"); |
---|
| 201 | }); |
---|
| 202 | checkPermitAction(); |
---|
| 203 | return false; |
---|
| 204 | }); |
---|
| 205 | |
---|
| 206 | $("#selectInvert").click(function () { |
---|
| 207 | $("input[name=setSelected]").attr('checked', false); |
---|
| 208 | |
---|
| 209 | $(".thumbnails label").each(function() { |
---|
| 210 | var wrap2 = $(this).children(".wrap2"); |
---|
| 211 | var checkbox = $(this).children("input[type=checkbox]"); |
---|
| 212 | |
---|
| 213 | $(checkbox).attr('checked', !$(checkbox).is(':checked')); |
---|
| 214 | |
---|
| 215 | if ($(checkbox).is(':checked')) { |
---|
| 216 | $(wrap2).addClass("thumbSelected"); |
---|
| 217 | } |
---|
| 218 | else { |
---|
| 219 | $(wrap2).removeClass('thumbSelected'); |
---|
| 220 | } |
---|
| 221 | }); |
---|
| 222 | checkPermitAction(); |
---|
| 223 | return false; |
---|
| 224 | }); |
---|
| 225 | |
---|
| 226 | $("#selectSet").click(function () { |
---|
[9064] | 227 | selectPageThumbnails(); |
---|
[8394] | 228 | $("input[name=setSelected]").attr('checked', true); |
---|
| 229 | checkPermitAction(); |
---|
| 230 | return false; |
---|
| 231 | }); |
---|
| 232 | |
---|
| 233 | $("input[name=remove_author]").click(function () { |
---|
| 234 | if ($(this).is(':checked')) { |
---|
| 235 | $("input[name=author]").hide(); |
---|
| 236 | } |
---|
| 237 | else { |
---|
| 238 | $("input[name=author]").show(); |
---|
| 239 | } |
---|
| 240 | }); |
---|
| 241 | |
---|
[8408] | 242 | $("input[name=remove_title]").click(function () { |
---|
[8394] | 243 | if ($(this).is(':checked')) { |
---|
[8408] | 244 | $("input[name=title]").hide(); |
---|
[8394] | 245 | } |
---|
| 246 | else { |
---|
[8408] | 247 | $("input[name=title]").show(); |
---|
[8394] | 248 | } |
---|
| 249 | }); |
---|
| 250 | |
---|
| 251 | $("input[name=remove_date_creation]").click(function () { |
---|
| 252 | if ($(this).is(':checked')) { |
---|
| 253 | $("#set_date_creation").hide(); |
---|
| 254 | } |
---|
| 255 | else { |
---|
| 256 | $("#set_date_creation").show(); |
---|
| 257 | } |
---|
| 258 | }); |
---|
| 259 | |
---|
| 260 | $(".removeFilter").click(function () { |
---|
| 261 | var filter = $(this).parent('li').attr("id"); |
---|
| 262 | filter_disable(filter); |
---|
| 263 | |
---|
| 264 | return false; |
---|
| 265 | }); |
---|
| 266 | |
---|
| 267 | function filter_enable(filter) { |
---|
| 268 | /* show the filter*/ |
---|
| 269 | $("#"+filter).show(); |
---|
| 270 | |
---|
| 271 | /* check the checkbox to declare we use this filter */ |
---|
| 272 | $("input[type=checkbox][name="+filter+"_use]").attr("checked", true); |
---|
| 273 | |
---|
| 274 | /* forbid to select this filter in the addFilter list */ |
---|
| 275 | $("#addFilter").children("option[value="+filter+"]").attr("disabled", "disabled"); |
---|
| 276 | } |
---|
| 277 | |
---|
| 278 | $("#addFilter").change(function () { |
---|
| 279 | var filter = $(this).attr("value"); |
---|
| 280 | filter_enable(filter); |
---|
| 281 | $(this).attr("value", -1); |
---|
| 282 | }); |
---|
| 283 | |
---|
| 284 | function filter_disable(filter) { |
---|
| 285 | /* hide the filter line */ |
---|
| 286 | $("#"+filter).hide(); |
---|
| 287 | |
---|
| 288 | /* uncheck the checkbox to declare we do not use this filter */ |
---|
| 289 | $("input[name="+filter+"_use]").removeAttr("checked"); |
---|
| 290 | |
---|
| 291 | /* give the possibility to show it again */ |
---|
| 292 | $("#addFilter").children("option[value="+filter+"]").removeAttr("disabled"); |
---|
| 293 | } |
---|
| 294 | |
---|
| 295 | $("#removeFilters").click(function() { |
---|
| 296 | $("#filterList li").each(function() { |
---|
| 297 | var filter = $(this).attr("id"); |
---|
| 298 | filter_disable(filter); |
---|
| 299 | }); |
---|
| 300 | return false; |
---|
| 301 | }); |
---|
| 302 | |
---|
| 303 | checkPermitAction() |
---|
| 304 | }); |
---|
| 305 | {/literal}{/footer_script} |
---|
| 306 | |
---|
[9815] | 307 | <div id="batchManagerGlobal"> |
---|
[8394] | 308 | |
---|
[8408] | 309 | <h2>{'Batch Manager'|@translate}</h2> |
---|
[8394] | 310 | |
---|
| 311 | <form action="{$F_ACTION}" method="post"> |
---|
| 312 | |
---|
| 313 | <fieldset> |
---|
| 314 | <legend>{'Filter'|@translate}</legend> |
---|
| 315 | |
---|
| 316 | <ul id="filterList"> |
---|
| 317 | <li id="filter_prefilter" {if !isset($filter.prefilter)}style="display:none"{/if}> |
---|
[8408] | 318 | <a href="#" class="removeFilter" title="{'remove this filter'|@translate}"><span>[x]</span></a> |
---|
[8394] | 319 | <input type="checkbox" name="filter_prefilter_use" class="useFilterCheckbox" {if isset($filter.prefilter)}checked="checked"{/if}> |
---|
[8408] | 320 | {'predefined filter'|@translate} |
---|
[8394] | 321 | <select name="filter_prefilter"> |
---|
[8408] | 322 | <option value="caddie" {if $filter.prefilter eq 'caddie'}selected="selected"{/if}>{'caddie'|@translate}</option> |
---|
| 323 | <option value="last import" {if $filter.prefilter eq 'last import'}selected="selected"{/if}>{'last import'|@translate}</option> |
---|
[9912] | 324 | <option value="with no album" {if $filter.prefilter eq 'with no album'}selected="selected"{/if}>{'with no album'|@translate}</option> |
---|
[8403] | 325 | {if $ENABLE_SYNCHRONIZATION} |
---|
[8408] | 326 | <option value="with no virtual album" {if $filter.prefilter eq 'with no virtual album'}selected="selected"{/if}>{'with no virtual album'|@translate}</option> |
---|
[8403] | 327 | {/if} |
---|
[8422] | 328 | <option value="with no tag" {if $filter.prefilter eq 'with no tag'}selected="selected"{/if}>{'with no tag'|@translate}</option> |
---|
[8408] | 329 | <option value="duplicates" {if $filter.prefilter eq 'duplicates'}selected="selected"{/if}>{'duplicates'|@translate}</option> |
---|
[9912] | 330 | <option value="all photos" {if $filter.prefilter eq 'all photos'}selected="selected"{/if}>{'all photos'|@translate}</option> |
---|
[8394] | 331 | </select> |
---|
| 332 | </li> |
---|
| 333 | <li id="filter_category" {if !isset($filter.category)}style="display:none"{/if}> |
---|
| 334 | <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a> |
---|
| 335 | <input type="checkbox" name="filter_category_use" class="useFilterCheckbox" {if isset($filter.category)}checked="checked"{/if}> |
---|
[8408] | 336 | {'album'|@translate} |
---|
[8394] | 337 | <select style="width:400px" name="filter_category" size="1"> |
---|
| 338 | {html_options options=$filter_category_options selected=$filter_category_options_selected} |
---|
| 339 | </select> |
---|
| 340 | <label><input type="checkbox" name="filter_category_recursive" {if isset($filter.category_recursive)}checked="checked"{/if}> {'include child albums'|@translate}</label> |
---|
| 341 | </li> |
---|
| 342 | <li id="filter_level" {if !isset($filter.level)}style="display:none"{/if}> |
---|
| 343 | <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a> |
---|
| 344 | <input type="checkbox" name="filter_level_use" class="useFilterCheckbox" {if isset($filter.level)}checked="checked"{/if}> |
---|
| 345 | {'Who can see these photos?'|@translate} |
---|
| 346 | <select name="filter_level" size="1"> |
---|
| 347 | {html_options options=$filter_level_options selected=$filter_level_options_selected} |
---|
| 348 | </select> |
---|
| 349 | </li> |
---|
| 350 | </ul> |
---|
| 351 | |
---|
| 352 | <p class="actionButtons" style=""> |
---|
| 353 | <select id="addFilter"> |
---|
[8408] | 354 | <option value="-1">{'Add a filter'|@translate}</option> |
---|
[8394] | 355 | <option disabled="disabled">------------------</option> |
---|
[8408] | 356 | <option value="filter_prefilter">{'predefined filter'|@translate}</option> |
---|
| 357 | <option value="filter_category">{'album'|@translate}</option> |
---|
[8394] | 358 | <option value="filter_level">{'Who can see these photos?'|@translate}</option> |
---|
| 359 | </select> |
---|
| 360 | <!-- <input id="removeFilters" class="submit" type="submit" value="Remove all filters" name="removeFilters"> --> |
---|
[8408] | 361 | <a id="removeFilters" href="">{'Remove all filters'|@translate}</a> |
---|
[8394] | 362 | </p> |
---|
| 363 | |
---|
| 364 | <p class="actionButtons" id="applyFilterBlock"> |
---|
[8408] | 365 | <input id="applyFilter" class="submit" type="submit" value="{'Refresh photo set'|@translate}" name="submitFilter"> |
---|
[8394] | 366 | </p> |
---|
| 367 | |
---|
| 368 | </fieldset> |
---|
| 369 | |
---|
| 370 | <fieldset> |
---|
| 371 | |
---|
| 372 | <legend>{'Selection'|@translate}</legend> |
---|
| 373 | |
---|
| 374 | {if !empty($thumbnails)} |
---|
| 375 | <p id="checkActions"> |
---|
| 376 | {'Select:'|@translate} |
---|
[8408] | 377 | {if $nb_thumbs_set > $nb_thumbs_page} |
---|
| 378 | <a href="#" id="selectAll">{'The whole page'|@translate}</a>, |
---|
| 379 | <a href="#" id="selectSet">{'The whole set'|@translate}</a>, |
---|
| 380 | {else} |
---|
| 381 | <a href="#" id="selectAll">{'All'|@translate}</a>, |
---|
| 382 | {/if} |
---|
[8394] | 383 | <a href="#" id="selectNone">{'None'|@translate}</a>, |
---|
| 384 | <a href="#" id="selectInvert">{'Invert'|@translate}</a> |
---|
| 385 | |
---|
| 386 | <span id="selectedMessage"></span> |
---|
| 387 | |
---|
| 388 | <input type="checkbox" name="setSelected" style="display:none" {if count($selection) == $nb_thumbs_set}checked="checked"{/if}> |
---|
| 389 | </p> |
---|
| 390 | |
---|
| 391 | <ul class="thumbnails"> |
---|
| 392 | {foreach from=$thumbnails item=thumbnail} |
---|
| 393 | {if in_array($thumbnail.ID, $selection)} |
---|
| 394 | {assign var='isSelected' value=true} |
---|
| 395 | {else} |
---|
| 396 | {assign var='isSelected' value=false} |
---|
| 397 | {/if} |
---|
| 398 | |
---|
| 399 | <li><span class="wrap1"> |
---|
| 400 | <label> |
---|
| 401 | <span class="wrap2{if $isSelected} thumbSelected{/if}"> |
---|
| 402 | {if $thumbnail.LEVEL > 0} |
---|
| 403 | <em class="levelIndicatorB">{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}</em> |
---|
| 404 | <em class="levelIndicatorF" title="{'Who can see these photos?'|@translate} : ">{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}</em> |
---|
| 405 | {/if} |
---|
| 406 | <span> |
---|
| 407 | <img src="{$thumbnail.TN_SRC}" |
---|
| 408 | alt="{$thumbnail.FILE}" |
---|
| 409 | title="{$thumbnail.TITLE|@escape:'html'}" |
---|
| 410 | class="thumbnail"> |
---|
| 411 | </span></span> |
---|
| 412 | <input type="checkbox" name="selection[]" value="{$thumbnail.ID}" {if $isSelected}checked="checked"{/if}> |
---|
| 413 | </label> |
---|
| 414 | </span> |
---|
| 415 | </li> |
---|
| 416 | {/foreach} |
---|
| 417 | </ul> |
---|
| 418 | |
---|
| 419 | {if !empty($navbar) } |
---|
| 420 | <div style="clear:both;"> |
---|
| 421 | |
---|
| 422 | <div style="float:left"> |
---|
| 423 | {include file='navigation_bar.tpl'|@get_extent:'navbar'} |
---|
| 424 | </div> |
---|
| 425 | |
---|
| 426 | <div style="float:right;margin-top:10px;">{'display'|@translate} |
---|
| 427 | <a href="{$U_DISPLAY}&display=20">20</a> |
---|
| 428 | · <a href="{$U_DISPLAY}&display=50">50</a> |
---|
| 429 | · <a href="{$U_DISPLAY}&display=100">100</a> |
---|
| 430 | · <a href="{$U_DISPLAY}&display=all">{'all'|@translate}</a> |
---|
[8723] | 431 | {'photos per page'|@translate} |
---|
[8394] | 432 | </div> |
---|
| 433 | </div> |
---|
| 434 | {/if} |
---|
| 435 | |
---|
| 436 | {else} |
---|
[8408] | 437 | <div>{'No photo in the current set.'|@translate}</div> |
---|
[8394] | 438 | {/if} |
---|
| 439 | </fieldset> |
---|
| 440 | |
---|
| 441 | <fieldset id="action"> |
---|
| 442 | |
---|
| 443 | <legend>{'Action'|@translate}</legend> |
---|
[8408] | 444 | <div id="forbidAction"{if count($selection) != 0}style="display:none"{/if}>{'No photo selected, no action possible.'|@translate}</div> |
---|
[8394] | 445 | <div id="permitAction"{if count($selection) == 0}style="display:none"{/if}> |
---|
| 446 | |
---|
| 447 | <select name="selectAction"> |
---|
[8408] | 448 | <option value="-1">{'Choose an action'|@translate}</option> |
---|
[8394] | 449 | <option disabled="disabled">------------------</option> |
---|
| 450 | {if isset($show_delete_form) } |
---|
| 451 | <option value="delete">{'Delete selected photos'|@translate}</option> |
---|
| 452 | {/if} |
---|
[8408] | 453 | <option value="associate">{'Associate to album'|@translate}</option> |
---|
[8394] | 454 | {if !empty($dissociate_options)} |
---|
[8408] | 455 | <option value="dissociate">{'Dissociate from album'|@translate}</option> |
---|
[8394] | 456 | {/if} |
---|
| 457 | <option value="add_tags">{'add tags'|@translate}</option> |
---|
| 458 | {if !empty($DEL_TAG_SELECTION)} |
---|
| 459 | <option value="del_tags">{'remove tags'|@translate}</option> |
---|
| 460 | {/if} |
---|
| 461 | <option value="author">{'Set author'|@translate}</option> |
---|
[8408] | 462 | <option value="title">{'Set title'|@translate}</option> |
---|
[8394] | 463 | <option value="date_creation">{'Set creation date'|@translate}</option> |
---|
| 464 | <option value="level">{'Who can see these photos?'|@translate}</option> |
---|
[8422] | 465 | <option value="metadata">{'synchronize metadata'|@translate}</option> |
---|
[8394] | 466 | {if ($IN_CADDIE)} |
---|
[9124] | 467 | <option value="remove_from_caddie">{'Remove from caddie'|@translate}</option> |
---|
[8394] | 468 | {else} |
---|
[8408] | 469 | <option value="add_to_caddie">{'add to caddie'|@translate}</option> |
---|
[8394] | 470 | {/if} |
---|
| 471 | </select> |
---|
| 472 | |
---|
| 473 | <!-- delete --> |
---|
| 474 | <div id="action_delete" class="bulkAction"> |
---|
| 475 | <p><label><input type="checkbox" name="confirm_deletion" value="1"> {'Are you sure?'|@translate}</label></p> |
---|
| 476 | </div> |
---|
| 477 | |
---|
| 478 | <!-- associate --> |
---|
| 479 | <div id="action_associate" class="bulkAction"> |
---|
| 480 | <select style="width:400px" name="associate" size="1"> |
---|
| 481 | {html_options options=$associate_options } |
---|
| 482 | </select> |
---|
| 483 | </div> |
---|
| 484 | |
---|
| 485 | <!-- dissociate --> |
---|
| 486 | <div id="action_dissociate" class="bulkAction"> |
---|
| 487 | <select style="width:400px" name="dissociate" size="1"> |
---|
| 488 | {if !empty($dissociate_options)}{html_options options=$dissociate_options }{/if} |
---|
| 489 | </select> |
---|
| 490 | </div> |
---|
| 491 | |
---|
| 492 | |
---|
| 493 | <!-- add_tags --> |
---|
| 494 | <div id="action_add_tags" class="bulkAction"> |
---|
| 495 | <select id="tags" name="add_tags"> |
---|
| 496 | </select> |
---|
| 497 | </div> |
---|
| 498 | |
---|
| 499 | <!-- del_tags --> |
---|
| 500 | <div id="action_del_tags" class="bulkAction"> |
---|
| 501 | {$DEL_TAG_SELECTION} |
---|
| 502 | </div> |
---|
| 503 | |
---|
| 504 | <!-- author --> |
---|
| 505 | <div id="action_author" class="bulkAction"> |
---|
[8408] | 506 | <label><input type="checkbox" name="remove_author"> {'remove author'|@translate}</label><br> |
---|
| 507 | {assign var='authorDefaultValue' value='Type here the author name'|@translate} |
---|
[8394] | 508 | <input type="text" class="large" name="author" value="{$authorDefaultValue}" onfocus="this.value=(this.value=='{$authorDefaultValue}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$authorDefaultValue}' : this.value;"> |
---|
| 509 | </div> |
---|
| 510 | |
---|
[8408] | 511 | <!-- title --> |
---|
| 512 | <div id="action_title" class="bulkAction"> |
---|
| 513 | <label><input type="checkbox" name="remove_title"> {'remove title'|@translate}</label><br> |
---|
| 514 | {assign var='titleDefaultValue' value='Type here the title'|@translate} |
---|
| 515 | <input type="text" class="large" name="title" value="{$titleDefaultValue}" onfocus="this.value=(this.value=='{$titleDefaultValue}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$titleDefaultValue}' : this.value;"> |
---|
[8394] | 516 | </div> |
---|
| 517 | |
---|
| 518 | <!-- date_creation --> |
---|
| 519 | <div id="action_date_creation" class="bulkAction"> |
---|
[8408] | 520 | <label><input type="checkbox" name="remove_date_creation"> {'remove creation date'|@translate}</label><br> |
---|
[8394] | 521 | <div id="set_date_creation"> |
---|
| 522 | <select id="date_creation_day" name="date_creation_day"> |
---|
| 523 | <option value="0">--</option> |
---|
| 524 | {section name=day start=1 loop=32} |
---|
| 525 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 526 | {/section} |
---|
| 527 | </select> |
---|
| 528 | <select id="date_creation_month" name="date_creation_month"> |
---|
| 529 | {html_options options=$month_list selected=$DATE_CREATION_MONTH} |
---|
| 530 | </select> |
---|
| 531 | <input id="date_creation_year" |
---|
| 532 | name="date_creation_year" |
---|
| 533 | type="text" |
---|
| 534 | size="4" |
---|
| 535 | maxlength="4" |
---|
| 536 | value="{$DATE_CREATION_YEAR}"> |
---|
| 537 | <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
| 538 | </div> |
---|
| 539 | </div> |
---|
| 540 | |
---|
| 541 | <!-- level --> |
---|
| 542 | <div id="action_level" class="bulkAction"> |
---|
| 543 | <select name="level" size="1"> |
---|
| 544 | {html_options options=$level_options selected=$level_options_selected} |
---|
| 545 | </select> |
---|
| 546 | </div> |
---|
| 547 | |
---|
[8422] | 548 | <!-- metadata --> |
---|
| 549 | <div id="action_metadata" class="bulkAction"> |
---|
| 550 | </div> |
---|
| 551 | |
---|
[8394] | 552 | <p id="applyActionBlock" style="display:none" class="actionButtons"> |
---|
[8407] | 553 | <input id="applyAction" class="submit" type="submit" value="{'Apply action'|@translate}" name="submit"> <span id="applyOnDetails"></span></p> |
---|
[8394] | 554 | |
---|
| 555 | </div> <!-- #permitAction --> |
---|
| 556 | </fieldset> |
---|
| 557 | |
---|
| 558 | </form> |
---|
[9815] | 559 | |
---|
| 560 | </div> <!-- #batchManagerGlobal --> |
---|