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

117 lines
4.2KB

  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 height="26" colspan="9" background="../static/web/img/tbg.gif">文章列表</td>
  54. </tr>
  55. <form name="form2">
  56. <tr align="center" bgcolor="#F9FCEF" height="26">
  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'
  69. onMouseOut="javascript:this.bgColor='#ffffff';" height="26">
  70. <td>{dede:field.id/}</td>
  71. <td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
  72. <td align='left'><a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives'>{dede:field.title/}</a></td>
  73. <td>{dede:field.senddate function="GetDateMk(@me)" /}</td>
  74. <td>{dede:field.typeid function='GetTypename(@me)'/}</td>
  75. <td>{dede:field.click/}</td>
  76. <td>{dede:field.ismake function="IsHtmlArchives(@me)" /}</td>
  77. <td>{dede:field.arcrank function="GetRankName(@me)" /}</td>
  78. <td>{dede:field.flag function="IsCommendArchives(@me)" /}</td>
  79. </tr>
  80. {/dede:datalist}
  81. <tr bgcolor="#F9FCEF">
  82. <td height="26" colspan="9">
  83. <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
  84. <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
  85. <a href="javascript:ReturnValue()" class="btn btn-success btn-sm">把选定值加到列表</a>
  86. </td>
  87. </tr>
  88. </form>
  89. <tr align="right" bgcolor="#EEF4EA">
  90. <td height="36" colspan="9" align="center">{dede:pagelist listsize='6'/}</td>
  91. </tr>
  92. </table>
  93. <table width='100%' align="center" cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' class="table maintable table-borderless">
  94. <tr>
  95. <form name='form3' action='content_select_list.php' method='get'>
  96. <input type='hidden' name='f' value='<?php echo $f?>'>
  97. <td>
  98. <table width='600' cellpadding='0' cellspacing='0'>
  99. <tr>
  100. <td width='260' align='center'>请选择类目:</td>
  101. <td width='260'>
  102. <select name='cid' style='width:160px'>
  103. <option value='0'>选择分类</option>
  104. <?php echo $optionarr?>
  105. </select>
  106. </td>
  107. <td width='100'>关键词:</td>
  108. <td width='260'><input type='text' name='keyword' value='<?php echo $keyword?>' style='width:160px'></td>
  109. <td width='100'><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  110. </tr>
  111. </table>
  112. </td>
  113. </form>
  114. </tr>
  115. </table>
  116. </body>
  117. </html>