source: trunk/admin/themes/default/template/batch_manager_global.tpl @ 10422

Last change on this file since 10422 was 10422, checked in by plg, 13 years ago

merge r10421 from branch 2.2 to trunk

bug 2251: auto-complete was not working on second tag if cache=true.

File size: 23.7 KB
Line 
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{combine_script id='jquery.progressBar' load='footer' path='plugins/regenerateThumbnails/js/jquery.progressbar.min.js'}
10{combine_script id='jquery.ajaxmanager' load='footer' path='themes/default/js/plugins/jquery.ajaxmanager.js'}
11
12{footer_script require='jquery.fcbkcomplete'}{literal}
13jQuery(document).ready(function() {
14  jQuery("#tags").fcbkcomplete({
15    json_url: "admin.php?fckb_tags=1",
16    cache: false,
17    filter_case: false,
18    filter_hide: true,
19    firstselected: true,
20    filter_selected: true,
21    maxitems: 100,
22    newel: true
23  });
24});
25{/literal}{/footer_script}
26
27{footer_script}
28var nb_thumbs_page = {$nb_thumbs_page};
29var nb_thumbs_set = {$nb_thumbs_set};
30var applyOnDetails_pattern = "{'on the %d selected photos'|@translate}";
31var elements = new Array();
32var all_elements = [{','|@implode:$all_elements}];
33
34var selectedMessage_pattern = "{'%d of %d photos selected'|@translate}";
35var selectedMessage_none = "{'No photo selected, %d photos in current set'|@translate}";
36var selectedMessage_all = "{'All %d photos are selected'|@translate}";
37var regenerateThumbnailsMessage = "{'Thumbnails generation in progress...'|@translate}";
38{literal}
39var queuedManagerThumbnails = $.manageAjax.create('queued', {
40        queue: true, 
41        cacheResponse: false,
42        maxRequests: 3
43});
44
45function str_repeat(i, m) {
46        for (var o = []; m > 0; o[--m] = i);
47        return o.join('');
48}
49
50function sprintf() {
51        var i = 0, a, f = arguments[i++], o = [], m, p, c, x, s = '';
52        while (f) {
53                if (m = /^[^\x25]+/.exec(f)) {
54                        o.push(m[0]);
55                }
56                else if (m = /^\x25{2}/.exec(f)) {
57                        o.push('%');
58                }
59                else if (m = /^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(f)) {
60                        if (((a = arguments[m[1] || i++]) == null) || (a == undefined)) {
61                                throw('Too few arguments.');
62                        }
63                        if (/[^s]/.test(m[7]) && (typeof(a) != 'number')) {
64                                throw('Expecting number but found ' + typeof(a));
65                        }
66                        switch (m[7]) {
67                                case 'b': a = a.toString(2); break;
68                                case 'c': a = String.fromCharCode(a); break;
69                                case 'd': a = parseInt(a); break;
70                                case 'e': a = m[6] ? a.toExponential(m[6]) : a.toExponential(); break;
71                                case 'f': a = m[6] ? parseFloat(a).toFixed(m[6]) : parseFloat(a); break;
72                                case 'o': a = a.toString(8); break;
73                                case 's': a = ((a = String(a)) && m[6] ? a.substring(0, m[6]) : a); break;
74                                case 'u': a = Math.abs(a); break;
75                                case 'x': a = a.toString(16); break;
76                                case 'X': a = a.toString(16).toUpperCase(); break;
77                        }
78                        a = (/[def]/.test(m[7]) && m[2] && a >= 0 ? '+'+ a : a);
79                        c = m[3] ? m[3] == '0' ? '0' : m[3].charAt(1) : ' ';
80                        x = m[5] - String(a).length - s.length;
81                        p = m[5] ? str_repeat(c, x) : '';
82                        o.push(s + (m[4] ? a + p : p + a));
83                }
84                else {
85                        throw('Huh ?!');
86                }
87                f = f.substring(m[0].length);
88        }
89        return o.join('');
90}
91
92function progress(val, max, success) {
93  jQuery('#progressBar').progressBar(val, {
94    max: max,
95    textFormat: 'fraction',
96    boxImage: 'themes/default/images/progressbar.gif',
97    barImage: 'themes/default/images/progressbg_orange.gif'
98  });
99  type = success ? 'regenerateSuccess': 'regenerateError'
100  s = jQuery('[name="'+type+'"]').val();
101  jQuery('[name="'+type+'"]').val(++s);
102
103  if (val == max)
104    jQuery('#applyAction').click();
105}
106
107$(document).ready(function() {
108  function checkPermitAction() {
109    var nbSelected = 0;
110    if ($("input[name=setSelected]").is(':checked')) {
111      nbSelected = nb_thumbs_set;
112    }
113    else {
114      $(".thumbnails input[type=checkbox]").each(function() {
115         if ($(this).is(':checked')) {
116           nbSelected++;
117         }
118      });
119    }
120
121    if (nbSelected == 0) {
122      $("#permitAction").hide();
123      $("#forbidAction").show();
124    }
125    else {
126      $("#permitAction").show();
127      $("#forbidAction").hide();
128    }
129
130    $("#applyOnDetails").text(
131      sprintf(
132        applyOnDetails_pattern,
133        nbSelected
134      )
135    );
136
137    // display the number of currently selected photos in the "Selection" fieldset
138    if (nbSelected == 0) {
139      $("#selectedMessage").text(
140        sprintf(
141          selectedMessage_none,
142          nb_thumbs_set
143        )
144      );
145    }
146    else if (nbSelected == nb_thumbs_set) {
147      $("#selectedMessage").text(
148        sprintf(
149          selectedMessage_all,
150          nb_thumbs_set
151        )
152      );
153    }
154    else {
155      $("#selectedMessage").text(
156        sprintf(
157          selectedMessage_pattern,
158          nbSelected,
159          nb_thumbs_set
160        )
161      );
162    }
163  }
164
165  $('img.thumbnail').tipTip({
166    'delay' : 0,
167    'fadeIn' : 200,
168    'fadeOut' : 200
169  });
170
171  $("[id^=action_]").hide();
172
173  $("select[name=selectAction]").change(function () {
174    $("[id^=action_]").hide();
175    $("#action_"+$(this).attr("value")).show();
176
177    if ($(this).val() != -1) {
178      $("#applyActionBlock").show();
179    }
180    else {
181      $("#applyActionBlock").hide();
182    }
183  });
184
185  $(".wrap1 label").click(function () {
186    $("input[name=setSelected]").attr('checked', false);
187
188    var wrap2 = $(this).children(".wrap2");
189    var checkbox = $(this).children("input[type=checkbox]");
190
191    if ($(checkbox).is(':checked')) {
192      $(wrap2).addClass("thumbSelected");
193    }
194    else {
195      $(wrap2).removeClass('thumbSelected');
196    }
197
198    checkPermitAction();
199  });
200
201  $("#selectAll").click(function () {
202    $("input[name=setSelected]").attr('checked', false);
203    selectPageThumbnails();
204    checkPermitAction();
205    return false;
206  });
207
208  function selectPageThumbnails() {
209    $(".thumbnails label").each(function() {
210      var wrap2 = $(this).children(".wrap2");
211      var checkbox = $(this).children("input[type=checkbox]");
212
213      $(checkbox).attr('checked', true);
214      $(wrap2).addClass("thumbSelected");
215    });
216  }
217
218  $("#selectNone").click(function () {
219    $("input[name=setSelected]").attr('checked', false);
220
221    $(".thumbnails label").each(function() {
222      var wrap2 = $(this).children(".wrap2");
223      var checkbox = $(this).children("input[type=checkbox]");
224
225      $(checkbox).attr('checked', false);
226      $(wrap2).removeClass("thumbSelected");
227    });
228    checkPermitAction();
229    return false;
230  });
231
232  $("#selectInvert").click(function () {
233    $("input[name=setSelected]").attr('checked', false);
234
235    $(".thumbnails label").each(function() {
236      var wrap2 = $(this).children(".wrap2");
237      var checkbox = $(this).children("input[type=checkbox]");
238
239      $(checkbox).attr('checked', !$(checkbox).is(':checked'));
240
241      if ($(checkbox).is(':checked')) {
242        $(wrap2).addClass("thumbSelected");
243      }
244      else {
245        $(wrap2).removeClass('thumbSelected');
246      }
247    });
248    checkPermitAction();
249    return false;
250  });
251
252  $("#selectSet").click(function () {
253    selectPageThumbnails();
254    $("input[name=setSelected]").attr('checked', true);
255    checkPermitAction();
256    return false;
257  });
258
259  $("input[name=remove_author]").click(function () {
260    if ($(this).is(':checked')) {
261      $("input[name=author]").hide();
262    }
263    else {
264      $("input[name=author]").show();
265    }
266  });
267
268  $("input[name=remove_title]").click(function () {
269    if ($(this).is(':checked')) {
270      $("input[name=title]").hide();
271    }
272    else {
273      $("input[name=title]").show();
274    }
275  });
276
277  $("input[name=remove_date_creation]").click(function () {
278    if ($(this).is(':checked')) {
279      $("#set_date_creation").hide();
280    }
281    else {
282      $("#set_date_creation").show();
283    }
284  });
285
286  $(".removeFilter").click(function () {
287    var filter = $(this).parent('li').attr("id");
288    filter_disable(filter);
289
290    return false;
291  });
292
293  function filter_enable(filter) {
294    /* show the filter*/
295    $("#"+filter).show();
296
297    /* check the checkbox to declare we use this filter */
298    $("input[type=checkbox][name="+filter+"_use]").attr("checked", true);
299
300    /* forbid to select this filter in the addFilter list */
301    $("#addFilter").children("option[value="+filter+"]").attr("disabled", "disabled");
302  }
303
304  $("#addFilter").change(function () {
305    var filter = $(this).attr("value");
306    filter_enable(filter);
307    $(this).attr("value", -1);
308  });
309
310  function filter_disable(filter) {
311    /* hide the filter line */
312    $("#"+filter).hide();
313
314    /* uncheck the checkbox to declare we do not use this filter */
315    $("input[name="+filter+"_use]").removeAttr("checked");
316
317    /* give the possibility to show it again */
318    $("#addFilter").children("option[value="+filter+"]").removeAttr("disabled");
319  }
320
321  $("#removeFilters").click(function() {
322    $("#filterList li").each(function() {
323      var filter = $(this).attr("id");
324      filter_disable(filter);
325    });
326    return false;
327  });
328
329  jQuery('#applyAction').click(function() {
330    if (jQuery('[name="selectAction"]').val() == 'regenerateThumbnails') {
331      if (elements.length != 0)
332        return true;
333
334      if (jQuery('input[name="setSelected"]').attr('checked'))
335        elements = all_elements;
336      else
337        jQuery('input[name="selection[]"]').each(function() {
338          if (jQuery(this).attr('checked')) {
339            elements.push(jQuery(this).val());
340          }
341        });
342
343      maxwidth = jQuery('input[name="thumb_maxwidth"]').val();
344      maxheight = jQuery('input[name="thumb_maxheight"]').val();
345      progressBar_max = elements.length;
346      todo = 0;
347
348      jQuery('#thumb_config').hide();
349      jQuery('#applyActionBlock').hide();
350      jQuery('select[name="selectAction"]').hide();
351      jQuery('#regenerationMsg').show();
352      jQuery('#regenerationText').html(regenerateThumbnailsMessage);
353      jQuery('#progressBar').progressBar(0, {
354        max: progressBar_max,
355        textFormat: 'fraction',
356        boxImage: 'themes/default/images/progressbar.gif',
357        barImage: 'themes/default/images/progressbg_orange.gif'
358      });
359
360      for (i=0;i<elements.length;i++) {
361        queuedManagerThumbnails.add({
362          type: 'GET',
363          url: 'ws.php',
364          data: {
365            method: 'pwg.images.resize',
366            type: 'thumbnail',
367            maxwidth: maxwidth,
368            maxheight: maxheight,
369            image_id: elements[i],
370            format: 'json'
371          },
372          dataType: 'json',
373          success: ( function(data) { progress(++todo, progressBar_max, data['result']) }),
374          error: ( function(data) { progress(++todo, progressBar_max, false) })
375        });
376      }
377      return false;
378    }
379  });
380
381  checkPermitAction()
382});
383
384jQuery(window).load(function() {
385  var max_dim = 20;
386  $(".thumbnails img").each(function () {
387    if ($(this).height() > (max_dim-20))
388      max_dim = $(this).height() + 20;
389    if ($(this).width() > (max_dim-20))
390      max_dim = $(this).width() + 20;
391    $("ul.thumbnails span, ul.thumbnails label").css('width', max_dim+'px').css('height', max_dim+'px');
392  });
393});
394{/literal}{/footer_script}
395
396<div id="batchManagerGlobal">
397
398<h2>{'Batch Manager'|@translate}</h2>
399
400  <form action="{$F_ACTION}" method="post">
401
402  <fieldset>
403    <legend>{'Filter'|@translate}</legend>
404
405    <ul id="filterList">
406      <li id="filter_prefilter" {if !isset($filter.prefilter)}style="display:none"{/if}>
407        <a href="#" class="removeFilter" title="{'remove this filter'|@translate}"><span>[x]</span></a>
408        <input type="checkbox" name="filter_prefilter_use" class="useFilterCheckbox" {if isset($filter.prefilter)}checked="checked"{/if}>
409        {'predefined filter'|@translate}
410        <select name="filter_prefilter">
411          {foreach from=$prefilters item=prefilter}
412          <option value="{$prefilter.ID}" {if $filter.prefilter eq $prefilter.ID}selected="selected"{/if}>{$prefilter.NAME}</option>
413          {/foreach}
414        </select>
415      </li>
416      <li id="filter_category" {if !isset($filter.category)}style="display:none"{/if}>
417        <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
418        <input type="checkbox" name="filter_category_use" class="useFilterCheckbox" {if isset($filter.category)}checked="checked"{/if}>
419        {'album'|@translate}
420        <select style="width:400px" name="filter_category" size="1">
421          {html_options options=$filter_category_options selected=$filter_category_options_selected}
422        </select>
423        <label><input type="checkbox" name="filter_category_recursive" {if isset($filter.category_recursive)}checked="checked"{/if}> {'include child albums'|@translate}</label>
424      </li>
425      <li id="filter_level" {if !isset($filter.level)}style="display:none"{/if}>
426        <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
427        <input type="checkbox" name="filter_level_use" class="useFilterCheckbox" {if isset($filter.level)}checked="checked"{/if}>
428        {'Who can see these photos?'|@translate}
429        <select name="filter_level" size="1">
430          {html_options options=$filter_level_options selected=$filter_level_options_selected}
431        </select>
432      </li>
433    </ul>
434
435    <p class="actionButtons" style="">
436      <select id="addFilter">
437        <option value="-1">{'Add a filter'|@translate}</option>
438        <option disabled="disabled">------------------</option>
439        <option value="filter_prefilter">{'predefined filter'|@translate}</option>
440        <option value="filter_category">{'album'|@translate}</option>
441        <option value="filter_level">{'Who can see these photos?'|@translate}</option>
442      </select>
443<!--      <input id="removeFilters" class="submit" type="submit" value="Remove all filters" name="removeFilters"> -->
444      <a id="removeFilters" href="">{'Remove all filters'|@translate}</a>
445    </p>
446
447    <p class="actionButtons" id="applyFilterBlock">
448      <input id="applyFilter" class="submit" type="submit" value="{'Refresh photo set'|@translate}" name="submitFilter">
449    </p>
450
451  </fieldset>
452
453  <fieldset>
454
455    <legend>{'Selection'|@translate}</legend>
456
457  {if !empty($thumbnails)}
458  <p id="checkActions">
459    {'Select:'|@translate}
460{if $nb_thumbs_set > $nb_thumbs_page}
461    <a href="#" id="selectAll">{'The whole page'|@translate}</a>,
462    <a href="#" id="selectSet">{'The whole set'|@translate}</a>,
463{else}
464    <a href="#" id="selectAll">{'All'|@translate}</a>,
465{/if}
466    <a href="#" id="selectNone">{'None'|@translate}</a>,
467    <a href="#" id="selectInvert">{'Invert'|@translate}</a>
468
469    <span id="selectedMessage"></span>
470
471    <input type="checkbox" name="setSelected" style="display:none" {if count($selection) == $nb_thumbs_set}checked="checked"{/if}>
472  </p>
473
474    <ul class="thumbnails">
475      {foreach from=$thumbnails item=thumbnail}
476        {if in_array($thumbnail.ID, $selection)}
477          {assign var='isSelected' value=true}
478        {else}
479          {assign var='isSelected' value=false}
480        {/if}
481
482      <li><span class="wrap1">
483          <label>
484            <span class="wrap2{if $isSelected} thumbSelected{/if}">
485        {if $thumbnail.LEVEL > 0}
486        <em class="levelIndicatorB">{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}</em>
487        <em class="levelIndicatorF" title="{'Who can see these photos?'|@translate} : ">{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}</em>
488        {/if}
489            <span>
490              <img src="{$thumbnail.TN_SRC}"
491                 alt="{$thumbnail.FILE}"
492                 title="{$thumbnail.TITLE|@escape:'html'}"
493                 class="thumbnail">
494            </span></span>
495            <input type="checkbox" name="selection[]" value="{$thumbnail.ID}" {if $isSelected}checked="checked"{/if}>
496          </label>
497          </span>
498      </li>
499      {/foreach}
500    </ul>
501
502  {if !empty($navbar) }
503  <div style="clear:both;">
504
505    <div style="float:left">
506    {include file='navigation_bar.tpl'|@get_extent:'navbar'}
507    </div>
508
509    <div style="float:right;margin-top:10px;">{'display'|@translate}
510      <a href="{$U_DISPLAY}&amp;display=20">20</a>
511      &middot; <a href="{$U_DISPLAY}&amp;display=50">50</a>
512      &middot; <a href="{$U_DISPLAY}&amp;display=100">100</a>
513      &middot; <a href="{$U_DISPLAY}&amp;display=all">{'all'|@translate}</a>
514      {'photos per page'|@translate}
515    </div>
516  </div>
517  {/if}
518
519  {else}
520  <div>{'No photo in the current set.'|@translate}</div>
521  {/if}
522  </fieldset>
523
524  <fieldset id="action">
525
526    <legend>{'Action'|@translate}</legend>
527      <div id="forbidAction"{if count($selection) != 0}style="display:none"{/if}>{'No photo selected, no action possible.'|@translate}</div>
528      <div id="permitAction"{if count($selection) == 0}style="display:none"{/if}>
529
530    <select name="selectAction">
531      <option value="-1">{'Choose an action'|@translate}</option>
532      <option disabled="disabled">------------------</option>
533  {if isset($show_delete_form) }
534      <option value="delete">{'Delete selected photos'|@translate}</option>
535  {/if}
536      <option value="associate">{'Associate to album'|@translate}</option>
537  {if !empty($dissociate_options)}
538      <option value="dissociate">{'Dissociate from album'|@translate}</option>
539  {/if}
540      <option value="add_tags">{'add tags'|@translate}</option>
541  {if !empty($DEL_TAG_SELECTION)}
542      <option value="del_tags">{'remove tags'|@translate}</option>
543  {/if}
544      <option value="author">{'Set author'|@translate}</option>
545      <option value="title">{'Set title'|@translate}</option>
546      <option value="date_creation">{'Set creation date'|@translate}</option>
547      <option value="level">{'Who can see these photos?'|@translate}</option>
548      <option value="metadata">{'synchronize metadata'|@translate}</option>
549  {if ($IN_CADDIE)}
550      <option value="remove_from_caddie">{'Remove from caddie'|@translate}</option>
551  {else}
552      <option value="add_to_caddie">{'add to caddie'|@translate}</option>
553  {/if}
554      <option value="regenerateThumbnails">{'Regenerate Thumbnails'|@translate}</option>
555  {if !empty($element_set_global_plugins_actions)}
556    {foreach from=$element_set_global_plugins_actions item=action}
557      <option value="{$action.ID}">{$action.NAME}</option>
558    {/foreach}
559  {/if}
560    </select>
561
562    <!-- delete -->
563    <div id="action_delete" class="bulkAction">
564    <p><label><input type="checkbox" name="confirm_deletion" value="1"> {'Are you sure?'|@translate}</label></p>
565    </div>
566
567    <!-- associate -->
568    <div id="action_associate" class="bulkAction">
569          <select style="width:400px" name="associate" size="1">
570            {html_options options=$associate_options }
571         </select>
572    </div>
573
574    <!-- dissociate -->
575    <div id="action_dissociate" class="bulkAction">
576          <select style="width:400px" name="dissociate" size="1">
577            {if !empty($dissociate_options)}{html_options options=$dissociate_options }{/if}
578          </select>
579    </div>
580
581
582    <!-- add_tags -->
583    <div id="action_add_tags" class="bulkAction">
584<select id="tags" name="add_tags">
585</select>
586    </div>
587
588    <!-- del_tags -->
589    <div id="action_del_tags" class="bulkAction">
590{$DEL_TAG_SELECTION}
591    </div>
592
593    <!-- author -->
594    <div id="action_author" class="bulkAction">
595    <label><input type="checkbox" name="remove_author"> {'remove author'|@translate}</label><br>
596    {assign var='authorDefaultValue' value='Type here the author name'|@translate}
597<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;">
598    </div>   
599
600    <!-- title -->
601    <div id="action_title" class="bulkAction">
602    <label><input type="checkbox" name="remove_title"> {'remove title'|@translate}</label><br>
603    {assign var='titleDefaultValue' value='Type here the title'|@translate}
604<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;">
605    </div>
606
607    <!-- date_creation -->
608    <div id="action_date_creation" class="bulkAction">
609      <label><input type="checkbox" name="remove_date_creation"> {'remove creation date'|@translate}</label><br>
610      <div id="set_date_creation">
611          <select id="date_creation_day" name="date_creation_day">
612             <option value="0">--</option>
613            {section name=day start=1 loop=32}
614              <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option>
615            {/section}
616          </select>
617          <select id="date_creation_month" name="date_creation_month">
618            {html_options options=$month_list selected=$DATE_CREATION_MONTH}
619          </select>
620          <input id="date_creation_year"
621                 name="date_creation_year"
622                 type="text"
623                 size="4"
624                 maxlength="4"
625                 value="{$DATE_CREATION_YEAR}">
626          <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled">
627      </div>
628    </div>
629
630    <!-- level -->
631    <div id="action_level" class="bulkAction">
632        <select name="level" size="1">
633          {html_options options=$level_options selected=$level_options_selected}
634        </select>
635    </div>
636
637    <!-- metadata -->
638    <div id="action_metadata" class="bulkAction">
639    </div>
640
641    <!-- regenerate thumbnails -->
642    <div id="action_regenerateThumbnails" class="bulkAction">
643      <table style="margin-left:20px;" id="thumb_config">
644        <tr>
645          <th>{'Maximum Width'|@translate}</th>
646          <td><input type="text" name="thumb_maxwidth" value="{$upload_form_settings.thumb_maxwidth}" size="4" maxlength="4"> {'pixels'|@translate}</td>
647        </tr>
648        <tr>
649          <th>{'Maximum Height'|@translate}</th>
650          <td><input type="text" name="thumb_maxheight" value="{$upload_form_settings.thumb_maxheight}" size="4" maxlength="4"> {'pixels'|@translate}</td>
651        </tr>
652        <tr>
653          <th>{'Image Quality'|@translate}</th>
654          <td><input type="text" name="thumb_quality" value="{$upload_form_settings.thumb_quality}" size="3" maxlength="3"> %</td>
655        </tr>
656      </table>
657    </div>
658
659    <!-- progress bar -->
660    <div id="regenerationMsg" style="display:none;">
661      <p id="regenerationText" style="margin-bottom:10px;"></p>
662      <span class="progressBar" id="progressBar"></span>
663      <input type="hidden" name="regenerateSuccess" value="0">
664      <input type="hidden" name="regenerateError" value="0">
665    </div>
666
667    <!-- plugins -->
668{if !empty($element_set_global_plugins_actions)}
669  {foreach from=$element_set_global_plugins_actions item=action}
670    <div id="action_{$action.ID}" class="bulkAction">
671    {if !empty($action.CONTENT)}{$action.CONTENT}{/if}
672    </div>
673  {/foreach}
674{/if}
675
676    <p id="applyActionBlock" style="display:none" class="actionButtons">
677      <input id="applyAction" class="submit" type="submit" value="{'Apply action'|@translate}" name="submit"> <span id="applyOnDetails"></span></p>
678
679    </div> <!-- #permitAction -->
680  </fieldset>
681
682  </form>
683
684</div> <!-- #batchManagerGlobal -->
Note: See TracBrowser for help on using the repository browser.