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