1 | {* $Id: element_set_unit.tpl 2249 2008-03-05 01:50:08Z rvelices $ *} |
---|
2 | |
---|
3 | <h2>{'Batch management'|@translate}</h2> |
---|
4 | |
---|
5 | <h3>{$CATEGORIES_NAV}</h3> |
---|
6 | |
---|
7 | <p style="text-align:center;"> |
---|
8 | <a href="{$U_GLOBAL_MODE}">{'global mode'|@translate}</a> |
---|
9 | | {'unit mode'|@translate} |
---|
10 | </p> |
---|
11 | |
---|
12 | <form action="{$F_ACTION}" method="POST"> |
---|
13 | <fieldset> |
---|
14 | <legend>{'Display options'|@translate}</legend> |
---|
15 | <p>{'elements per page'|@translate} : |
---|
16 | <a href="{$U_ELEMENTS_PAGE}&display=5">5</a> |
---|
17 | | <a href="{$U_ELEMENTS_PAGE}&display=10">10</a> |
---|
18 | | <a href="{$U_ELEMENTS_PAGE}&display=50">50</a> |
---|
19 | | <a href="{$U_ELEMENTS_PAGE}&display=all">{'all'|@translate}</a> |
---|
20 | </p> |
---|
21 | |
---|
22 | </fieldset> |
---|
23 | |
---|
24 | {if !empty($NAV_BAR) } |
---|
25 | <div class="navigationBar">{$NAV_BAR}</div> |
---|
26 | {/if} |
---|
27 | |
---|
28 | {if !empty($elements) } |
---|
29 | <input type="hidden" name="element_ids" value="{$ELEMENT_IDS}" /> |
---|
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" 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" 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 onmousedown="document.getElementById('date_creation_action_set-{$element.ID}').checked = true;" name="date_creation_day-{$element.ID}"> |
---|
55 | <option value="0">--</option> |
---|
56 | {section name=day start=1 loop=31} |
---|
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 onmousedown="document.getElementById('date_creation_action_set-{$element.ID}').checked = true;" name="date_creation_month-{$element.ID}"> |
---|
61 | {html_options options=$month_list selected=$element.DATE_CREATION_MONTH} |
---|
62 | </select> |
---|
63 | <input onmousedown="document.getElementById('date_creation_action_set-{$element.ID}').checked = true;" |
---|
64 | name="date_creation_year-{$element.ID}" |
---|
65 | type="text" |
---|
66 | size="4" |
---|
67 | maxlength="4" |
---|
68 | value="{$element.DATE_CREATION_YEAR}" /> |
---|
69 | </td> |
---|
70 | </tr> |
---|
71 | |
---|
72 | <tr> |
---|
73 | <td><strong>{'Tags'|@translate}</strong></td> |
---|
74 | <td>{$element.TAG_SELECTION}</td> |
---|
75 | </tr> |
---|
76 | |
---|
77 | <tr> |
---|
78 | <td><strong>{'Description'|@translate}</strong></td> |
---|
79 | <td><textarea name="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td> |
---|
80 | </tr> |
---|
81 | |
---|
82 | </table> |
---|
83 | |
---|
84 | </fieldset> |
---|
85 | {/foreach} |
---|
86 | |
---|
87 | <p> |
---|
88 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/> |
---|
89 | <input class="submit" type="reset" value="{'Reset'|@translate}" /> |
---|
90 | </p> |
---|
91 | {/if} |
---|
92 | |
---|
93 | </form> |
---|