source: extensions/floPure/upload.tpl @ 4940

Last change on this file since 4940 was 3474, checked in by flop25, 15 years ago

refresh all the tpl with current yoga tpl.

maj avec le yoga de pwg 2.0.2

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