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

Revision 21422, 5.2 KB checked in by mistic100, 6 years ago (diff)

add option too allow/disallow download of categories/collections/specials

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
37jQuery(".showInfo").tipTip({ldelim}
38  delay: 0,
39  fadeIn: 200,
40  fadeOut: 200,
41  maxWidth: '300px',
42  defaultPosition: 'bottom'
43});
44{/footer_script}
45
46<div class="titrePage">
47        <h2>Batch Downloader</h2>
48</div>
49
50<form method="post" action="" class="properties">
51<fieldset>
52  <legend>{'Download permissions'|@translate}</legend>
53 
54  <ul>
55    <li>
56      <label>
57      {if $group_options}
58        <span class="property">{'User groups'|@translate}</span>
59        <select name="groups[]" data-placeholder="{'Everybody'|@translate}" class="chzn-select" multiple="multiple" style="width:370px;">
60          {html_options options=$group_options selected=$batch_download.groups}
61        </select>
62      {else}
63        {'There is no group in this gallery.'|@translate} <a href="admin.php?page=group_list">{'Group management'|@translate}</a>
64      {/if}
65      </label>
66    </li>
67    <li>
68      <label>
69        <span class="property">{'Privacy level'|@translate}</span>
70        <select name="level">
71          {html_options options=$level_options selected=$batch_download.level}
72        </select>
73      </label>
74    </li>
75    <li>
76      <span class="property">{'What can be downloaded?'|@translate}</span>
77      <label><input type="checkbox" name="what[categories]" {if in_array('categories',$batch_download.what)}checked="checked"{/if}/> {'Albums'|@translate}</label>
78      {if $USER_COLLEC_LOADED}<label><input type="checkbox" name="what[collections]" {if in_array('collections',$batch_download.what)}checked="checked"{/if}/> {'Collections'|@translate}</label>{/if}
79      <label><input type="checkbox" name="what[specials]" {if in_array('specials',$batch_download.what)}checked="checked"{/if}/> {'Specials'|@translate}</label>
80          <a class="showInfo" title="{'Most visited'|@translate}, {'Random photos'|@translate}, {'Best rated'|@translate}...">i</a>
81    </li>
82    <li>
83      <i>{'Warning: Only registered users can use Batch Downloader.'|@translate}</i>
84    </li>
85  </ul>
86</fieldset>
87
88<fieldset>
89  <legend>{'Archives'|@translate}</legend>
90 
91  <ul>
92    <li style="display:none;">
93      <label>
94        <span class="property">{'Maximum photo size'|@translate}</span>
95        <select name="photo_size">
96          {html_options options=$sizes_options selected=$batch_download.photo_size}
97        </select>
98        NOT IMPLEMENTED
99      </label>
100    </li>
101    <li>
102      <label>
103        <span class="property">{'Delete downloads after'|@translate}</span>
104        <input type="text" name="archive_timeout" value="{$batch_download.archive_timeout}" size="3"> {'hours'|@translate}
105      </label>
106    </li>
107    <li>
108      <label>
109        <span class="property">{'Maximum number of photos per download set'|@translate}</span>
110        <div id="max_elements"></div>
111        <input type="text" name="max_elements" value="{$batch_download.max_elements}" size="5">
112      </label>
113    </li>
114    <li>
115      <label>
116        <span class="property">{'Maximum size of each archive (in Megabytes)'|@translate}</span>
117        <div id="max_size"></div>
118        <input type="text" name="max_size" value="{$batch_download.max_size}" size="5">
119      </label>
120    </li>
121    <li>
122      <label>
123        <span class="property">{'Archive prefix'|@translate}</span>
124        <input type="text" name="archive_prefix" value="{$batch_download.archive_prefix}">
125      </label>
126    </li>
127  {if $use_ziparchive}
128    <li>
129      <label>
130        <span class="property">{'Archive comment'|@translate} :</span><br>
131        <textarea name="archive_comment" rows="5" style="width:450px;">{$batch_download_comment}</textarea>
132      </label>
133      <br>
134      <i>{'Warning: ZipArchive doesn\'t accept special characters like accentuated ones, angle quotes (») and non-latin alphabets.'|@translate}</i>
135    </li>
136  {else}
137    <input type="hidden" name="archive_comment" value="">
138  {/if}
139  </ul>
140</fieldset>
141
142<p class="formButtons"><input type="submit" name="save_config" value="{'Save Settings'|@translate}"></p> 
143
144<fieldset>
145  <legend>{'Environment'|@translate}</legend>
146 
147  <b>PHP</b> {$PHP_VERSION}<br>
148{if $use_ziparchive}
149  <b>ZipArchive</b> {$PHP_VERSION}
150{else}
151  <b>PclZip</b> 2.8.2
152{/if}
153</fieldset>
154 
155</form>
Note: See TracBrowser for help on using the repository browser.