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

Last change on this file since 8091 was 8091, checked in by rvelices, 13 years ago

css sprites

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