list.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <div id="controls">
  2. <div class="actions creatable hidden">
  3. <?php if(!isset($_['dirToken'])):?>
  4. <div id="new" class="button">
  5. <a><?php p($l->t('New'));?></a>
  6. <ul>
  7. <li class="icon-filetype-text svg"
  8. data-type="file" data-newname="<?php p($l->t('New text file')) ?>.txt">
  9. <p><?php p($l->t('Text file'));?></p>
  10. </li>
  11. <li class="icon-filetype-folder svg"
  12. data-type="folder" data-newname="<?php p($l->t('New folder')) ?>">
  13. <p><?php p($l->t('Folder'));?></p>
  14. </li>
  15. <li class="icon-link svg" data-type="web">
  16. <p><?php p($l->t('From link'));?></p>
  17. </li>
  18. </ul>
  19. </div>
  20. <?php endif;?>
  21. <?php /* Note: the template attributes are here only for the public page. These are normally loaded
  22. through ajax instead (updateStorageStatistics).
  23. */ ?>
  24. <div id="upload" class="button"
  25. title="<?php isset($_['uploadMaxHumanFilesize']) ? p($l->t('Upload (max. %s)', array($_['uploadMaxHumanFilesize']))) : '' ?>">
  26. <input type="hidden" id="max_upload" name="MAX_FILE_SIZE" value="<?php isset($_['uploadMaxFilesize']) ? p($_['uploadMaxFilesize']) : '' ?>">
  27. <input type="hidden" id="upload_limit" value="<?php isset($_['uploadLimit']) ? p($_['uploadLimit']) : '' ?>">
  28. <input type="hidden" id="free_space" value="<?php isset($_['freeSpace']) ? p($_['freeSpace']) : '' ?>">
  29. <?php if(isset($_['dirToken'])):?>
  30. <input type="hidden" id="publicUploadRequestToken" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
  31. <input type="hidden" id="dirToken" name="dirToken" value="<?php p($_['dirToken']) ?>" />
  32. <?php endif;?>
  33. <input type="hidden" class="max_human_file_size"
  34. value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
  35. <input type="file" id="file_upload_start" name='files[]'
  36. data-url="<?php print_unescaped(OCP\Util::linkTo('files', 'ajax/upload.php')); ?>" />
  37. <a href="#" class="svg icon-upload"></a>
  38. </div>
  39. <div id="uploadprogresswrapper">
  40. <div id="uploadprogressbar"></div>
  41. <input type="button" class="stop icon-close"
  42. style="display:none" value="" />
  43. </div>
  44. </div>
  45. <div id="file_action_panel"></div>
  46. <div class="notCreatable notPublic hidden">
  47. <?php p($l->t('You don’t have permission to upload or create files here'))?>
  48. </div>
  49. <input type="hidden" name="permissions" value="" id="permissions">
  50. </div>
  51. <div id="emptycontent" class="hidden"><?php p($l->t('Nothing in here. Upload something!'))?></div>
  52. <table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="36" data-preview-y="36">
  53. <thead>
  54. <tr>
  55. <th id='headerName' class="hidden column-name">
  56. <div id="headerName-container">
  57. <input type="checkbox" id="select_all_files" class="select-all"/>
  58. <label for="select_all_files"></label>
  59. <a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a>
  60. <span id="selectedActionsList" class="selectedActions">
  61. <a href="" class="download">
  62. <img class="svg" alt="Download"
  63. src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>" />
  64. <?php p($l->t('Download'))?>
  65. </a>
  66. </span>
  67. </div>
  68. </th>
  69. <th id="headerSize" class="hidden column-size">
  70. <a class="size sort columntitle" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a>
  71. </th>
  72. <th id="headerDate" class="hidden column-mtime">
  73. <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a>
  74. <span class="selectedActions"><a href="" class="delete-selected">
  75. <?php p($l->t('Delete'))?>
  76. <img class="svg" alt="<?php p($l->t('Delete'))?>"
  77. src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
  78. </a></span>
  79. </th>
  80. </tr>
  81. </thead>
  82. <tbody id="fileList">
  83. </tbody>
  84. <tfoot>
  85. </tfoot>
  86. </table>
  87. <input type="hidden" name="dir" id="dir" value="" />
  88. <div id="editor"></div><!-- FIXME Do not use this div in your app! It is deprecated and will be removed in the future! -->
  89. <div id="uploadsize-message" title="<?php p($l->t('Upload too large'))?>">
  90. <p>
  91. <?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.'));?>
  92. </p>
  93. </div>
  94. <div id="scanning-message">
  95. <h3>
  96. <?php p($l->t('Files are being scanned, please wait.'));?> <span id='scan-count'></span>
  97. </h3>
  98. <p>
  99. <?php p($l->t('Currently scanning'));?> <span id='scan-current'></span>
  100. </p>
  101. </div>