source: extensions/gally/piwigo-2.0/upload.tpl @ 17945

Last change on this file since 17945 was 4446, checked in by grum, 15 years ago

[Template:Gally] Add template to subversion

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