source: extensions/upload_form/upload.tpl @ 4832

Last change on this file since 4832 was 4829, checked in by plg, 15 years ago

feature 1408 added: upload a zip archive containing photos, needs more tests
(on windows operating system) but "yeah it already rocks" :-)

pclzip 2.8.2 included because the low memory usage features is missing from
pclzip 2.8.1 included in Piwigo core.

File size: 3.5 KB
Line 
1{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
2
3{literal}
4<script>
5$(document).ready(function(){
6
7  $("input[name=category_type]").click(function () {
8    $("[id^=category_type_]").hide();
9    $("#category_type_"+$(this).attr("value")).show();
10  });
11
12});
13</script>
14{/literal}
15
16<script type="text/javascript" src="{$plugin_path}/include/upload.js"></script>
17
18{literal}
19<style>
20#uploadBoxes P {
21  margin:0;
22  margin-bottom:2px;
23  padding:0;
24}
25
26#batchLink {
27  text-align:center;
28}
29</style>
30{/literal}
31
32<div class="titrePage">
33  <h2>{'Upload Form'|@translate}</h2>
34</div>
35
36{if count($setup_errors) > 0}
37<div class="errors">
38  <ul>
39  {foreach from=$setup_errors item=error}
40    <li>{$error}</li>
41  {/foreach}
42  </ul>
43</div>
44{else}
45
46{if !empty($thumbnails)}
47<fieldset>
48  <legend>{'Uploaded Photos'|@translate}</legend>
49  <div>
50  {foreach from=$thumbnails item=thumbnail}
51    <a href="{$thumbnail.link}" onclick="window.open(this.href); return false;">
52      <img src="{$thumbnail.src}" alt="{$thumbnail.file}" title="{$thumbnail.title}" class="thumbnail">
53    </a>
54  {/foreach}
55  </div>
56  <p id="batchLink"><a href="{$batch_link}">{$batch_label}</a></p>
57</fieldset>
58{/if}
59
60
61<form enctype="multipart/form-data" method="post" action="{$F_ACTION}" class="properties">
62  <fieldset>
63    <legend>{'Upload Photos'|@translate}</legend>
64
65    <table>
66      <tr>
67        <th>{'Drop into category'|@translate}</th>
68        <td>
69          <label><input type="radio" name="category_type" value="existing" checked="checked"> {'existing category'|@translate}</label>
70          <label><input type="radio" name="category_type" value="new"> {'create a new category'|@translate}</label>
71
72          <div id="category_type_existing">
73            <select class="categoryDropDown" name="category">
74              {html_options options=$category_options}
75            </select>
76          </div>
77
78          <div id="category_type_new" style="display:none">
79            <table>
80              <tr>
81                <td>{'Parent category'|@translate}</td>
82                <td>
83                  <select class="categoryDropDown" name="category_parent">
84                    <option value="0">------------</option>
85                    {html_options options=$category_options}
86                  </select>
87                </td>
88              </tr>
89              <tr>
90                <td>{'Category name'|@translate}</td>
91                <td>
92                  <input type="text" name="category_name" value="{$F_CATEGORY_NAME}"
93                </td>
94              </tr>
95            </table>
96          </div>
97
98        </td>
99      </tr>
100
101      <tr>
102        <th>{'Minimum privacy level'|@translate}</th>
103        <td>
104          <select name="level" size="1">
105            {html_options options=$level_options selected=$level_options_selected}
106          </select>
107        </td>
108      </tr>
109
110      <tr>
111        <td colspan="2">
112          <strong>{'Select files'|@translate}</strong>
113          <p>{'JPEG files or ZIP archives with JPEG files inside please.'|@translate}</p>
114          <div id="uploadBoxes">
115            <p><input class="file" type="file" size="70" name="image_upload[]" /></p>
116          </div>
117          <div id="addUploadBox">
118            <a href="javascript: UpdateUploadSlots()">{'+ Add an upload box'|@translate}</a>
119          </div>
120        </td>
121      </tr>
122     
123    </table>
124   
125    <p>
126      <input class="submit" type="submit" name="submit_upload" value="{'Upload'|@translate}" {$TAG_INPUT_ENABLED}/>
127    </p>
128  </fieldset>
129</form>
130{/if}
Note: See TracBrowser for help on using the repository browser.