1 | {include file='include/colorbox.inc.tpl'} |
---|
2 | {include file='include/add_album.inc.tpl'} |
---|
3 | |
---|
4 | <div class="titrePage"> |
---|
5 | <h2>{'File Uploader Plugin'|@translate}</h2> |
---|
6 | </div> |
---|
7 | <div class="file_uploader_form"> |
---|
8 | <form method="post" enctype="multipart/form-data"> |
---|
9 | <fieldset> |
---|
10 | <legend>{'Choose a file'|@translate}</legend> |
---|
11 | <p class="file_uploader_center"> |
---|
12 | <label> |
---|
13 | <span class="property">{'File to upload:'|@translate}</span> |
---|
14 | </label> |
---|
15 | <input name="file_uploader_file" type="file" value=""{if isset($file_uploader_errors.file)} class="file_uploader_error"{/if}> |
---|
16 | {foreach from=$file_uploader_errors.file item=error_description}<span class="file_uploader_error_description" title="{$error_description}">!</span>{/foreach} |
---|
17 | <input type="hidden" name="MAX_FILE_SIZE" value="{$upload_max_filesize}"> |
---|
18 | </p> |
---|
19 | <p class="file_uploader_center"> |
---|
20 | {'file_uploader_upload_max_filesize'|@translate} {$upload_max_filesize_display} Kio. |
---|
21 | </p> |
---|
22 | </fieldset> |
---|
23 | <fieldset> |
---|
24 | <legend>{'Choose a thumbnail'|@translate}</legend> |
---|
25 | <p class="file_uploader_center"> |
---|
26 | <label> |
---|
27 | <span class="property">{'Thumbnail to upload:'|@translate}</span> |
---|
28 | </label> |
---|
29 | <input name="file_uploader_thumbnail" type="file" value=""{if isset($file_uploader_errors.thumbnail)} class="file_uploader_error"{/if}> |
---|
30 | {foreach from=$file_uploader_errors.thumbnail item=error_description}<span class="file_uploader_error_description" title="{$error_description}">!</span>{/foreach} |
---|
31 | </p> |
---|
32 | <p class="file_uploader_center"> |
---|
33 | {'You can use a personnal image or convert your file to an image using a desktop program or a web service such as'|@translate} <a href="http://www.zamzar.com" alt="Zamzar" title="Zamzar">Zamzar</a>. |
---|
34 | </p> |
---|
35 | </fieldset> |
---|
36 | <fieldset> |
---|
37 | <legend>{'Properties'|@translate}</legend> |
---|
38 | <p class="file_uploader_center"> |
---|
39 | <label for="file_uploader_title_input"> |
---|
40 | <span class="property">{'Title:'|@translate}</span> |
---|
41 | </label> |
---|
42 | <input size="50" id="file_uploader_title_input" type="text" name="file_uploader[title]" value="{$file_uploader.title}"{if isset($file_uploader_errors.title)} class="file_uploader_error"{/if}> |
---|
43 | {if isset($file_uploader_errors.title)}<span class="file_uploader_error_description" title="{$file_uploader_errors.title}">!</span>{/if} |
---|
44 | </p> |
---|
45 | <p class="file_uploader_center"> |
---|
46 | <label for="file_uploader_description_input"> |
---|
47 | <span class="property">{'Description:'|@translate}</span> |
---|
48 | </label><br /> |
---|
49 | <textarea cols="50" rows="5" id="file_uploader_description_input" type="text" name="file_uploader[description]"{if isset($file_uploader_errors.description)} class="file_uploader_error"{/if}>{$file_uploader.description}</textarea> |
---|
50 | {if isset($file_uploader_errors.description)}<span class="file_uploader_error_description" title="{$file_uploader_errors.description}">!</span>{/if} |
---|
51 | </p> |
---|
52 | <p class="file_uploader_center"> |
---|
53 | <label for="file_uploader_album_select"> |
---|
54 | <span class="property">{'Album:'|@translate}</span> |
---|
55 | </label> |
---|
56 | <select style="width:400px" name="file_uploader[category]" id="albumSelect" size="1"> |
---|
57 | {html_options options=$category_parent_options selected=$file_uploader.category} |
---|
58 | </select> |
---|
59 | <br />{'... or '|@translate}<a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a> |
---|
60 | </p> |
---|
61 | </fieldset> |
---|
62 | <p> |
---|
63 | <input class="submit" name="submit" type="submit" value="{'Submit'|@translate}" /> |
---|
64 | </p> |
---|
65 | </form> |
---|
66 | </div> |
---|