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

116 lines
4.1KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  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 width="100%" align="center" cellpadding="2" cellspacing="1" class="table maintable mt-3 mb-3">
  52. <tr>
  53. <td bgcolor="#f8f8f8" colspan="9">文档列表</td>
  54. </tr>
  55. <form name="form2">
  56. <tr bgcolor="#fbfce2" align="center">
  57. <td width="6%">id</td>
  58. <td width="4%">选择</td>
  59. <td width="30%">文档标题</td>
  60. <td width="10%">更新时间</td>
  61. <td width="11%">类目</td>
  62. <td width="8%">点击</td>
  63. <td width="7%">HTML</td>
  64. <td width="10%">权限</td>
  65. <td width="13%">属性</td>
  66. </tr>
  67. {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'}
  68. <tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';">
  69. <td>{dede:field.id/}</td>
  70. <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td>
  71. <td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td>
  72. <td>{dede:field.senddate function="GetDateMk(@me)"/}</td>
  73. <td>{dede:field.typeid function='GetTypename(@me)'/}</td>
  74. <td>{dede:field.click/}</td>
  75. <td>{dede:field.ismake function="IsHtmlArchives(@me)"/}</td>
  76. <td>{dede:field.arcrank function="GetRankName(@me)"/}</td>
  77. <td>{dede:field.flag function="IsCommendArchives(@me)"/}</td>
  78. </tr>
  79. {/dede:datalist}
  80. <tr bgcolor="#fbfce2">
  81. <td colspan="9">
  82. <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
  83. <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
  84. <a href="javascript:ReturnValue()" class="btn btn-success btn-sm">把选定值加到列表</a>
  85. </td>
  86. </tr>
  87. </form>
  88. <tr>
  89. <td colspan="9" bgcolor="#fbfce2" align="center" class="py-2">{dede:pagelist listsize='6'/}</td>
  90. </tr>
  91. </table>
  92. <table width="100%" align="center" cellpadding="1" cellspacing="1" class="table maintable table-borderless">
  93. <tr>
  94. <form name="form3" action="content_select_list.php" method="get">
  95. <input type="hidden" name="f" value="<?php echo $f?>">
  96. <td>
  97. <table width="600" cellpadding="0" cellspacing="0">
  98. <tr>
  99. <td width="260" align="center">请选择类目:</td>
  100. <td width="170">
  101. <select name="cid" style="width:160px">
  102. <option value="0">选择分类</option>
  103. <?php echo $optionarr?>
  104. </select>
  105. </td>
  106. <td width="90">关键词:</td>
  107. <td width="170"><input type="text" name="keyword" value="<?php echo $keyword?>" style="width:160px"></td>
  108. <td width="90"><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  109. </tr>
  110. </table>
  111. </td>
  112. </form>
  113. </tr>
  114. </table>
  115. </body>
  116. </html>