2011-06-24 22:53:21 +02:00
|
|
|
|
2010-07-20 01:07:34 +02:00
|
|
|
[if winix_function_param_is "ckeditor_upload"]
|
2010-02-19 00:30:22 +01:00
|
|
|
<script type="text/javascript">window.parent.CKEDITOR.tools.callFunction([upload_ckeditor_funnum], '[item_link]');</script>
|
2011-06-24 22:53:21 +02:00
|
|
|
[end]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[if winix_function_param_is "jquery_upload"]
|
|
|
|
\[
|
|
|
|
[for item_tab]
|
|
|
|
\{
|
|
|
|
"name":"[item_tab_url]",
|
|
|
|
"size":[item_tab_file_size],
|
|
|
|
"url":"[item_tab_link]",
|
|
|
|
[if item_tab_filetype_is_image]"thumbnail_url":"[if item_tab_has_thumb][item_tab_link]/-/thumb[else][item_tab_link][end]",[end]
|
|
|
|
"delete_url":"[item_tab_link]/rm/jquery_upload",
|
|
|
|
"delete_type":"POST"
|
|
|
|
\}
|
|
|
|
[if item_tab_has_next],[end]
|
|
|
|
|
|
|
|
[end]
|
|
|
|
\]
|
|
|
|
[end]
|
2010-01-26 20:02:21 +01:00
|
|
|
|
2011-06-24 22:53:21 +02:00
|
|
|
|
|
|
|
[if-any-no winix_function_param_is "ckeditor_upload" winix_function_param_is "jquery_upload"]
|
2010-02-19 00:30:22 +01:00
|
|
|
<h1>{upload_header}</h1>
|
2010-01-28 16:39:01 +01:00
|
|
|
|
2010-02-13 00:16:13 +01:00
|
|
|
|
2011-06-24 22:53:21 +02:00
|
|
|
|
|
|
|
<div id="fileupload">
|
|
|
|
<form id="additem" method="post" action="[doc_base_url][dir]upload" enctype="multipart/form-data">
|
2010-02-19 00:30:22 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend>{upload_form_legend}</legend>
|
2010-02-13 00:16:13 +01:00
|
|
|
|
2011-06-24 22:53:21 +02:00
|
|
|
<div class="fileupload-buttonbar">
|
|
|
|
<label class="fileinput-button">
|
|
|
|
<span>{upload_add_files}</span>
|
|
|
|
<input type="file" name="fileupload" multiple>
|
|
|
|
</label>
|
|
|
|
<button type="submit" class="start">{upload_start_upload}</button>
|
|
|
|
<button type="reset" class="cancel">{upload_cancel_upload}</button>
|
|
|
|
<button type="button" class="delete">{upload_delete_files}</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
[if false]
|
2010-07-20 01:07:34 +02:00
|
|
|
[if winix_function_param_is "multi"]
|
2010-01-26 20:02:21 +01:00
|
|
|
|
2010-02-19 00:30:22 +01:00
|
|
|
<p class="withnext">{upload_form_file_multi}</p>
|
|
|
|
<input size="68" class="edit" type="file" name="fileupload1">
|
|
|
|
<input size="68" class="edit" type="file" name="fileupload2">
|
|
|
|
<input size="68" class="edit" type="file" name="fileupload3">
|
|
|
|
<input size="68" class="edit" type="file" name="fileupload4">
|
|
|
|
<input size="68" class="edit" type="file" name="fileupload5">
|
2010-02-13 00:16:13 +01:00
|
|
|
|
2010-02-19 00:30:22 +01:00
|
|
|
[else]
|
2010-01-28 16:39:01 +01:00
|
|
|
|
2010-02-19 00:30:22 +01:00
|
|
|
<p class="withnext">{upload_form_file}</p>
|
|
|
|
<input size="68" class="edit" type="file" name="fileupload">
|
|
|
|
|
|
|
|
<p class="withnext">{title}:</p>
|
|
|
|
<input class="edit" type="text" name="subject" value="[item_subject]">
|
|
|
|
|
|
|
|
<p class="withnext">{suggested_url}:</p>
|
|
|
|
<input class="edit" type="text" name="url" value="[item_url]">
|
|
|
|
|
|
|
|
[include "fun_emacs_post.html"]
|
|
|
|
|
|
|
|
[end]
|
2011-06-24 22:53:21 +02:00
|
|
|
[end]
|
2010-02-19 00:30:22 +01:00
|
|
|
[if-no user_logged]
|
|
|
|
<p class="withnext">{nick}:</p>
|
|
|
|
<input class="edit" type="text" name="guestname" value="[item_guest_name]">
|
|
|
|
|
|
|
|
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p>
|
|
|
|
<input class="edit" type="text" name="rebus">
|
|
|
|
[end]
|
|
|
|
|
2011-06-24 22:53:21 +02:00
|
|
|
[if false]<input class="submit" type="submit" value="{upload_submit}">[end]
|
2010-02-19 00:30:22 +01:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
2011-06-24 22:53:21 +02:00
|
|
|
<div class="fileupload-content">
|
|
|
|
<table class="files"></table>
|
|
|
|
<div class="fileupload-progressbar"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script id="template-upload" type="text/x-jquery-tmpl">
|
|
|
|
<tr class="template-upload\{\{if error\}\} ui-state-error\{\{/if\}\}">
|
|
|
|
<td class="preview"></td>
|
|
|
|
<td class="name">$\{name\}</td>
|
|
|
|
<td class="size">$\{sizef\}</td>
|
|
|
|
\{\{if error\}\}
|
|
|
|
<td class="error" colspan="2">{upload_error}:
|
|
|
|
\{\{if error === 'maxFileSize'\}\}{upload_file_too_big}
|
|
|
|
\{\{else error === 'minFileSize'\}\}{upload_file_too_small}
|
|
|
|
\{\{else error === 'acceptFileTypes'\}\}{upload_filetype_not_allowed}
|
|
|
|
\{\{else error === 'maxNumberOfFiles'\}\}{upload_max_files_exceeded}
|
|
|
|
\{\{else\}\}$\{error\}
|
|
|
|
\{\{/if\}\}
|
|
|
|
</td>
|
|
|
|
\{\{else\}\}
|
|
|
|
<td class="progress"><div></div></td>
|
|
|
|
<td class="start"><button>{upload_start}</button></td>
|
|
|
|
\{\{/if\}\}
|
|
|
|
<td class="cancel"><button>{upload_cancel}</button></td>
|
|
|
|
</tr>
|
|
|
|
</script>
|
|
|
|
<script id="template-download" type="text/x-jquery-tmpl">
|
|
|
|
<tr class="template-download\{\{if error\}\} ui-state-error\{\{/if\}\}">
|
|
|
|
\{\{if error\}\}
|
|
|
|
<td></td>
|
|
|
|
<td class="name">$\{name\}</td>
|
|
|
|
<td class="size">$\{sizef\}</td>
|
|
|
|
<td class="error" colspan="2">{upload_error}:
|
|
|
|
\{\{if error === 1\}\}{upload_file_too_big}
|
|
|
|
\{\{else error === 2\}\}{upload_file_too_big}
|
|
|
|
\{\{else error === 3\}\}{upload_partial}
|
|
|
|
\{\{else error === 4\}\}{upload_no_file}
|
|
|
|
\{\{else error === 5\}\}{upload_missing_tmp_folder}
|
|
|
|
\{\{else error === 6\}\}{upload_disc_failded}
|
|
|
|
\{\{else error === 7\}\}{upload_extenstion_stop}
|
|
|
|
\{\{else error === 'maxFileSize'\}\}{upload_file_too_big}
|
|
|
|
\{\{else error === 'minFileSize'\}\}{upload_file_too_small}
|
|
|
|
\{\{else error === 'acceptFileTypes'\}\}Filetype not allowed
|
|
|
|
\{\{else error === 'maxNumberOfFiles'\}\}{upload_filetype_not_allowed}
|
|
|
|
\{\{else error === 'uploadedBytes'\}\}{upload_bytes_exceed_file_size}
|
|
|
|
\{\{else error === 'emptyResult'\}\}{upload_empty_result}
|
|
|
|
\{\{else\}\}$\{error\}
|
|
|
|
\{\{/if\}\}
|
|
|
|
</td>
|
|
|
|
\{\{else\}\}
|
|
|
|
<td class="preview">
|
|
|
|
\{\{if thumbnail_url\}\}
|
|
|
|
<a href="$\{url\}/cat" target="_blank"><img src="$\{thumbnail_url\}"></a>
|
|
|
|
\{\{/if\}\}
|
|
|
|
</td>
|
|
|
|
<td class="name">
|
|
|
|
<a href="$\{url\}/cat"\{\{if thumbnail_url\}\} target="_blank"\{\{/if\}\}>$\{name\}</a>
|
|
|
|
</td>
|
|
|
|
<td class="size">$\{sizef\}</td>
|
2011-12-02 15:38:26 +01:00
|
|
|
<!--<td class="url">$\{url\}</td>-->
|
2011-06-24 22:53:21 +02:00
|
|
|
<td colspan="2"></td>
|
|
|
|
\{\{/if\}\}
|
|
|
|
<td class="delete">
|
|
|
|
<button data-type="$\{delete_type\}" data-url="$\{delete_url\}">{upload_delete}</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</div>
|
2010-02-19 00:30:22 +01:00
|
|
|
[end]
|
2010-01-28 16:39:01 +01:00
|
|
|
|