index.php 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--[if IE 8]><style>input[type="checkbox"]{padding:0;}table td{position:static !important;}</style><![endif]-->
  2. <div id="controls">
  3. <?php echo($_['breadcrumb']); ?>
  4. <?php if (!isset($_['readonly']) || !$_['readonly']):?>
  5. <div class="actions <?php if (isset($_['files']) and ! $_['readonly'] and count($_['files'])==0):?>emptyfolder<?php endif; ?>">
  6. <div id='new' class='button'>
  7. <a><?php echo $l->t('New');?></a>
  8. <ul class="popup popupTop">
  9. <li style="background-image:url('<?php echo OCP\mimetype_icon('text/plain') ?>')" data-type='file'><p><?php echo $l->t('Text file');?></p></li>
  10. <li style="background-image:url('<?php echo OCP\mimetype_icon('dir') ?>')" data-type='folder'><p><?php echo $l->t('Folder');?></p></li>
  11. <li style="background-image:url('<?php echo OCP\image_path('core','actions/public.png') ?>')" data-type='web'><p><?php echo $l->t('From url');?></p></li>
  12. </ul>
  13. </div>
  14. <div class="file_upload_wrapper svg">
  15. <form data-upload-id='1' class="file_upload_form" action="<?php echo OCP\Util::linkTo('files', 'ajax/upload.php'); ?>" method="post" enctype="multipart/form-data" target="file_upload_target_1">
  16. <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
  17. <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
  18. <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
  19. <button class="file_upload_filename">&nbsp;<img class='svg action' alt="Upload" src="<?php echo OCP\image_path("core", "actions/upload-white.svg"); ?>" /></button>
  20. <input class="file_upload_start" type="file" name='files[]'/>
  21. <a href="#" class="file_upload_button_wrapper" onclick="return false;" title="<?php echo $l->t('Upload'); echo ' max. '.$_['uploadMaxHumanFilesize'] ?>"></a>
  22. <iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>
  23. </form>
  24. </div>
  25. <div id="upload">
  26. <div id="uploadprogressbar"></div>
  27. <input type="button" class="stop" style="display:none" value="<?php echo $l->t('Cancel upload');?>" onclick="javascript:Files.cancelUploads();" />
  28. </div>
  29. </div>
  30. <div id="file_action_panel"></div>
  31. <?php else:?>
  32. <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
  33. <?php endif;?>
  34. </div>
  35. <div id='notification'></div>
  36. <?php if (isset($_['files']) and ! $_['readonly'] and count($_['files'])==0):?>
  37. <div id="emptyfolder"><?php echo $l->t('Nothing in here. Upload something!')?></div>
  38. <?php endif; ?>
  39. <table>
  40. <thead>
  41. <tr>
  42. <th id='headerName'>
  43. <?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" id="select_all" /><?php } ?>
  44. <span class='name'><?php echo $l->t( 'Name' ); ?></span>
  45. <span class='selectedActions'>
  46. <!-- <a href="" class="share"><img class='svg' alt="Share" src="<?php echo OCP\image_path("core", "actions/share.svg"); ?>" /> <?php echo $l->t('Share')?></a> -->
  47. <?php if($_['allowZipDownload']) : ?>
  48. <a href="" class="download"><img class='svg' alt="Download" src="<?php echo OCP\image_path("core", "actions/download.svg"); ?>" /> <?php echo $l->t('Download')?></a>
  49. <?php endif; ?>
  50. </span>
  51. </th>
  52. <th id="headerSize"><?php echo $l->t( 'Size' ); ?></th>
  53. <th id="headerDate"><span id="modified"><?php echo $l->t( 'Modified' ); ?></span><span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Delete')?> <img class="svg" alt="<?php echo $l->t('Delete')?>" src="<?php echo OCP\image_path("core", "actions/delete.svg"); ?>" /></a></span></th>
  54. </tr>
  55. </thead>
  56. <tbody id="fileList" data-readonly="<?php echo $_['readonly'];?>">
  57. <?php echo($_['fileList']); ?>
  58. </tbody>
  59. </table>
  60. <div id="editor"></div>
  61. <div id="uploadsize-message" title="<?php echo $l->t('Upload too large')?>">
  62. <p>
  63. <?php echo $l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.');?>
  64. </p>
  65. </div>
  66. <div id="scanning-message">
  67. <h3>
  68. <?php echo $l->t('Files are being scanned, please wait.');?> <span id='scan-count'></span>
  69. </h3>
  70. <p>
  71. <?php echo $l->t('Current scanning');?> <span id='scan-current'></span>
  72. </p>
  73. </div>
  74. <!-- config hints for javascript -->
  75. <input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php echo $_['allowZipDownload']; ?>" />