1 | |
---|
2 | {include file='include/autosize.inc.tpl'} |
---|
3 | {include file='include/datepicker.inc.tpl'} |
---|
4 | |
---|
5 | <h2>{'Batch management'|@translate}</h2> |
---|
6 | |
---|
7 | <h3>{$CATEGORIES_NAV}</h3> |
---|
8 | |
---|
9 | <p style="text-align:center;"> |
---|
10 | <a href="{$U_GLOBAL_MODE}">{'global mode'|@translate}</a> |
---|
11 | | {'unit mode'|@translate} |
---|
12 | </p> |
---|
13 | |
---|
14 | <form action="{$F_ACTION}" method="POST"> |
---|
15 | <fieldset> |
---|
16 | <legend>{'Display options'|@translate}</legend> |
---|
17 | <p>{'elements per page'|@translate} : |
---|
18 | <a href="{$U_ELEMENTS_PAGE}&display=5">5</a> |
---|
19 | | <a href="{$U_ELEMENTS_PAGE}&display=10">10</a> |
---|
20 | | <a href="{$U_ELEMENTS_PAGE}&display=50">50</a> |
---|
21 | | <a href="{$U_ELEMENTS_PAGE}&display=all">{'all'|@translate}</a> |
---|
22 | </p> |
---|
23 | |
---|
24 | </fieldset> |
---|
25 | |
---|
26 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
27 | |
---|
28 | {if !empty($elements) } |
---|
29 | <div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div> |
---|
30 | {foreach from=$elements item=element} |
---|
31 | <fieldset class="elementEdit"> |
---|
32 | <legend>{$element.LEGEND}</legend> |
---|
33 | |
---|
34 | <a href="{$element.U_EDIT}"><img src="{$element.TN_SRC}" alt="" title="{'Edit all picture informations'|@translate}"></a> |
---|
35 | |
---|
36 | <table> |
---|
37 | |
---|
38 | <tr> |
---|
39 | <td><strong>{'Name'|@translate}</strong></td> |
---|
40 | <td><input type="text" class="large" name="name-{$element.ID}" value="{$element.NAME}"></td> |
---|
41 | </tr> |
---|
42 | |
---|
43 | <tr> |
---|
44 | <td><strong>{'Author'|@translate}</strong></td> |
---|
45 | <td><input type="text" class="large" name="author-{$element.ID}" value="{$element.AUTHOR}"></td> |
---|
46 | </tr> |
---|
47 | |
---|
48 | <tr> |
---|
49 | <td><strong>{'Creation date'|@translate}</strong></td> |
---|
50 | <td> |
---|
51 | <label><input type="radio" name="date_creation_action-{$element.ID}" value="unset"> {'unset'|@translate}</label> |
---|
52 | <label><input type="radio" name="date_creation_action-{$element.ID}" value="set" id="date_creation_action_set-{$element.ID}"> {'set to'|@translate}</label> |
---|
53 | |
---|
54 | <select id="date_creation_day-{$element.ID}" name="date_creation_day-{$element.ID}"> |
---|
55 | <option value="0">--</option> |
---|
56 | {section name=day start=1 loop=32} |
---|
57 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$element.DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
58 | {/section} |
---|
59 | </select> |
---|
60 | <select id="date_creation_month-{$element.ID}" name="date_creation_month-{$element.ID}"> |
---|
61 | {html_options options=$month_list selected=$element.DATE_CREATION_MONTH} |
---|
62 | </select> |
---|
63 | <input id="date_creation_year-{$element.ID}" |
---|
64 | name="date_creation_year-{$element.ID}" |
---|
65 | type="text" |
---|
66 | size="4" |
---|
67 | maxlength="4" |
---|
68 | value="{$element.DATE_CREATION_YEAR}"> |
---|
69 | <input id="date_creation_linked_date-{$element.ID}" name="date_creation_linked_date-{$element.ID}" type="hidden" size="10" disabled="disabled"> |
---|
70 | <script type="text/javascript"> |
---|
71 | 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}"); |
---|
72 | </script> |
---|
73 | </td> |
---|
74 | </tr> |
---|
75 | |
---|
76 | <tr> |
---|
77 | <td><strong>{'Tags'|@translate}</strong></td> |
---|
78 | <td>{$element.TAG_SELECTION}</td> |
---|
79 | </tr> |
---|
80 | |
---|
81 | <tr> |
---|
82 | <td><strong>{'Description'|@translate}</strong></td> |
---|
83 | <td><textarea cols="50" rows="5" name="description-{$element.ID}" id="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td> |
---|
84 | </tr> |
---|
85 | |
---|
86 | </table> |
---|
87 | |
---|
88 | </fieldset> |
---|
89 | {/foreach} |
---|
90 | |
---|
91 | <p> |
---|
92 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}> |
---|
93 | <input class="submit" type="reset" value="{'Reset'|@translate}"> |
---|
94 | </p> |
---|
95 | {/if} |
---|
96 | |
---|
97 | </form> |
---|
98 | |
---|
99 | <script type="text/javascript">// <![CDATA[ |
---|
100 | {literal}$(document).ready(function() { |
---|
101 | $(".elementEdit img").fadeTo("slow", 0.6); // Opacity on page load |
---|
102 | $(".elementEdit img").hover(function(){ |
---|
103 | $(this).fadeTo("slow", 1.0); // Opacity on hover |
---|
104 | },function(){ |
---|
105 | $(this).fadeTo("slow", 0.6); // Opacity on mouseout |
---|
106 | }); |
---|
107 | });{/literal} |
---|
108 | // ]]> |
---|
109 | </script> |
---|