blob: 268ccbfa74fc4bd0a8da996b6650b6d4230c1e5e (
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
111
112
113
114
115
|
{* Example of resizeable *}
{*
{include file='include/autosize.inc.tpl'}
*}
<div id="content" class="content">
<div class="titrePage">
<ul class="categoryActions">
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Upload a picture'|@translate}</h2>
</div>
{if !empty($errors)}
<div class="errors">
<ul>
{foreach from=$errors item=error}
<li>{$error}</li>
{/foreach}
</ul>
</div>
{/if}
{if not $UPLOAD_SUCCESSFUL }
<form enctype="multipart/form-data" method="post" action="{$F_ACTION}">
<table style="width:80%;margin-left:auto;margin-right:auto;">
<tr>
<td colspan="2" class="menu">
<div style="text-align:center;">{$ADVISE_TITLE}</div>
{if not empty($advises)}
<ul>
{foreach from=$advises item=advise}
<li>{$advise}</li>
{/foreach}
</ul>
{/if}
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input class="file" name="picture" type="file" value="">
</td>
</tr>
{if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
<!-- category -->
<tr>
<td>{'Category'|@translate}</td>
<td>
{html_options name="category" options=$categories selected=$categories_selected}
</td>
</tr>
<!-- username -->
<tr>
<td>{'Username'|@translate} <span style="color:red;">*</span></td>
<td>
<input name="username" type="text" value="{$NAME}">
</td>
</tr>
<!-- mail address -->
<tr>
<td>{'E-mail address'|@translate} <span style="color:red;">*</span></td>
<td>
<input name="mail_address" type="text" value="{$EMAIL}">
</td>
</tr>
<!-- name of the picture -->
<tr>
<td>{'Name of the picture'|@translate}</td>
<td>
<input name="name" type="text" value="{$NAME_IMG}">
</td>
</tr>
<!-- author -->
<tr>
<td>{'Author'|@translate}</td>
<td>
<input name="author" type="text" value="{$AUTHOR_IMG}">
</td>
</tr>
<!-- date of creation -->
<tr>
<td>{'Creation date'|@translate} (DD/MM/YYYY)</td>
<td>
<input name="date_creation" type="text" value="{$DATE_IMG}">
</td>
</tr>
<!-- comment -->
<tr>
<td>{'Comment'|@translate}</td>
<td>
<textarea name="comment" id="comment" rows="3" cols="40" style="overflow:auto">{$COMMENT_IMG}</textarea>
</td>
</tr>
{/if}
<tr>
<td colspan="2" align="center">
<input class="submit" name="submit" type="submit" value="{'Submit'|@translate}">
</td>
</tr>
</table>
</form>
{else}
{'Picture uploaded with success, an administrator will validate it as soon as possible'|@translate}<br>
<div style="text-align:center;">
<a href="{$U_RETURN}">[ {'Home'|@translate} ]</a>
</div>
{/if}
{if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
<div style="text-align:left; margin-left:20px;"><span style="color:red;">*</span> : {'obligatory'|@translate}</div>
{/if}
</div> <!-- content -->
|