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

feedback_main.htm 6.9KB

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