国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 line
4.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>文档回收站</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <ol class="breadcrumb">
  13. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  14. <li class="breadcrumb-item active">文档回收站</li>
  15. </ol>
  16. <div class="card shadow-sm">
  17. <div class="card-header">文档回收站</div>
  18. <div class="card-body">
  19. <form name="form2">
  20. <div class="table-responsive">
  21. <table class="table table-borderless table-hover">
  22. <thead>
  23. <tr>
  24. <td scope="col">id</td>
  25. <td scope="col">选择</td>
  26. <td scope="col">文档标题</td>
  27. <td scope="col">栏目</td>
  28. <td scope="col">更新时间</td>
  29. <td scope="col">点击</td>
  30. <td scope="col">操作</td>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. {dede:datalist}
  35. <tr align="center">
  36. <td>{dede:field.id/}</td>
  37. <td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
  38. <td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
  39. <td>{dede:field.typename/}</td>
  40. <td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
  41. <td>{dede:field.click/}</td>
  42. <td>
  43. <a href="javascript:moveArc({dede:field.id/});" class="btn btn-light btn-sm"><i class="fa fa-repeat" title="还原"></i></a>
  44. <a href="javascript:delArc({dede:field.id/});" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
  45. </td>
  46. </tr>
  47. {/dede:datalist}
  48. <tr>
  49. <td colspan="7">
  50. <a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
  51. <a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
  52. <a href="javascript:moveArc(0);" class="btn btn-success btn-sm">还原</a>
  53. <a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
  54. </td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. </div>
  59. </form>
  60. {dede:pagelist listsize='6'/}
  61. </div>
  62. </div>
  63. <script>
  64. function getCheckboxItem() {
  65. var allSel = '';
  66. if (document.form2.arcID.value) return document.form2.arcID.value;
  67. for (i = 0; i < document.form2.arcID.length; i++) {
  68. if (document.form2.arcID[i].checked) {
  69. if (allSel == "")
  70. allSel = document.form2.arcID[i].value;
  71. else
  72. allSel = allSel + "`" + document.form2.arcID[i].value;
  73. }
  74. }
  75. return allSel;
  76. }
  77. function getOneItem() {
  78. var allSel = '';
  79. if (document.form2.arcID.value) return document.form2.arcID.value;
  80. for (i = 0; i < document.form2.arcID.length; i++) {
  81. if (document.form2.arcID[i].checked) {
  82. allSel = document.form2.arcID[i].value;
  83. break;
  84. }
  85. }
  86. return allSel;
  87. }
  88. function selAll() {
  89. if (typeof document.form2.arcID === "object") {
  90. document.form2.arcID.checked = true;
  91. }
  92. for (i = 0; i < document.form2.arcID.length; i++) {
  93. if (!document.form2.arcID[i].checked) {
  94. document.form2.arcID[i].checked = true;
  95. }
  96. }
  97. }
  98. function noSelAll() {
  99. if (typeof document.form2.arcID === "object") {
  100. document.form2.arcID.checked = false;
  101. }
  102. for (i = 0; i < document.form2.arcID.length; i++) {
  103. if (document.form2.arcID[i].checked) {
  104. document.form2.arcID[i].checked = false;
  105. }
  106. }
  107. }
  108. function moveArc(aid) {
  109. var qstr = getCheckboxItem();
  110. if (aid == 0) aid = getOneItem();
  111. location = "archives_do.php?aid=" + aid + "&dopost=return&qstr=" + qstr;
  112. }
  113. function delArc(aid) {
  114. var qstr = getCheckboxItem();
  115. if (aid == 0) aid = getOneItem();
  116. location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=del&recycle=1";
  117. }
  118. </script>
  119. </body>
  120. </html>