Last change
on this file since 4792 was
4789,
checked in by plg, 14 years ago
|
feature 1405 added: explicit errors when the "upload" directory is missing or
not writable.
|
File size:
1.4 KB
|
Line | |
---|
1 | <script type="text/javascript" src="{$plugin_path}/include/upload.js"></script> |
---|
2 | |
---|
3 | {literal} |
---|
4 | <style> |
---|
5 | #uploadBoxes P { |
---|
6 | margin:0; |
---|
7 | margin-bottom:2px; |
---|
8 | padding:0; |
---|
9 | } |
---|
10 | </style> |
---|
11 | {/literal} |
---|
12 | |
---|
13 | <div class="titrePage"> |
---|
14 | <h2>{'Upload Form'|@translate}</h2> |
---|
15 | </div> |
---|
16 | |
---|
17 | {if count($setup_errors) > 0} |
---|
18 | <div class="errors"> |
---|
19 | <ul> |
---|
20 | {foreach from=$setup_errors item=error} |
---|
21 | <li>{$error}</li> |
---|
22 | {/foreach} |
---|
23 | </ul> |
---|
24 | </div> |
---|
25 | {else} |
---|
26 | <form enctype="multipart/form-data" method="post" action="{$F_ACTION}" class="properties"> |
---|
27 | <fieldset> |
---|
28 | <legend>{'Upload Photos'|@translate}</legend> |
---|
29 | |
---|
30 | <table> |
---|
31 | <tr> |
---|
32 | <td>{'Drop into category'|@translate}</td> |
---|
33 | <td> |
---|
34 | <select class="categoryDropDown" name="category"> |
---|
35 | <option value="0">------------</option> |
---|
36 | {html_options options=$category_options} |
---|
37 | </select> |
---|
38 | </td> |
---|
39 | </tr> |
---|
40 | |
---|
41 | <tr> |
---|
42 | <td colspan="2"> |
---|
43 | <div id="uploadBoxes"> |
---|
44 | <p><input class="file" type="file" size="70" name="image_upload[]" /></p> |
---|
45 | </div> |
---|
46 | <div id="addUploadBox"> |
---|
47 | <a href="javascript: UpdateUploadSlots()">{'+ Add an upload box'|@translate}</a> |
---|
48 | </div> |
---|
49 | </td> |
---|
50 | </tr> |
---|
51 | |
---|
52 | </table> |
---|
53 | |
---|
54 | <p> |
---|
55 | <input class="submit" type="submit" name="submit_upload" value="{'Upload'|@translate}" {$TAG_INPUT_ENABLED}/> |
---|
56 | </p> |
---|
57 | </fieldset> |
---|
58 | </form> |
---|
59 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.