source: trunk/themes/default/template/upload.tpl @ 5164

Last change on this file since 5164 was 5164, checked in by nikrou, 14 years ago

Fix mistypping for home page icon (Home.png instead of home.png)

  • Property svn:eol-style set to LF
File size: 3.1 KB
Line 
1
2{* Example of resizeable *}
3{*
4{include file='include/autosize.inc.tpl'}
5*}
6
7<div id="content" class="content">
8
9  <div class="titrePage">
10    <ul class="categoryActions">
11      <li><a href="{$U_HOME}" title="{'Home'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'Home'|@translate}"></a></li>
12    </ul>
13    <h2>{'Upload a picture'|@translate}</h2>
14  </div>
15
16  {if !empty($errors)}
17  <div class="errors">
18    <ul>
19      {foreach from=$errors item=error}
20      <li>{$error}</li>
21      {/foreach}
22    </ul>
23  </div>
24  {/if}
25
26  {if not $UPLOAD_SUCCESSFUL }
27  <form enctype="multipart/form-data" method="post" action="{$F_ACTION}">
28    <table style="width:80%;margin-left:auto;margin-right:auto;">
29    <tr>
30      <td colspan="2" class="menu">
31      <div style="text-align:center;">{$ADVISE_TITLE}</div>
32      {if not empty($advises)}
33      <ul>
34        {foreach from=$advises item=advise}
35        <li>{$advise}</li>
36        {/foreach}
37      </ul>
38      {/if}
39      </td>
40    </tr>
41    <tr>
42      <td colspan="2" align="center">
43      <input class="file" name="picture" type="file" value="">
44      </td>
45    </tr>
46    {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
47    <!-- category -->
48    <tr>
49      <td>{'Category'|@translate}</td>
50      <td>
51        {html_options name="category" options=$categories selected=$categories_selected}
52      </td>
53    </tr>
54    <!-- username -->
55    <tr>
56      <td>{'Username'|@translate} <span style="color:red;">*</span></td>
57      <td>
58      <input name="username" type="text" value="{$NAME}">
59      </td>
60    </tr>
61    <!-- mail address -->
62    <tr>
63      <td>{'E-mail address'|@translate} <span style="color:red;">*</span></td>
64      <td>
65      <input name="mail_address" type="text" value="{$EMAIL}">
66      </td>
67    </tr>
68    <!-- name of the picture -->
69    <tr>
70      <td>{'Name of the picture'|@translate}</td>
71      <td>
72      <input name="name" type="text" value="{$NAME_IMG}">
73      </td>
74    </tr>
75    <!-- author -->
76    <tr>
77      <td>{'Author'|@translate}</td>
78      <td>
79      <input name="author" type="text" value="{$AUTHOR_IMG}">
80      </td>
81    </tr>
82    <!-- date of creation -->
83    <tr>
84      <td>{'Creation date'|@translate} (DD/MM/YYYY)</td>
85      <td>
86      <input name="date_creation" type="text" value="{$DATE_IMG}">
87      </td>
88    </tr>
89    <!-- comment -->
90    <tr>
91      <td>{'Comment'|@translate}</td>
92      <td>
93       <textarea name="comment" id="comment" rows="3" cols="40" style="overflow:auto">{$COMMENT_IMG}</textarea>
94      </td>
95    </tr>
96    {/if}
97    <tr>
98      <td colspan="2" align="center">
99      <input class="submit" name="submit" type="submit" value="{'Submit'|@translate}">
100      </td>
101    </tr>
102    </table>
103  </form>
104  {else}
105  {'Picture uploaded with success, an administrator will validate it as soon as possible'|@translate}<br>
106  <div style="text-align:center;">
107    <a href="{$U_RETURN}">[ {'Home'|@translate} ]</a>
108  </div>
109  {/if}
110 
111  {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
112  <div style="text-align:left; margin-left:20px;"><span style="color:red;">*</span> : {'obligatory'|@translate}</div>
113  {/if}
114</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.