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