| 855 |
lars |
1 |
<!-- $Id: upload.tpl 8811 2015-06-24 13:42:18Z tiefland $ -->
|
| 1602 |
lars |
2 |
<div id="upload_dlg">
|
|
|
3 |
<div class="pos">
|
|
|
4 |
<span class="aktuell">Position:</span>
|
|
|
5 |
{if $folder}
|
|
|
6 |
<a class="nav" href="#" data-fname="">TOP</a>
|
|
|
7 |
{else}
|
|
|
8 |
<span class="aktuell">TOP</span>
|
|
|
9 |
{/if}
|
|
|
10 |
{foreach $pos as $dir}
|
|
|
11 |
{if $dir@first} > {/if}
|
|
|
12 |
{if !$dir@last}
|
|
|
13 |
<a class="nav" href="#" data-fname="{$dir.fullName}">{$dir.name}</a> >
|
|
|
14 |
{else}
|
|
|
15 |
<span class="aktuell">
|
|
|
16 |
{$dir.name}
|
|
|
17 |
</span>
|
|
|
18 |
{/if}
|
|
|
19 |
{/foreach}
|
|
|
20 |
</div>
|
|
|
21 |
{if $lType}
|
|
|
22 |
{foreach $folders as $f_id => $f_name}
|
|
|
23 |
{if $f_name@first}
|
|
|
24 |
<div class="break"> </div>
|
|
|
25 |
{/if}
|
|
|
26 |
<img src="/images/Online-Shop/directory/ordner.gif" /><a href="#" data-fname="{$f_name|urlencode}" class="nav">{$f_name}</a>
|
|
|
27 |
{if !$f_name@last}
|
|
|
28 |
<br>
|
|
|
29 |
{else}
|
|
|
30 |
<div class="break"> </div>
|
|
|
31 |
{/if}
|
|
|
32 |
{/foreach}
|
|
|
33 |
{/if}
|
|
|
34 |
<div class="row">
|
|
|
35 |
<div class="col-md-12">
|
|
|
36 |
<div class="m-heading-1 border-green m-bordered">
|
|
|
37 |
<h3>jQuery Validation Plugin</h3>
|
|
|
38 |
<p> File Upload widget with multiple file selection, drag&drop support, progress bars and preview images for jQuery.
|
|
|
39 |
<br> Supports cross-domain, chunked and resumable file uploads and client-side image resizing.
|
|
|
40 |
<br> Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads. </p>
|
|
|
41 |
<p> For more info please check out
|
|
|
42 |
<a class="btn red btn-outline" href="https://github.com/blueimp/jQuery-File-Upload" target="_blank">the official documentation</a>
|
|
|
43 |
</p>
|
|
|
44 |
</div>
|
| 2043 |
lars |
45 |
<form id="fileupload" action="/assets/global/plugins/jquery-file-upload/server/php/" method="POST" enctype="multipart/form-data">
|
| 1602 |
lars |
46 |
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
|
|
|
47 |
<div class="row fileupload-buttonbar">
|
|
|
48 |
<div class="col-lg-7">
|
|
|
49 |
<!-- The fileinput-button span is used to style the file input field as button -->
|
|
|
50 |
<span class="btn green fileinput-button">
|
|
|
51 |
<i class="fa fa-plus"></i>
|
|
|
52 |
<span> Add files... </span>
|
|
|
53 |
<input type="file" name="files[]" multiple=""> </span>
|
|
|
54 |
<button type="submit" class="btn blue start">
|
|
|
55 |
<i class="fa fa-upload"></i>
|
|
|
56 |
<span> Start upload </span>
|
|
|
57 |
</button>
|
|
|
58 |
<button type="reset" class="btn warning cancel">
|
|
|
59 |
<i class="fa fa-ban-circle"></i>
|
|
|
60 |
<span> Cancel upload </span>
|
|
|
61 |
</button>
|
|
|
62 |
<button type="button" class="btn red delete">
|
|
|
63 |
<i class="fa fa-trash"></i>
|
|
|
64 |
<span> Delete </span>
|
|
|
65 |
</button>
|
|
|
66 |
<input type="checkbox" class="toggle">
|
|
|
67 |
<!-- The global file processing state -->
|
|
|
68 |
<span class="fileupload-process"> </span>
|
|
|
69 |
</div>
|
|
|
70 |
<!-- The global progress information -->
|
|
|
71 |
<div class="col-lg-5 fileupload-progress fade">
|
|
|
72 |
<!-- The global progress bar -->
|
|
|
73 |
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
|
|
|
74 |
<div class="progress-bar progress-bar-success" style="width:0%;"> </div>
|
|
|
75 |
</div>
|
|
|
76 |
<!-- The extended global progress information -->
|
|
|
77 |
<div class="progress-extended"> </div>
|
|
|
78 |
</div>
|
|
|
79 |
</div>
|
|
|
80 |
<!-- The table listing the files available for upload/download -->
|
|
|
81 |
<table role="presentation" class="table table-striped clearfix">
|
|
|
82 |
<tbody class="files"> </tbody>
|
|
|
83 |
</table>
|
|
|
84 |
</form>
|
|
|
85 |
<div class="panel panel-success">
|
|
|
86 |
<div class="panel-heading">
|
|
|
87 |
<h3 class="panel-title">Demo Notes</h3>
|
|
|
88 |
</div>
|
|
|
89 |
<div class="panel-body">
|
|
|
90 |
<ul>
|
|
|
91 |
<li> Metronic does not include server side demo scripts(php, .net, ruby, etc) since server side part must be revised by a developer(buyer) in terms of secure file uploading according to his project requirements.
|
|
|
92 |
Also This dome does not implement the server side part of the plugin. For server side demos you can refer to the plugin's official documentation above. </li>
|
|
|
93 |
</ul>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
</div>
|
|
|
98 |
<!-- The blueimp Gallery widget -->
|
|
|
99 |
<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
|
|
|
100 |
<div class="slides"> </div>
|
|
|
101 |
<h3 class="title"></h3>
|
|
|
102 |
<a class="prev"> ‹ </a>
|
|
|
103 |
<a class="next"> › </a>
|
|
|
104 |
<a class="close white"> </a>
|
|
|
105 |
<a class="play-pause"> </a>
|
|
|
106 |
<ol class="indicator"> </ol>
|
|
|
107 |
</div>
|
|
|
108 |
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
|
|
|
109 |
<script id="template-upload" type="text/x-tmpl">
|
|
|
110 |
{literal}
|
|
|
111 |
{% for (var i=0, file; file=o.files[i]; i++) { %}
|
|
|
112 |
<tr class="template-upload fade">
|
|
|
113 |
<td>
|
|
|
114 |
<span class="preview"></span>
|
|
|
115 |
</td>
|
|
|
116 |
<td>
|
|
|
117 |
<p class="name">{%=file.name%}</p>
|
|
|
118 |
<strong class="error text-danger label label-danger"></strong>
|
|
|
119 |
</td>
|
|
|
120 |
<td>
|
|
|
121 |
<p class="size">Processing...</p>
|
|
|
122 |
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">
|
|
|
123 |
<div class="progress-bar progress-bar-success" style="width:0%;"></div>
|
|
|
124 |
</div>
|
|
|
125 |
</td>
|
|
|
126 |
<td> {% if (!i && !o.options.autoUpload) { %}
|
|
|
127 |
<button class="btn blue start" disabled>
|
|
|
128 |
<i class="fa fa-upload"></i>
|
|
|
129 |
<span>Start</span>
|
|
|
130 |
</button> {% } %} {% if (!i) { %}
|
|
|
131 |
<button class="btn red cancel">
|
|
|
132 |
<i class="fa fa-ban"></i>
|
|
|
133 |
<span>Cancel</span>
|
|
|
134 |
</button> {% } %} </td>
|
|
|
135 |
</tr> {% } %}
|
|
|
136 |
{/literal}
|
|
|
137 |
</script>
|
|
|
138 |
<!-- The template to display files available for download -->
|
|
|
139 |
<script id="template-download" type="text/x-tmpl">
|
|
|
140 |
{literal}
|
|
|
141 |
{% for (var i=0, file; file=o.files[i]; i++) { %}
|
|
|
142 |
<tr class="template-download fade">
|
|
|
143 |
<td>
|
|
|
144 |
<span class="preview"> {% if (file.thumbnailUrl) { %}
|
|
|
145 |
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery>
|
|
|
146 |
<img src="{%=file.thumbnailUrl%}">
|
|
|
147 |
</a> {% } %} </span>
|
|
|
148 |
</td>
|
|
|
149 |
<td>
|
|
|
150 |
<p class="name"> {% if (file.url) { %}
|
|
|
151 |
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl? 'data-gallery': ''%}>{%=file.name%}</a> {% } else { %}
|
|
|
152 |
<span>{%=file.name%}</span> {% } %} </p> {% if (file.error) { %}
|
|
|
153 |
<div>
|
|
|
154 |
<span class="label label-danger">Error</span> {%=file.error%}</div> {% } %} </td>
|
|
|
155 |
<td>
|
|
|
156 |
<span class="size">{%=o.formatFileSize(file.size)%}</span>
|
|
|
157 |
</td>
|
|
|
158 |
<td> {% if (file.deleteUrl) { %}
|
|
|
159 |
<button class="btn red delete btn-sm" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}" {% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}' {% } %}>
|
|
|
160 |
<i class="fa fa-trash-o"></i>
|
|
|
161 |
<span>Delete</span>
|
|
|
162 |
</button>
|
|
|
163 |
<input type="checkbox" name="delete" value="1" class="toggle"> {% } else { %}
|
|
|
164 |
<button class="btn yellow cancel btn-sm">
|
|
|
165 |
<i class="fa fa-ban"></i>
|
|
|
166 |
<span>Cancel</span>
|
|
|
167 |
</button> {% } %} </td>
|
|
|
168 |
</tr> {% } %}
|
|
|
169 |
{/literal}
|
|
|
170 |
</script>
|
|
|
171 |
</div>
|