gbook.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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="0" cellspacing="0">
  24. <form name="gbookform" method="post" action="index.php" onsubmit="return confirm('确认要删除?');">
  25. <?php
  26. while($r=$empire->fetch($sql))
  27. {
  28. $i++;
  29. $bgcolor=" class='tableborder'";
  30. if($i%2==0)
  31. {
  32. $bgcolor=" bgcolor='#ffffff'";
  33. }
  34. $private='';
  35. if($r['isprivate'])
  36. {
  37. $private='*悄悄话* / ';
  38. }
  39. $r[uname]=stripSlashes($r[uname]);
  40. $msg='';
  41. if($r['uid'])
  42. {
  43. $msg=" / <a href='../msg/AddMsg/?username=$r[uname]' target='_blank'>消息回复</a>";
  44. $r['uname']="<b><a href='../../space/?userid=$r[uid]' target='_blank'>$r[uname]</a></b>";
  45. }
  46. $gbuname=$private.$r[uname]." / 留言于 ".$r[addtime]." / ip: ".$r[ip].":".$r[eipport].$msg;
  47. ?>
  48. <tr>
  49. <td height="25">
  50. <table width="100%" border="0" cellspacing="1" cellpadding="3"<?=$bgcolor?>>
  51. <tr>
  52. <td width="5%"><div align="center">
  53. <input name="gid[]" type="checkbox" id="gid[]" value="<?=$r[gid]?>">
  54. </div></td>
  55. <td width="78%">
  56. <?=$gbuname?> </td>
  57. <td width="17%"><div align="center">[<a href="#ecms" onclick="window.open('ReGbook.php?gid=<?=$r[gid]?>','','width=600,height=380,scrollbars=yes');">回复</a>]&nbsp;&nbsp;[<a href="index.php?enews=DelMemberGbook&gid=<?=$r[gid]?>" onclick="return confirm('确认要删除?');">删除</a>]</div></td>
  58. </tr>
  59. <tr>
  60. <td>&nbsp;</td>
  61. <td colspan="2"> <table border=0 width=100% cellspacing=1 cellpadding=10 bgcolor='#cccccc'>
  62. <tr>
  63. <td width='100%' bgcolor='#FFFFFF' style='word-break:break-all'>
  64. <?=nl2br(stripSlashes($r['gbtext']))?> </td>
  65. </tr>
  66. </table>
  67. <?
  68. if($r['retext'])
  69. {
  70. ?>
  71. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  72. <tr>
  73. <td><img src="../../data/images/regb.gif" width="18" height="18"><strong><font color="#FF0000">回复:</font></strong>
  74. <?=nl2br(stripSlashes($r['retext']))?> </td>
  75. </tr>
  76. </table>
  77. <?
  78. }
  79. ?> </td>
  80. </tr>
  81. </table>
  82. <br></td>
  83. </tr>
  84. <?
  85. }
  86. ?>
  87. <tr>
  88. <td height="23">
  89. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  90. <tr>
  91. <td width="5%"><div align="center"><input type='checkbox' name='chkall' value='on' onClick='CheckAll(this.form)'></div></td>
  92. <td width="95%">
  93. <?=$returnpage?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='submit' value='批量删除'>
  94. <input name="enews" type="hidden" id="enews" value="DelMemberGbook_All"> </td>
  95. </tr>
  96. </table></td>
  97. </tr>
  98. </form>
  99. </table>
  100. <?php
  101. require(ECMS_PATH.'e/template/incfile/footer.php');
  102. ?>