国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

123 Zeilen
5.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 src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script src="js/main.js"></script>
  13. <script>
  14. //获得选中文件的文件名
  15. function getCheckboxItem() {
  16. var allSel = "";
  17. if (document.feedback.fid.value) return document.feedback.fid.value;
  18. for (i = 0; i < document.feedback.fid.length; i++) {
  19. if (document.feedback.fid[i].checked) {
  20. if (allSel == "")
  21. allSel = document.feedback.fid[i].value;
  22. else
  23. allSel = allSel + "," + document.feedback.fid[i].value;
  24. }
  25. }
  26. return allSel;
  27. }
  28. function selAll() {
  29. for (i = 0; i < document.feedback.fid.length; i++) {
  30. document.feedback.fid[i].checked = true;
  31. }
  32. }
  33. function selNone() {
  34. for (i = 0; i < document.feedback.fid.length; i++) {
  35. document.feedback.fid[i].checked = false;
  36. }
  37. }
  38. function selNor() {
  39. for (i = 0; i < document.feedback.fid.length; i++) {
  40. if (document.feedback.fid[i].checked == false)
  41. document.feedback.fid[i].checked = true;
  42. else
  43. document.feedback.fid[i].checked = false;
  44. }
  45. }
  46. function delFeedback() {
  47. var qstr = getCheckboxItem();
  48. if (qstr == "") ShowMsg("您没选中任何内容");
  49. else if (window.confirm('您确定要删除这些评论吗')) location.href = "feedback_main.php?job=del&fid=" + qstr;
  50. }
  51. function delFeedbackIP() {
  52. var qstr = getCheckboxItem();
  53. if (qstr == "") ShowMsg("您没选中任何内容");
  54. else if (window.confirm('您确定要删除这些评论吗')) location.href = "feedback_main.php?job=delall&fid=" + qstr;
  55. }
  56. function checkFeedback() {
  57. var qstr = getCheckboxItem();
  58. if (qstr == "") ShowMsg("您没选中任何内容");
  59. else location.href = "feedback_main.php?job=check&fid=" + qstr;
  60. }
  61. function editFeedback() {
  62. var qstr = getCheckboxItem();
  63. if (qstr == "") ShowMsg("您没选中任何内容");
  64. else location.href = "feedback_edit.php?job=edit&fid=" + qstr;
  65. }
  66. </script>
  67. </head>
  68. <body>
  69. <form name="form1">
  70. <table width="98%" cellpadding="3" align="center" cellspacing="1" class="table maintable my-3">
  71. <tr bgcolor="#f5f5f5">
  72. <td width="180"><input type="text" name="keyword" placeholder="请输入关键词" class="biz-input-sm"></td>
  73. <td width="170">
  74. <select name="typeid" class="biz-input-sm">
  75. <option value="0">请选择</option>
  76. {dede:global.openarray/}
  77. </select>
  78. </td>
  79. <td><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  80. </tr>
  81. </table>
  82. </form>
  83. <form name="feedback">
  84. <table width="98%" cellpadding="0" cellspacing="0" align="center" class="table maintable mb-3">
  85. <tr>
  86. <td colspan="6" bgcolor="#f5f5f5">评论管理</td>
  87. </tr>
  88. {dede:datalist empty='<tr><td colspan="6"><center>暂无内容</center></td></tr>'}
  89. <tr>
  90. <td width="6%">选择 <input type="checkbox" name="fid" id="fid" value="{dede:field.id/}"></td>
  91. <td width="10%">用户:{dede:field.username/} {dede:field.ischeck function="IsCheck(@me)"/}</td>
  92. <td width="30%">
  93. <span>文档:<a href='feedback_main.php?aid={dede:field.aid/}'>{dede:field.arctitle function="RemoveXSS(@me)"/}</a></span>
  94. <span>评论:{dede:field.msg function='cn_substr(Text2Html(@me),280)'/}</span>
  95. <a href="archives_do.php?aid={dede:field.aid/}&dopost=viewArchives" target="_blank" class="btn btn-outline-success btn-sm">浏览</a>
  96. <?php if ($fields['replycount'] > 0) {?><a href='feedback_main.php?fid={dede:field.id/}'>{dede:field.replycount/}条回复</a><?php }?>
  97. </td>
  98. <td width="12%" align="center">地址:<a href='feedback_main.php?ip={dede:field.ip/}'>{dede:field.ip/}</a></td>
  99. <td width="12%">时间:{dede:field.dtime function="GetDateTimeMK(@me)"/}</td>
  100. <td align="center">
  101. <a class="btn btn-success btn-sm" href='feedback_edit.php?id={dede:field.id/}'>编辑评论</a>
  102. <a class="btn btn-success btn-sm" href='feedback_edit.php?id={dede:field.id/}&dopost=makehtml'>更新评论</a>
  103. </td>
  104. </tr>
  105. {/dede:datalist}
  106. <tr>
  107. <td colspan="6">
  108. <button type="button" name="kk1" onClick="selAll()" class="btn btn-success btn-sm">全选</button>
  109. <button type="button" name="kk2" onClick="selNone()" class="btn btn-success btn-sm">取消</button>
  110. <button type="button" name="kk3" onClick="selNor()" class="btn btn-success btn-sm">反选</button>
  111. <button type="button" name="db" onClick="delFeedbackIP()" class="btn btn-danger btn-sm">删除所有相同地址评论</button>
  112. <button type="button" name="db" onClick="delFeedback()" class="btn btn-danger btn-sm">删除评论</button>
  113. <button type="button" name="db2" onClick="checkFeedback()" class="btn btn-success btn-sm">审核评论</button>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td colspan="6" bgcolor="#f5f5f5" align="center" class="py-2">{dede:pagelist listsize='6'/}</td>
  118. </tr>
  119. </table>
  120. </form>
  121. </body>
  122. </html>