mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
86 lines
3.4 KiB
HTML
86 lines
3.4 KiB
HTML
<config autoescape="on" />
|
|
<load target="./lang" />
|
|
|
|
<!--%load_js_plugin("jquery.fileupload")-->
|
|
<!--%load_js_plugin("jquery.finderSelect")-->
|
|
<!--%load_js_plugin("handlebars")-->
|
|
|
|
<div cond="$allow_fileupload" id="xefu-container-{$editor_sequence}" class="xefu-container xe-clearfix"
|
|
data-editor-sequence="{$editor_sequence}"
|
|
data-editor-status="{json_encode(FileModel::getInstance()->getFileList($editor_sequence), JSON_UNESCAPED_UNICODE)}"
|
|
data-max-file-size="{$logged_info->is_admin === 'Y' ? 0 : $file_config->allowed_filesize}"
|
|
data-max-chunk-size="{$file_config->allowed_chunk_size ?: 0}"
|
|
data-autoinsert-types="{json_encode($editor_autoinsert_types)}"
|
|
data-autoinsert-position="{$editor_autoinsert_position ?: 'paragraph'}">
|
|
|
|
<!--// dropzone -->
|
|
<div class="xefu-dropzone">
|
|
<span class="xefu-btn fileinput-button xefu-act-selectfile">
|
|
<span><i class="xi-icon xi-file-upload"></i> {$lang->edit->upload_file}</span>
|
|
<input id="xe-fileupload" type="file" class="fileupload-processing " name="Filedata" data-auto-upload="true" data-editor-sequence="{$editor_sequence}" multiple />
|
|
</span>
|
|
|
|
<p class="xefu-dropzone-message" cond="!$m">{$lang->ckeditor_about_file_drop_area}</p>
|
|
|
|
<p class="upload_info">
|
|
<span class="allowed_filesize_container">{$lang->allowed_filesize} : <span class="allowed_filesize">0MB</span></span>
|
|
<span class="allowed_filetypes_container">({$lang->allowed_filetypes} : <span class="allowed_filetypes">*.*</span>)</span>
|
|
</p>
|
|
|
|
<p class="xefu-progress-status" style="display: none;">{$lang->ckeditor_file_uploading} (<span class="xefu-progress-percent">0%</span>)</p>
|
|
<div class="xefu-progressbar" style="display: none;"><div></div></div>
|
|
</div>
|
|
<!--// END:dropzone -->
|
|
|
|
<div class="xefu-controll xe-clearfix">
|
|
<div style="float: left;">
|
|
{$lang->ckeditor_file_count} (<span class="attached_size"></span> / <span class="allowed_attach_size"></span>)
|
|
</div>
|
|
<div style="float: right">
|
|
<input type="button" class="xefu-btn xefu-act-link-selected" style="vertical-align: middle" value="{$lang->edit->link_file}">
|
|
<input type="button" class="xefu-btn xefu-act-delete-selected" style="vertical-align: middle" value="{$lang->edit->delete_selected}">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="xefu-list">
|
|
<div class="xefu-list-images">
|
|
<ul>
|
|
</ul>
|
|
</div>
|
|
<div class="xefu-list-files">
|
|
<ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
jQuery(function($){
|
|
var container = $('#xefu-container-{$editor_sequence}');
|
|
if (container.length) {
|
|
container.data('instance', container.xeUploader({
|
|
maxFileSize: parseInt(container.data('maxFileSize'), 10),
|
|
maxChunkSize: parseInt(container.data('maxChunkSize'), 10),
|
|
autoinsertTypes: container.data('autoinsertTypes'),
|
|
autoinsertPosition: container.data('autoinsertPosition'),
|
|
singleFileUploads: true
|
|
}));
|
|
}
|
|
window.xe.msg_exceeds_limit_size = '{$lang->msg_exceeds_limit_size}';
|
|
window.xe.msg_checked_file_is_deleted = '{$lang->msg_checked_file_is_deleted}';
|
|
window.xe.msg_file_cart_is_null = '{$lang->msg_file_cart_is_null}';
|
|
window.xe.msg_checked_file_is_deleted = '{$lang->msg_checked_file_is_deleted}';
|
|
window.xe.msg_not_allowed_filetype = '{$lang->msg_not_allowed_filetype}';
|
|
window.xe.msg_file_upload_error = '{$lang->msg_file_upload_error}';
|
|
});
|
|
|
|
function reloadUploader(editor_sequence) {
|
|
var container = $('#xefu-container-' + editor_sequence);
|
|
if (container.length) {
|
|
container.data('instance').loadFilelist(container);
|
|
}
|
|
}
|
|
|
|
</script>
|