国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

113 satır
3.8KB

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