richdocuments/templates/documents.php

54 lines
2.5 KiB
PHP
Raw Normal View History

2015-08-26 19:09:34 +03:00
<?php
2015-12-16 17:57:44 +03:00
style( 'richdocuments', 'share' );
style( 'richdocuments', 'style' );
script('richdocuments', 'share');
script('richdocuments', 'documents');
2015-08-26 19:09:34 +03:00
script('files', 'file-upload');
script('files', 'jquery.fileupload');
?>
2013-08-28 12:02:27 +02:00
<div id="documents-content">
2013-08-22 16:37:06 +02:00
<ul class="documentslist">
<li class="add-document">
<a class="icon-add add-<?php p($_['doc_format'] === 'ooxml' ? 'docx' : 'odt') ?> svg" target="_blank" href="">
<label><?php p($l->t('New Document')) ?></label>
2016-03-05 18:14:16 -04:00
</a>
<a class="icon-add add-<?php p($_['doc_format'] === 'ooxml' ? 'xlsx' : 'ods') ?> svg" target="_blank" href="">
<label><?php p($l->t('New Spreadsheet')) ?></label>
</a>
<a class="icon-add add-<?php p($_['doc_format'] === 'ooxml' ? 'pptx' : 'odp') ?> svg" target="_blank" href="">
<label><?php p($l->t('New Presentation')) ?></label>
</a>
<div id="upload" title="<?php p($l->t('Upload (max. %s)', array($_['uploadMaxHumanFilesize']))) ?>">
2013-09-13 16:47:48 +03:00
<form data-upload-id="1"
id="data-upload-form"
class="file_upload_form"
action="<?php print_unescaped(link_to('files', 'ajax/upload.php')); ?>"
2013-09-13 16:47:48 +03:00
method="post"
enctype="multipart/form-data"
target="file_upload_target_1">
<?php if($_['uploadMaxFilesize'] >= 0):?>
<input type="hidden" name="MAX_FILE_SIZE" id="max_upload"
2013-10-10 21:27:19 +03:00
value="<?php p($_['uploadMaxFilesize']) ?>" />
2013-09-13 16:47:48 +03:00
<?php endif;?>
<!-- Send the requesttoken, this is needed for older IE versions
because they don't send the CSRF token via HTTP header in this case -->
2013-10-10 21:27:19 +03:00
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" id="requesttoken" />
2013-09-13 16:47:48 +03:00
<input type="hidden" class="max_human_file_size"
2013-10-10 21:27:19 +03:00
value="(max <?php p($_['uploadMaxHumanFilesize']); ?>)" />
<input type="file" id="file_upload_start" name='files[]' />
2014-03-14 14:52:29 +01:00
<a href="#" class="icon-upload upload svg">
2013-11-18 18:13:52 +03:00
<label><?php p($l->t('Upload')) ?></label></a>
2013-09-13 16:47:48 +03:00
</form>
</div>
</li>
2014-03-14 14:52:29 +01:00
<li class="progress icon-loading"><div><?php p($l->t('Loading documents...')); ?></div></li>
<li class="document template" data-id="" style="display:none;">
<a target="_blank" href=""><label></label></a>
</li>
</ul>
2013-08-17 19:42:50 +03:00
</div>
2016-03-05 18:57:23 -04:00
<input type="hidden" id="wopi-url" name="wopi-url" value="<?php p($_['wopi_url']) ?>" />
<?php if ($_['enable_previews']): ?>
<input type="hidden" id="previews_enabled" value="<?php p($_['enable_previews']) ?>" />
<?php endif; ?>
2016-10-19 02:50:59 +05:30
<input type="hidden" name="allowShareWithLink" id="allowShareWithLink" value="<?php p($_['allowShareWithLink']) ?>" />