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