source: extensions/floOS/upload.tpl @ 4811

Last change on this file since 4811 was 3618, checked in by flop25, 15 years ago

update global with pwg 2.0.3

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