1 | |
---|
2 | {include file='include/autosize.inc.tpl'} |
---|
3 | {include file='include/datepicker.inc.tpl'} |
---|
4 | |
---|
5 | {combine_script id='jquery.fcbkcomplete' load='async' require='jquery' path='themes/default/js/plugins/jquery.fcbkcomplete.js'} |
---|
6 | {footer_script require='jquery.fcbkcomplete'} |
---|
7 | var tag_boxes_selector = ""; |
---|
8 | {foreach from=$elements item=element name=element} |
---|
9 | {if $smarty.foreach.element.first} |
---|
10 | var prefix = ""; |
---|
11 | {else} |
---|
12 | prefix = ", "; |
---|
13 | {/if} |
---|
14 | tag_boxes_selector = tag_boxes_selector + prefix + "#tags-" + {$element.ID}; |
---|
15 | {/foreach} |
---|
16 | {literal} |
---|
17 | jQuery(document).ready(function() { |
---|
18 | $(tag_boxes_selector).fcbkcomplete({ |
---|
19 | json_url: "admin.php?fckb_tags=1", |
---|
20 | cache: false, |
---|
21 | filter_case: false, |
---|
22 | filter_hide: true, |
---|
23 | firstselected: true, |
---|
24 | filter_selected: true, |
---|
25 | maxitems: 100, |
---|
26 | newel: true |
---|
27 | }); |
---|
28 | }); |
---|
29 | {/literal}{/footer_script} |
---|
30 | |
---|
31 | <h2>{'Batch Manager'|@translate}</h2> |
---|
32 | |
---|
33 | <form action="{$F_ACTION}" method="POST"> |
---|
34 | <fieldset> |
---|
35 | <legend>{'Display options'|@translate}</legend> |
---|
36 | <p>{'photos per page'|@translate} : |
---|
37 | <a href="{$U_ELEMENTS_PAGE}&display=5">5</a> |
---|
38 | | <a href="{$U_ELEMENTS_PAGE}&display=10">10</a> |
---|
39 | | <a href="{$U_ELEMENTS_PAGE}&display=50">50</a> |
---|
40 | | <a href="{$U_ELEMENTS_PAGE}&display=all">{'all'|@translate}</a> |
---|
41 | </p> |
---|
42 | |
---|
43 | </fieldset> |
---|
44 | |
---|
45 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
46 | |
---|
47 | {if !empty($elements) } |
---|
48 | <div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div> |
---|
49 | {foreach from=$elements item=element} |
---|
50 | <fieldset class="elementEdit"> |
---|
51 | <legend>{$element.LEGEND}</legend> |
---|
52 | |
---|
53 | <a href="{$element.U_EDIT}"><img src="{$element.TN_SRC}" alt="" title="{'Edit photo information'|@translate}"></a> |
---|
54 | |
---|
55 | <table> |
---|
56 | |
---|
57 | <tr> |
---|
58 | <td><strong>{'Name'|@translate}</strong></td> |
---|
59 | <td><input type="text" class="large" name="name-{$element.ID}" value="{$element.NAME}"></td> |
---|
60 | </tr> |
---|
61 | |
---|
62 | <tr> |
---|
63 | <td><strong>{'Author'|@translate}</strong></td> |
---|
64 | <td><input type="text" class="large" name="author-{$element.ID}" value="{$element.AUTHOR}"></td> |
---|
65 | </tr> |
---|
66 | |
---|
67 | <tr> |
---|
68 | <td><strong>{'Creation date'|@translate}</strong></td> |
---|
69 | <td> |
---|
70 | <label><input type="radio" name="date_creation_action-{$element.ID}" value="unset"> {'unset'|@translate}</label> |
---|
71 | <label><input type="radio" name="date_creation_action-{$element.ID}" value="set" id="date_creation_action_set-{$element.ID}"> {'set to'|@translate}</label> |
---|
72 | |
---|
73 | <select id="date_creation_day-{$element.ID}" name="date_creation_day-{$element.ID}"> |
---|
74 | <option value="0">--</option> |
---|
75 | {section name=day start=1 loop=32} |
---|
76 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$element.DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
77 | {/section} |
---|
78 | </select> |
---|
79 | <select id="date_creation_month-{$element.ID}" name="date_creation_month-{$element.ID}"> |
---|
80 | {html_options options=$month_list selected=$element.DATE_CREATION_MONTH} |
---|
81 | </select> |
---|
82 | <input id="date_creation_year-{$element.ID}" |
---|
83 | name="date_creation_year-{$element.ID}" |
---|
84 | type="text" |
---|
85 | size="4" |
---|
86 | maxlength="4" |
---|
87 | value="{$element.DATE_CREATION_YEAR}"> |
---|
88 | <input id="date_creation_linked_date-{$element.ID}" name="date_creation_linked_date-{$element.ID}" type="hidden" size="10" disabled="disabled"> |
---|
89 | {footer_script} |
---|
90 | pwg_initialization_datepicker("#date_creation_day-{$element.ID}", "#date_creation_month-{$element.ID}", "#date_creation_year-{$element.ID}", "#date_creation_linked_date-{$element.ID}", "#date_creation_action_set-{$element.ID}"); |
---|
91 | {/footer_script} |
---|
92 | </td> |
---|
93 | </tr> |
---|
94 | <tr> |
---|
95 | <td><strong>{'Who can see this photo?'|@translate}</strong></td> |
---|
96 | <td> |
---|
97 | <select name="level-{$element.ID}"> |
---|
98 | {html_options options=$level_options selected=$element.LEVEL} |
---|
99 | </select> |
---|
100 | </td> |
---|
101 | </tr> |
---|
102 | |
---|
103 | <tr> |
---|
104 | <td><strong>{'Tags'|@translate}</strong></td> |
---|
105 | <td> |
---|
106 | |
---|
107 | <select id="tags-{$element.ID}" name="tags-{$element.ID}"> |
---|
108 | {foreach from=$element.TAGS item=tag} |
---|
109 | <option value="{$tag.value}" class="selected">{$tag.key}</option> |
---|
110 | {/foreach} |
---|
111 | </select> |
---|
112 | |
---|
113 | </td> |
---|
114 | </tr> |
---|
115 | |
---|
116 | <tr> |
---|
117 | <td><strong>{'Description'|@translate}</strong></td> |
---|
118 | <td><textarea cols="50" rows="5" name="description-{$element.ID}" id="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td> |
---|
119 | </tr> |
---|
120 | |
---|
121 | </table> |
---|
122 | |
---|
123 | </fieldset> |
---|
124 | {/foreach} |
---|
125 | |
---|
126 | <p> |
---|
127 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"> |
---|
128 | <input class="submit" type="reset" value="{'Reset'|@translate}"> |
---|
129 | </p> |
---|
130 | {/if} |
---|
131 | |
---|
132 | </form> |
---|
133 | |
---|
134 | <script type="text/javascript">// <![CDATA[ |
---|
135 | {literal}$(document).ready(function() { |
---|
136 | $(".elementEdit img").fadeTo("slow", 0.6); // Opacity on page load |
---|
137 | $(".elementEdit img").hover(function(){ |
---|
138 | $(this).fadeTo("slow", 1.0); // Opacity on hover |
---|
139 | },function(){ |
---|
140 | $(this).fadeTo("slow", 0.6); // Opacity on mouseout |
---|
141 | }); |
---|
142 | });{/literal} |
---|
143 | // ]]> |
---|
144 | </script> |
---|