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

180 lines
6.5KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>评论管理</title>
  7. <script language='javascript'>
  8. //获得选中文件的文件名
  9. function getCheckboxItem() {
  10. var allSel = "";
  11. if (document.feedback.fid.value) return document.feedback.fid.value;
  12. for (i = 0; i < document.feedback.fid.length; i++) {
  13. if (document.feedback.fid[i].checked) {
  14. if (allSel == "")
  15. allSel = document.feedback.fid[i].value;
  16. else
  17. allSel = allSel + "," + document.feedback.fid[i].value;
  18. }
  19. }
  20. return allSel;
  21. }
  22. function selAll() {
  23. for (i = 0; i < document.feedback.fid.length; i++) {
  24. document.feedback.fid[i].checked = true;
  25. }
  26. }
  27. function selNone() {
  28. for (i = 0; i < document.feedback.fid.length; i++) {
  29. document.feedback.fid[i].checked = false;
  30. }
  31. }
  32. function selNor() {
  33. for (i = 0; i < document.feedback.fid.length; i++) {
  34. if (document.feedback.fid[i].checked == false)
  35. document.feedback.fid[i].checked = true;
  36. else
  37. document.feedback.fid[i].checked = false;
  38. }
  39. }
  40. function delFeedback() {
  41. var qstr = getCheckboxItem();
  42. if (qstr == "") alert("你没选中任何内容!");
  43. else if (window.confirm('你确定要删除这些评论吗?')) location.href = "feedback_main.php?job=del&fid=" + qstr;
  44. }
  45. function delFeedbackIP() {
  46. var qstr = getCheckboxItem();
  47. if (qstr == "") alert("你没选中任何内容!");
  48. else if (window.confirm('你确定要删除这些评论吗?')) location.href = "feedback_main.php?job=delall&fid=" + qstr;
  49. }
  50. function checkFeedback() {
  51. var qstr = getCheckboxItem();
  52. if (qstr == "") alert("您没选中任何内容!");
  53. else location.href = "feedback_main.php?job=check&fid=" + qstr;
  54. }
  55. function editFeedback() {
  56. var qstr = getCheckboxItem();
  57. if (qstr == "") alert("您没选中任何内容!");
  58. else location.href = "feedback_edit.php?job=edit&fid=" + qstr;
  59. }
  60. </script>
  61. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  62. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  63. <link href="css/base.css" rel="stylesheet" type="text/css">
  64. <style>
  65. .maintable {
  66. width: 98%!important;
  67. }
  68. </style>
  69. </head>
  70. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  71. <table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6" class="table table-borderless maintable mt-3">
  72. <tr>
  73. <td height="28" background='images/tbg.gif' style="padding-left:10px;">
  74. <div style="float:left;">
  75. <a href='feedback_main.php'><u><b>评论管理</b></u></a>
  76. </div>
  77. <div style="float:right;padding-right:10px">
  78. <form name='form1'>
  79. 关键字:
  80. <input type='text' size='15' name='keyword' style='width:150'>
  81. <select name="typeid" style="width:180">
  82. <option value="0">--请选择--</option>
  83. {dede:global.openarray /}
  84. </select>
  85. <input type='submit' name='sb' value=' 搜索 ' class='coolbt' />
  86. </form>
  87. </div>
  88. </td>
  89. </tr>
  90. <form name='feedback'>
  91. <tr>
  92. <td height="215" bgcolor="#FFFFFF" valign="top">
  93. <table width='100%' border='0' cellpadding='0' cellspacing='0'>
  94. {dede:datalist}
  95. <tr height='25'>
  96. <td>
  97. <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEF7D2" class="table table-borderless">
  98. <tr bgcolor="#F4FAE4">
  99. <td width="9%">
  100. &nbsp;选择 <input name="fid" type="checkbox" class="np" id="fid"
  101. value="{dede:field.id/}">
  102. </td>
  103. <td width="12%">
  104. 用户:{dede:field.username/}
  105. </td>
  106. <td width="30%">
  107. 文档:<a href='feedback_main.php?aid={dede:field.aid/}'><u>{dede:field.arctitle
  108. function="RemoveXSS(@me)"/}</u></a> (<a
  109. href="{dede:global.cfg_phpurl /}/view.php?aid={dede:field.aid/}"
  110. target="_blank"><u>浏览</u></a>) <?php if($fields['replycount'] > 0) { ?><a href='feedback_main.php?fid={dede:field.id/}'>({dede:field.replycount/}条回复)</a> <?php } ?>
  111. </td>
  112. <td width="18%" align="center">
  113. IP地址:<a
  114. href='feedback_main.php?ip={dede:field.ip/}'><u>{dede:field.ip/}</u></a>
  115. </td>
  116. <td width="21%">
  117. 时间:{dede:field.dtime function="GetDateTimeMK(@me)" /}
  118. </td>
  119. <td width="10%" align="center">
  120. <a href='feedback_edit.php?id={dede:field.id/}'><img
  121. src="images/feedback-edit.gif" border="0" width="45"
  122. height="18"></a>
  123. </td>
  124. </tr>
  125. <tr align="center" bgcolor="#FFFFFF">
  126. <td height="28" colspan="6">
  127. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  128. <tr>
  129. <td align="left">
  130. {dede:field.ischeck function="IsCheck(@me)" /}
  131. {dede:field.msg function='cn_substr(Text2Html(@me), 50)'/}
  132. </td>
  133. </tr>
  134. </table>
  135. </td>
  136. </tr>
  137. </table>
  138. </td>
  139. </tr>
  140. {/dede:datalist}
  141. <tr>
  142. <td height='20' align='center' bgcolor="#F9FCEF">
  143. {dede:pagelist listsize='5' /}
  144. </td>
  145. </tr>
  146. <tr>
  147. <td height='30'>
  148. <table width="98%">
  149. <tr>
  150. <td width="30%">
  151. <input type='button' name='kk1' value='全选' onClick="selAll()"
  152. class="coolbg np" />
  153. <input type='button' name='kk2' value='取消' onClick="selNone()"
  154. class="coolbg np" />
  155. <input type='button' name='kk3' value='反选' onClick="selNor()"
  156. class="coolbg np" />
  157. </td>
  158. <td align="right">
  159. <input type='button' name='db' value=' 删除相同IP的所有评论 '
  160. onClick="delFeedbackIP()" class="coolbg np" />
  161. <input type='button' name='db' value=' 删除评论 ' onClick="delFeedback()"
  162. class="coolbg np" />
  163. <input type='button' name='db2' value=' 审核评论 ' onClick="checkFeedback()"
  164. class="coolbg np" />
  165. </td>
  166. </tr>
  167. </table>
  168. </td>
  169. </tr>
  170. </table>
  171. </td>
  172. </tr>
  173. </form>
  174. </table>
  175. </body>
  176. </html>