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

108 lines
3.7KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>选择文档</title>
  7. <link rel="stylesheet" href="../static/web/font/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 align="center" class="table maintable my-3">
  15. <tr>
  16. <td bgcolor="#e9ecef">
  17. <input type="text" name="keyword" class="admin-input-lg mr-3" value="<?php echo $keyword?>">
  18. <select name="cid" class="admin-input-sm mr-3">
  19. <option value="0">选择分类</option>
  20. <?php echo $optionarr?>
  21. </select>
  22. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  23. </td>
  24. </tr>
  25. </table>
  26. </form>
  27. <form name="form2">
  28. <table align="center" class="table maintable mb-3">
  29. <tr>
  30. <td bgcolor="#f5f5f5" colspan="9">文档列表</td>
  31. </tr>
  32. <tr bgcolor="#e9ecef" align="center">
  33. <td width="6%">选择</td>
  34. <td width="6%">id</td>
  35. <td width="26%">文档标题</td>
  36. <td width="10%">更新时间</td>
  37. <td width="12%">栏目</td>
  38. <td width="6%">点击</td>
  39. <td width="6%">网页</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" id="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.senddate function="GetDateMk(@me)"/}</td>
  49. <td>{dede:field.typeid function='GetTypename(@me)'/}</td>
  50. <td>{dede:field.click/}</td>
  51. <td>{dede:field.ismake function="IsHtmlArchives(@me)"/}</td>
  52. <td>{dede:field.arcrank function="GetRankName(@me)"/}</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 bgcolor="#f5f5f5" colspan="9" align="center">{dede:pagelist listsize='6'/}</td>
  65. </tr>
  66. </table>
  67. </form>
  68. <script>
  69. //获得选中文件的文件名
  70. function getCheckboxItem() {
  71. var allSel = "";
  72. if (document.form2.arcID.value) return document.form2.arcID.value;
  73. for (i = 0; i < document.form2.arcID.length; i++) {
  74. if (document.form2.arcID[i].checked) {
  75. if (allSel == "")
  76. allSel = document.form2.arcID[i].value;
  77. else
  78. allSel = allSel + "," + document.form2.arcID[i].value;
  79. }
  80. }
  81. return allSel;
  82. }
  83. function selAll() {
  84. for (i = 0; i < document.form2.arcID.length; i++) {
  85. if (!document.form2.arcID[i].checked) {
  86. document.form2.arcID[i].checked = true;
  87. }
  88. }
  89. }
  90. function noSelAll() {
  91. for (i = 0; i < document.form2.arcID.length; i++) {
  92. if (document.form2.arcID[i].checked) {
  93. document.form2.arcID[i].checked = false;
  94. }
  95. }
  96. }
  97. function ReturnValue() {
  98. if (window.opener.document.<?php echo $f ?>.value == "") {
  99. window.opener.document.<?php echo $f ?>.value = getCheckboxItem();
  100. } else {
  101. window.opener.document.<?php echo $f ?>.value += "," + getCheckboxItem();
  102. }
  103. window.opener = null;
  104. window.close();
  105. }
  106. </script>
  107. </body>
  108. </html>