国内流行的内容管理系统(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.

107 lines
3.6KB

  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. <form name="form3" action="content_select_list.php" method="get">
  13. <input type="hidden" name="f" value="<?php echo $f?>">
  14. <table class="table shadow-sm my-3">
  15. <tr>
  16. <td>
  17. <input type="text" name="keyword" class="admin-input-lg mr-3" value="<?php echo $keyword?>" placeholder="请输入文档标题或文档id">
  18. <select name="cid" class="admin-input-sm">
  19. <option value="0">选择分类</option>
  20. <?php echo $optionarr?>
  21. </select>
  22. <button type="submit" name="submit" class="btn btn-success btn-sm">搜索</button>
  23. </td>
  24. </tr>
  25. </table>
  26. </form>
  27. <form name="form2">
  28. <table class="table shadow-sm mb-3">
  29. <tr>
  30. <td colspan="9">文档列表</td>
  31. </tr>
  32. <tr align="center">
  33. <td width="6%">选择</td>
  34. <td width="6%">id</td>
  35. <td width="26%">文档标题</td>
  36. <td width="12%">栏目</td>
  37. <td width="6%">网页</td>
  38. <td width="6%">权限</td>
  39. <td width="10%">更新时间</td>
  40. <td width="6%">点击</td>
  41. <td>属性</td>
  42. </tr>
  43. {dede:datalist empty='<tr><td colspan="9" align="center">暂无记录</td></tr>'}
  44. <tr align="center">
  45. <td><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
  46. <td>{dede:field.id/}</td>
  47. <td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
  48. <td>{dede:field.typeid function='GetTypename(@me)'/}</td>
  49. <td>{dede:field.ismake function='IsHtmlArchives(@me)'/}</td>
  50. <td>{dede:field.arcrank function='GetRankName(@me)'/}</td>
  51. <td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
  52. <td>{dede:field.click/}</td>
  53. <td>{dede:field.flag function='IsCommendArchives(@me)'/}</td>
  54. </tr>
  55. {/dede:datalist}
  56. <tr>
  57. <td colspan="9">
  58. <a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
  59. <a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
  60. <a href="javascript:ReturnValue();" class="btn btn-success btn-sm">选定值</a>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td colspan="9" align="center">{dede:pagelist listsize='6'/}</td>
  65. </tr>
  66. </table>
  67. </form>
  68. <script>
  69. function getCheckboxItem() {
  70. var allSel = '';
  71. if (document.form2.arcID.value) return document.form2.arcID.value;
  72. for (i = 0; i < document.form2.arcID.length; i++) {
  73. if (document.form2.arcID[i].checked) {
  74. if (allSel == "")
  75. allSel = document.form2.arcID[i].value;
  76. else
  77. allSel = allSel + "," + document.form2.arcID[i].value;
  78. }
  79. }
  80. return allSel;
  81. }
  82. function selAll() {
  83. for (i = 0; i < document.form2.arcID.length; i++) {
  84. if (!document.form2.arcID[i].checked) {
  85. document.form2.arcID[i].checked = true;
  86. }
  87. }
  88. }
  89. function noSelAll() {
  90. for (i = 0; i < document.form2.arcID.length; i++) {
  91. if (document.form2.arcID[i].checked) {
  92. document.form2.arcID[i].checked = false;
  93. }
  94. }
  95. }
  96. function ReturnValue() {
  97. if (window.opener.document.<?php echo $f ?>.value == "") {
  98. window.opener.document.<?php echo $f ?>.value = getCheckboxItem();
  99. } else {
  100. window.opener.document.<?php echo $f ?>.value += "," + getCheckboxItem();
  101. }
  102. window.opener = null;
  103. window.close();
  104. }
  105. </script>
  106. </body>
  107. </html>