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

133 lines
4.6KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>选择文章</title>
  6. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  7. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  8. <link rel="stylesheet" type="text/css" href="css/base.css">
  9. <script language="javascript">
  10. //获得选中文件的文件名
  11. function getCheckboxItem() {
  12. var allSel = "";
  13. if (document.form2.arcID.value) return document.form2.arcID.value;
  14. for (i = 0; i < document.form2.arcID.length; i++) {
  15. if (document.form2.arcID[i].checked) {
  16. if (allSel == "")
  17. allSel = document.form2.arcID[i].value;
  18. else
  19. allSel = allSel + "," + document.form2.arcID[i].value;
  20. }
  21. }
  22. return allSel;
  23. }
  24. function selAll() {
  25. for (i = 0; i < document.form2.arcID.length; i++) {
  26. if (!document.form2.arcID[i].checked) {
  27. document.form2.arcID[i].checked = true;
  28. }
  29. }
  30. }
  31. function noSelAll() {
  32. for (i = 0; i < document.form2.arcID.length; i++) {
  33. if (document.form2.arcID[i].checked) {
  34. document.form2.arcID[i].checked = false;
  35. }
  36. }
  37. }
  38. function ReturnValue() {
  39. if (window.opener.document.<?php echo $f ?>.value == "") {
  40. window.opener.document.<?php echo $f ?>.value = getCheckboxItem();
  41. } else {
  42. window.opener.document.<?php echo $f ?>.value += "," + getCheckboxItem();
  43. }
  44. window.opener = null;
  45. window.close();
  46. }
  47. </script>
  48. </head>
  49. <body leftmargin="0" topmargin="0" background='images/allbg.gif'>
  50. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3">
  51. <tr bgcolor="#E7E7E7">
  52. <td height="26" colspan="9" background="images/tbg.gif">
  53. <strong> §文章列表</strong>
  54. </td>
  55. </tr>
  56. <form name="form2">
  57. <tr align="center" bgcolor="#FAFAF1" height="26">
  58. <td width="6%">ID</td>
  59. <td width="4%">选择</td>
  60. <td width="30%">文章标题</td>
  61. <td width="10%">更新时间</td>
  62. <td width="11%">类目</td>
  63. <td width="8%">点击</td>
  64. <td width="7%">HTML</td>
  65. <td width="10%">权限</td>
  66. <td width="13%">属性</td>
  67. </tr>
  68. {dede:datalist}
  69. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  70. onMouseOut="javascript:this.bgColor='#FFFFFF';" height="26">
  71. <td>{dede:field.id/}</td>
  72. <td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
  73. <td align='left'>
  74. <a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives'>{dede:field.title/}</a>
  75. </td>
  76. <td>{dede:field.senddate function="GetDateMk(@me)" /}</td>
  77. <td>{dede:field.typeid function='GetTypename(@me)'/}</td>
  78. <td>{dede:field.click/}</td>
  79. <td>{dede:field.ismake function="IsHtmlArchives(@me)" /}</td>
  80. <td>{dede:field.arcrank function="GetRankName(@me)" /}</td>
  81. <td>{dede:field.flag function="IsCommendArchives(@me)" /}</td>
  82. </tr>
  83. {/dede:datalist}
  84. <tr bgcolor="#FAFAF1">
  85. <td height="26" colspan="9">
  86. &nbsp;
  87. <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
  88. &nbsp;
  89. <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
  90. &nbsp;
  91. <a href="javascript:ReturnValue()" class="btn btn-success btn-sm">把选定值加到列表</a>
  92. </td>
  93. </tr>
  94. </form>
  95. <tr align="right" bgcolor="#EEF4EA">
  96. <td height="26" colspan="9" align="center">
  97. {dede:pagelist listsize=5/}
  98. </td>
  99. </tr>
  100. </table>
  101. <table width='100%' align="center" border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' class="table maintable table-borderless">
  102. <tr bgcolor='#EEF4EA'>
  103. <form name='form3' action='content_select_list.php' method='get'>
  104. <input type='hidden' name='f' value='<?php echo $f?>'>
  105. <td>
  106. <table width='600' border='0' cellpadding='0' cellspacing='0'>
  107. <tr>
  108. <td width='160' align='center'>请选择类目:</td>
  109. <td width='160'>
  110. <select name='cid' style='width:150px'>
  111. <option value='0'>选择分类...</option>
  112. <?php echo $optionarr?>
  113. </select>
  114. </td>
  115. <td width='100'>
  116. 关键字:
  117. </td>
  118. <td width='160'>
  119. <input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'>
  120. </td>
  121. <td width='100'>
  122. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  123. </td>
  124. </tr>
  125. </table>
  126. </td>
  127. </form>
  128. </tr>
  129. </table>
  130. </body>
  131. </html>