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

175 lines
6.4KB

  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. </head>
  65. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  66. <table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6" class="table table-borderless maintable mt-3">
  67. <tr>
  68. <td height="28" background='images/tbg.gif' style="padding-left:10px;">
  69. <div style="float:left;">
  70. <a href='feedback_main.php'><u><b>评论管理</b></u></a>
  71. </div>
  72. <div style="float:right;padding-right:10px">
  73. <form name='form1'>
  74. 关键字:
  75. <input type='text' size='15' name='keyword' style='width:150'>
  76. <select name="typeid" style="width:180">
  77. <option value="0">--请选择--</option>
  78. {dede:global.openarray /}
  79. </select>
  80. <input type='submit' name='sb' value=' 搜索 ' class='coolbt' />
  81. </form>
  82. </div>
  83. </td>
  84. </tr>
  85. <form name='feedback'>
  86. <tr>
  87. <td height="215" bgcolor="#FFFFFF" valign="top">
  88. <table width='100%' border='0' cellpadding='0' cellspacing='0'>
  89. {dede:datalist}
  90. <tr height='25'>
  91. <td>
  92. <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEF7D2" class="table table-borderless">
  93. <tr bgcolor="#F4FAE4">
  94. <td width="9%">
  95. &nbsp;选择 <input name="fid" type="checkbox" class="np" id="fid"
  96. value="{dede:field.id/}">
  97. </td>
  98. <td width="12%">
  99. 用户:{dede:field.username/}
  100. </td>
  101. <td width="30%">
  102. 文档:<a href='feedback_main.php?aid={dede:field.aid/}'><u>{dede:field.arctitle
  103. function="RemoveXSS(@me)"/}</u></a> (<a
  104. href="{dede:global.cfg_phpurl /}/view.php?aid={dede:field.aid/}"
  105. target="_blank"><u>浏览</u></a>) <?php if($fields['replycount'] > 0) { ?><a href='feedback_main.php?fid={dede:field.id/}'>({dede:field.replycount/}条回复)</a> <?php } ?>
  106. </td>
  107. <td width="18%" align="center">
  108. IP地址:<a
  109. href='feedback_main.php?ip={dede:field.ip/}'><u>{dede:field.ip/}</u></a>
  110. </td>
  111. <td width="21%">
  112. 时间:{dede:field.dtime function="GetDateTimeMK(@me)" /}
  113. </td>
  114. <td width="10%" align="center">
  115. <a href='feedback_edit.php?id={dede:field.id/}'><img
  116. src="images/feedback-edit.gif" border="0" width="45"
  117. height="18"></a>
  118. </td>
  119. </tr>
  120. <tr align="center" bgcolor="#FFFFFF">
  121. <td height="28" colspan="6">
  122. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  123. <tr>
  124. <td align="left">
  125. {dede:field.ischeck function="IsCheck(@me)" /}
  126. {dede:field.msg function='cn_substr(Text2Html(@me), 50)'/}
  127. </td>
  128. </tr>
  129. </table>
  130. </td>
  131. </tr>
  132. </table>
  133. </td>
  134. </tr>
  135. {/dede:datalist}
  136. <tr>
  137. <td height='20' align='center' bgcolor="#F9FCEF">
  138. {dede:pagelist listsize='5' /}
  139. </td>
  140. </tr>
  141. <tr>
  142. <td height='30'>
  143. <table width="98%">
  144. <tr>
  145. <td width="30%">
  146. <input type='button' name='kk1' value='全选' onClick="selAll()"
  147. class="coolbg np" />
  148. <input type='button' name='kk2' value='取消' onClick="selNone()"
  149. class="coolbg np" />
  150. <input type='button' name='kk3' value='反选' onClick="selNor()"
  151. class="coolbg np" />
  152. </td>
  153. <td align="right">
  154. <input type='button' name='db' value=' 删除相同IP的所有评论 '
  155. onClick="delFeedbackIP()" class="coolbg np" />
  156. <input type='button' name='db' value=' 删除评论 ' onClick="delFeedback()"
  157. class="coolbg np" />
  158. <input type='button' name='db2' value=' 审核评论 ' onClick="checkFeedback()"
  159. class="coolbg np" />
  160. </td>
  161. </tr>
  162. </table>
  163. </td>
  164. </tr>
  165. </table>
  166. </td>
  167. </tr>
  168. </form>
  169. </table>
  170. </body>
  171. </html>