1 | <div class="titrePage"> |
---|
2 | <ul class="categoryActions"> |
---|
3 | <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}">{'Home'|@translate}</a></li> |
---|
4 | </ul> |
---|
5 | <h2>{'Upload a picture'|@translate}</h2> |
---|
6 | </div> |
---|
7 | <div id="content"> |
---|
8 | {if isset($errors) and count($errors)} |
---|
9 | <div class="errors"> |
---|
10 | <ul> |
---|
11 | {foreach from=$errors item=error} |
---|
12 | <li>{$error}</li> |
---|
13 | {/foreach} |
---|
14 | </ul> |
---|
15 | </div> |
---|
16 | {/if} |
---|
17 | {if not $UPLOAD_SUCCESSFUL } |
---|
18 | <form enctype="multipart/form-data" method="post" action="{$F_ACTION}"> |
---|
19 | <fieldset> |
---|
20 | <legend>{$ADVISE_TITLE}</legend> |
---|
21 | {if not empty($advises)} |
---|
22 | <ul> |
---|
23 | {foreach from=$advises item=advise} |
---|
24 | <li>{$advise}</li> |
---|
25 | {/foreach} |
---|
26 | </ul> |
---|
27 | {/if} |
---|
28 | <ul> |
---|
29 | <li> |
---|
30 | <div class="property"> </div><input name="picture" type="file" value="" /> |
---|
31 | </li> |
---|
32 | {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS} |
---|
33 | <!-- category --> |
---|
34 | <li> |
---|
35 | <div class="property">{'Category'|@translate}</div> |
---|
36 | {html_options name="category" options=$categories selected=$categories_selected} |
---|
37 | </li> |
---|
38 | <!-- username --> |
---|
39 | <li> |
---|
40 | <div class="property">{'Username'|@translate}</div> |
---|
41 | <input name="username" type="text" value="{$NAME}" /> <span class="mandatorystar">*</span> |
---|
42 | </li> |
---|
43 | <!-- mail address --> |
---|
44 | <li> |
---|
45 | <div class="property">{'E-mail address'|@translate}</div> |
---|
46 | <input name="mail_address" type="text" value="{$EMAIL}" size="35"/> <span class="mandatorystar">*</span> |
---|
47 | </li> |
---|
48 | <!-- name of the picture --> |
---|
49 | <li> |
---|
50 | <div class="property">{'Name of the picture'|@translate}</div> |
---|
51 | <input name="name" type="text" value="{$NAME_IMG}" size="35"/> |
---|
52 | </li> |
---|
53 | <!-- author --> |
---|
54 | <li> |
---|
55 | <div class="property">{'Author'|@translate}</div> |
---|
56 | <input name="author" type="text" value="{$AUTHOR_IMG}" size="35"/> |
---|
57 | </li> |
---|
58 | <!-- date of creation --> |
---|
59 | <li> |
---|
60 | <div class="property">{'Creation date'|@translate} (DD/MM/YYYY)</div> |
---|
61 | <input name="date_creation" type="text" value="{$DATE_IMG}" /> |
---|
62 | </li> |
---|
63 | <!-- comment --> |
---|
64 | <li> |
---|
65 | <div class="property">{'Comment'|@translate}</div> |
---|
66 | <textarea name="comment" rows="6" cols="60" style="overflow:auto">{$COMMENT_IMG}</textarea> |
---|
67 | </li> |
---|
68 | {/if} |
---|
69 | </ul> |
---|
70 | </fieldset> |
---|
71 | <p class="bottomButtons"> |
---|
72 | <input class="submit" name="submit" type="submit" value="{'Submit'|@translate}" /> |
---|
73 | </p> |
---|
74 | </form> |
---|
75 | {else} |
---|
76 | {'Picture uploaded with success, an administrator will validate it as soon as possible'|@translate}<br /> |
---|
77 | <div style="text-align:center;"> |
---|
78 | <a href="{$U_RETURN}">[ {'Home'|@translate} ]</a> |
---|
79 | </div> |
---|
80 | {/if} |
---|
81 | {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS} |
---|
82 | <p><span class="mandatorystar">*</span> : {'obligatory'|@translate}</p> |
---|
83 | {/if} |
---|
84 | </div> <!-- content --> |
---|