recycle.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?php
  2. require 'checklogin.inc';
  3. require_once '../public/config.php';
  4. require_once '../public/load_lang.php';
  5. //load language file
  6. if(file_exists($dir_language.$currLanguage.".php")){
  7. require $dir_language.$currLanguage.".php";
  8. }
  9. else{
  10. include $dir_language."default.php";
  11. }
  12. if(isset($_GET["device"])){
  13. $currDevice=$_GET["device"];
  14. }
  15. else{
  16. if(isset($_COOKIE["device"])){
  17. $currDevice=$_COOKIE["device"];
  18. }
  19. else{
  20. $currDevice="computer";
  21. }
  22. }
  23. ?>
  24. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  25. <html>
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  28. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  29. <link type="text/css" rel="stylesheet" href="css/style.css"/>
  30. <link type="text/css" rel="stylesheet" href="css/color_day.css" id="colorchange" />
  31. <title><?php echo $_local->gui->pcd_studio; ?></title>
  32. <script language="javascript" src="js/common.js"></script>
  33. <script language="javascript" src="js/index_mydoc.js"></script>
  34. <script src="js/jquery-3.3.1.min.js"></script>
  35. <script src="../public/js/jquery.js"></script>
  36. <script src="js/fixedsticky.js"></script>
  37. <script src="../public/js/notify.js"></script>
  38. <script src="../public/js/comm.js"></script>
  39. <link type="text/css" rel="stylesheet" href="../public/css/notyfy.css"/>
  40. <script type="text/javascript">
  41. <?php require_once '../public/load_lang_js.php';//加载js语言包?>
  42. var g_device = "computer";
  43. var strSertch = location.search;
  44. if(strSertch.length>0){
  45. strSertch = strSertch.substr(1);
  46. var sertchList=strSertch.split('&');
  47. for ( i in sertchList){
  48. var item = sertchList[i].split('=');
  49. if(item[0]=="device"){
  50. g_device=item[1];
  51. }
  52. }
  53. }
  54. if(g_device=="mobile"){
  55. g_is_mobile=true;
  56. }
  57. else{
  58. g_is_mobile=false;
  59. }
  60. var g_language="en";
  61. function menuLangrage(obj){
  62. g_language=obj.value;
  63. setCookie('language',g_language,365);
  64. window.location.assign("index.php?language="+g_language);
  65. }
  66. var gCurrPage="recycle_bin";
  67. </script>
  68. <style>
  69. #recycle_bin {
  70. background-color: var(--btn-border-color);
  71. }
  72. #recycle_bin:hover{
  73. background-color: var(--btn-border-color);
  74. color: var(--btn-color);
  75. cursor:auto;
  76. }
  77. </style>
  78. </head>
  79. <body id="file_list_body" onLoad="recycleInit()">
  80. <?php
  81. require_once 'index_tool_bar.php';
  82. ?>
  83. <script>
  84. document.getElementById("id_language").value="<?php echo($currLanguage); ?>";
  85. </script>
  86. <div class="index_inner" style=" margin-left: 18em;margin-top: 5em;">
  87. <div class="file_list_block">
  88. <div class="tool_bar">
  89. <div>
  90. <?php echo $_local->gui->recycle_bin;?>
  91. </div>
  92. <div>
  93. <span class="icon_btn_div">
  94. <span class="icon_btn_tip"><?php echo $_local->gui->restore;?></span>
  95. <button id="edit_title" type="button" class="icon_btn" onclick="file_restore()" >
  96. <svg class="icon">
  97. <use xlink:href="./svg/icon.svg#ic_restore_24px"></use>
  98. </svg>
  99. </button>
  100. </span>
  101. <span class="icon_btn_div">
  102. <span class="icon_btn_tip"><?php echo $_local->gui->completely_delete;?></span>
  103. <button id="to_recycle" type="button" class="icon_btn" onclick="" title=" ">
  104. <svg class="icon">
  105. <use xlink:href="./svg/icon.svg#ic_delete"></use>
  106. </svg>
  107. </button>
  108. </span>
  109. </div>
  110. </div>
  111. <div id="file_filter" style="display:none;">
  112. <div style="display:flex;justify-content: space-between;">
  113. <div>
  114. <select id="id_index_status" onchange="showUserFilaList()">
  115. <option value="all" >
  116. <?php echo $module_gui_str['editor_dictionary']['1018'];//全部?>
  117. </option>
  118. <option value="share" >
  119. <?php echo $module_gui_str['tools']['1017'];//已共享?>
  120. </option>
  121. <option value="recycle" selected>
  122. <?php echo $module_gui_str['tools']['1007'];//回收站?>
  123. </option>
  124. </select>
  125. </div>
  126. <div><?php echo $module_gui_str['editor']['1059'];//排序方式?>
  127. <select id="id_index_orderby" onchange="showUserFilaList()">
  128. <option value="accese_time" ><?php echo $module_gui_str['editor']['1060'];//訪問?></option>
  129. <option value="modify_time" ><?php echo $module_gui_str['editor']['1061'];//修改?></option>
  130. <option value="create_time" ><?php echo $module_gui_str['editor']['1062'];//創建?></option>
  131. <option value="title" ><?php echo $module_gui_str['editor']['1063'];//標題?></option>
  132. </select>
  133. <select id="id_index_order" onchange="showUserFilaList()">
  134. <option value="DESC" ><?php echo $module_gui_str['editor']['1111'];//降序?></option>
  135. <option value="ASC" ><?php echo $module_gui_str['editor']['1110'];//升序?></option>
  136. </select>
  137. <button id="file_select" onclick="mydoc_file_select(true)">
  138. 选择
  139. </button>
  140. </div>
  141. </div>
  142. <div>
  143. <input id="keyword" type="input" placeholder='<?php echo $module_gui_str['editor']['1114'].$module_gui_str['editor']['1115'];?>' onkeyup="file_search_keyup()"/>
  144. </div>
  145. <div>
  146. <?php echo $module_gui_str['tools']['1005'];?>:<span id="tag_list"><span class="tag"><?php echo $module_gui_str['tools']['1006'];?><a>×</a></span></span><input type="input" style="width:10em;">
  147. </div>
  148. </div>
  149. <div id="file_tools" style="display:none;">
  150. <div style="display:flex;justify-content: space-between;">
  151. <div>
  152. <span id="button_group_nomal" >
  153. <button onclick="file_del()"><?php echo $module_gui_str['tools']['1009'];//刪除?></button>
  154. <button onclick="file_share(true)"><?php echo $module_gui_str['tools']['1008'];//共享?></button>
  155. <button onclick="file_share(false)"><?php echo $module_gui_str['tools']['1010'];//取消共享?></button>
  156. </span>
  157. <span id="button_group_recycle" style="dispaly:none">
  158. <button onclick="file_remove()" style="background-color:red;"><?php echo $module_gui_str['tools']['1016'];//彻底删除?></button>
  159. <button onclick="file_remove_all()"><?php echo $module_gui_str['tools']['1015'];//清空回收站?></button>
  160. </span>
  161. </div>
  162. <div>
  163. <button onclick="mydoc_file_select(false)"><?php echo $module_gui_str['editor']['1028'];//取消?></button>
  164. </div>
  165. </div>
  166. </div>
  167. <div>
  168. <div class="file_list_row" style="border-top: none;">
  169. <div class="file_list_col_1"><input type="checkbox" checked /></div>
  170. <div class="file_list_col_2"><?php echo $_local->gui->title;?></div>
  171. <div class="file_list_col_3"><?php echo "删除时间";?></div>
  172. <div class="file_list_col_4"><?php echo $_local->gui->time;?></div>
  173. <div class="file_list_col_5"><?php echo $_local->gui->size;?></div>
  174. </div>
  175. </div>
  176. <div id="userfilelist">
  177. <?php echo $module_gui_str['editor']['1065'];?>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="foot_div">
  182. <?php echo $module_gui_str['editor']['1066'];?>
  183. </div>
  184. </body>
  185. </html>