source: extensions/simple_themes/simple/template/upload.tpl @ 13556

Last change on this file since 13556 was 13556, checked in by plg, 12 years ago

import theme Simple version 2.5.1

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