source: extensions/stripped/template/upload.tpl @ 9752

Last change on this file since 9752 was 9134, checked in by Zaphod, 13 years ago

[extension] stripped - version 1.2.0

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