source: extensions/BatchDownloader/admin/template/config.tpl @ 17880

Revision 17880, 4.3 KB checked in by mistic100, 7 years ago (diff)
  • now archive comment is well added
  • add PclZip library for servers without ZipArchive
Line 
1{combine_css path=$BATCH_DOWNLOAD_PATH|@cat:"admin/template/style.css"}
2
3{combine_script id='jquery.ui.slider' require='jquery.ui' load='footer' path='themes/default/js/ui/jquery.ui.slider.js'}
4{combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"}
5{combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'}
6{combine_css path="themes/default/js/plugins/chosen.css"}
7
8{footer_script}
9jQuery(".chzn-select").chosen();
10
11$("#max_size").slider({ldelim}
12  range: "min",
13  value: {$batch_download.max_size},
14  min: 10,
15  max: {$batch_download.max_size_value},
16  slide: function(event, ui) {ldelim}
17    $("input[name='max_size']").val(ui.value);
18  }
19});
20$("input[name='max_size']").change(function() {ldelim}
21  $("#max_size").slider("value", $(this).val());
22});
23
24$("#max_elements").slider({ldelim}
25  range: "min",
26  value: {$batch_download.max_elements},
27  min: 10,
28  max: {$batch_download.max_elements_value},
29  slide: function(event, ui) {ldelim}
30    $("input[name='max_elements']").val(ui.value);
31  }
32});
33$("input[name='max_elements']").change(function() {ldelim}
34  $("#max_elements").slider("value", $(this).val());
35});
36{/footer_script}
37
38<div class="titrePage">
39        <h2>Batch Downloader</h2>
40</div>
41
42<form method="post" action="" class="properties">
43<fieldset>
44  <legend>{'Download permissions'|@translate}</legend>
45 
46  <ul>
47    <li>
48      <label>
49      {if $group_options}
50        <span class="property">{'User groups'|@translate}</span>
51        <select name="groups[]" data-placeholder="{'Everybody'|@translate}" class="chzn-select" multiple="multiple" style="width:370px;">
52          {html_options options=$group_options selected=$batch_download.groups}
53        </select>
54      {else}
55        {'There is no group in this gallery.'|@translate} <a href="admin.php?page=group_list">{'Group management'|@translate}</a>
56      {/if}
57      </label>
58    </li>
59    <li>
60      <label>
61        <span class="property">{'Privacy level'|@translate}</span>
62        <select name="level">
63          {html_options options=$level_options selected=$batch_download.level}
64        </select>
65      </label>
66    </li>
67  </ul>
68</fieldset>
69
70<fieldset>
71  <legend>{'Archives'|@translate}</legend>
72 
73  <ul>
74    <li style="display:none;">
75      <label>
76        <span class="property">{'Maximum photo size'|@translate}</span>
77        <select name="photo_size">
78          {html_options options=$sizes_options selected=$batch_download.photo_size}
79        </select>
80        NOT IMPLEMENTED
81      </label>
82    </li>
83    <li>
84      <label>
85        <span class="property">{'Delete downloads after'|@translate}</span>
86        <input type="text" name="archive_timeout" value="{$batch_download.archive_timeout}" size="3"> {'hours'|@translate}
87      </label>
88    </li>
89    <li>
90      <label>
91        <span class="property">{'Maximum number of photos per download set'|@translate}</span>
92        <div id="max_elements"></div>
93        <input type="text" name="max_elements" value="{$batch_download.max_elements}" size="5">
94      </label>
95    </li>
96    <li>
97      <label>
98        <span class="property">{'Maximum size of each archive (in Megabytes)'|@translate}</span>
99        <div id="max_size"></div>
100        <input type="text" name="max_size" value="{$batch_download.max_size}" size="5">
101      </label>
102    </li>
103    <li>
104      <label>
105        <span class="property">{'Archive prefix'|@translate}</span>
106        <input type="text" name="archive_prefix" value="{$batch_download.archive_prefix}">
107      </label>
108    </li>
109  {if $use_ziparchive}
110    <li>
111      <label>
112        <span class="property">{'Archive comment'|@translate} :</span><br>
113        <textarea name="archive_comment" rows="5" style="width:450px;">{$batch_download_comment}</textarea>
114      </label>
115      <br>
116      <i>{'Warning: ZipArchive doesn\'t accept special characters like accentuated ones, angle quotes (») and non-latin alphabets.'|@translate}</i>
117    </li>
118  {else}
119    <input type="hidden" name="archive_comment" value="">
120  {/if}
121  </ul>
122</fieldset>
123
124<p class="formButtons"><input type="submit" name="save_config" value="{'Save Settings'|@translate}"></p> 
125
126<fieldset>
127  <legend>{'Environment'|@translate}</legend>
128 
129  <b>PHP</b> {$PHP_VERSION}<br>
130{if $use_ziparchive}
131  <b>ZipArchive</b> {$PHP_VERSION}
132{else}
133  <b>PclZip</b> 2.8.2
134{/if}
135</fieldset>
136 
137</form>
Note: See TracBrowser for help on using the repository browser.