feedback.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <?php
  8. $public_diyr['pagetitle']='管理反馈';
  9. $url="<a href='../../../'>首页</a>&nbsp;>&nbsp;<a href='../cp/'>会员中心</a>&nbsp;>&nbsp;管理反馈";
  10. require(ECMS_PATH.'e/template/incfile/header.php');
  11. ?>
  12. <script>
  13. function CheckAll(form)
  14. {
  15. for (var i=0;i<form.elements.length;i++)
  16. {
  17. var e = form.elements[i];
  18. if (e.name != 'chkall')
  19. e.checked = form.chkall.checked;
  20. }
  21. }
  22. </script>
  23. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  24. <form name="feedbackform" method="post" action="index.php" onsubmit="return confirm('确认要删除?');">
  25. <tr class="header">
  26. <td width="6%" height="25"><div align="center"><input type='checkbox' name='chkall' value='on' onClick='CheckAll(this.form)'></div></td>
  27. <td width="58%"><div align="center">标题(点击查看)</div></td>
  28. <td width="25%"><div align="center">提交时间</div></td>
  29. <td width="11%"><div align="center">删除</div></td>
  30. </tr>
  31. <?php
  32. while($r=$empire->fetch($sql))
  33. {
  34. $r['uname']=stripSlashes($r['uname']);
  35. if($r['uid'])
  36. {
  37. $r['uname']="<a href='../../space/?userid=$r[uid]' target='_blank'>$r[uname]</a>";
  38. }
  39. else
  40. {
  41. $r['uname']='游客';
  42. }
  43. ?>
  44. <tr bgcolor="#FFFFFF">
  45. <td height="25"><div align="center">
  46. <input name="fid[]" type="checkbox" value="<?=$r[fid]?>">
  47. </div></td>
  48. <td height="25"><div align="left">
  49. <a href="#ecms" onclick="window.open('ShowFeedback.php?fid=<?=$r[fid]?>','','width=650,height=600,scrollbars=yes,top=70,left=100');"><?=stripSlashes($r[title])?></a>&nbsp;(<?=$r['uname']?>)
  50. </div></td>
  51. <td height="25"><div align="center">
  52. <?=$r[addtime]?>
  53. </div></td>
  54. <td height="25"><div align="center">
  55. <a href="index.php?enews=DelMemberFeedback&fid=<?=$r[fid]?>" onclick="return confirm('确认要删除?');">删除</a>
  56. </div></td>
  57. </tr>
  58. <?
  59. }
  60. ?>
  61. <tr bgcolor="#FFFFFF">
  62. <td height="25" colspan="4">
  63. <?=$returnpage?>
  64. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  65. <input type="submit" name="Submit" value="批量删除">
  66. <input name="enews" type="hidden" id="enews" value="DelMemberFeedback_All"></td>
  67. </tr>
  68. </form>
  69. </table>
  70. <?php
  71. require(ECMS_PATH.'e/template/incfile/footer.php');
  72. ?>