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

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