ReGbook.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $editor=1;
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. //验证权限
  19. CheckLevel($logininid,$loginin,$classid,"gbook");
  20. $lyid=(int)$_GET['lyid'];
  21. $bid=(int)$_GET['bid'];
  22. $r=$empire->fetch1("select * from {$dbtbpre}enewsgbook where lyid='$lyid' limit 1");
  23. $username="游客";
  24. if($r['userid'])
  25. {
  26. $username="<a href='../member/AddMember.php?enews=EditMember&userid=".$r['userid'].$ecms_hashur['ehref']."' target=_blank>".$r['username']."</a>";
  27. }
  28. db_close();
  29. $empire=null;
  30. ?>
  31. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  32. <html>
  33. <head>
  34. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  35. <title>回复留言</title>
  36. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  37. </head>
  38. <body>
  39. <form name="form1" method="post" action="gbook.php">
  40. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class=tableborder>
  41. <?=$ecms_hashur['form']?>
  42. <tr class=header>
  43. <td height="25" colspan="2">回复/修改留言
  44. <input name="enews" type="hidden" id="enews" value="ReGbook">
  45. <input name="lyid" type="hidden" id="lyid" value="<?=$lyid?>">
  46. <input name="bid" type="hidden" id="bid" value="<?=$bid?>"></td>
  47. </tr>
  48. <tr bgcolor="#FFFFFF">
  49. <td width="20%" height="25">留言发表者:</td>
  50. <td width="80%" height="25">
  51. <?=stripSlashes($r[name])?>&nbsp;(<?=$username?>)
  52. </td>
  53. </tr>
  54. <tr bgcolor="#FFFFFF">
  55. <td height="25">留言内容:</td>
  56. <td height="25">
  57. <?=nl2br(stripSlashes($r[lytext]))?>
  58. </td>
  59. </tr>
  60. <tr bgcolor="#FFFFFF">
  61. <td height="25">发布时间:</td>
  62. <td height="25">
  63. <?=$r[lytime]?>&nbsp;
  64. (IP:
  65. <?=$r[ip]?>)
  66. </td>
  67. </tr>
  68. <tr bgcolor="#FFFFFF">
  69. <td height="25"><strong>回复内容:</strong></td>
  70. <td height="25"><textarea name="retext" cols="60" rows="9" id="retext"><?=stripSlashes($r[retext])?></textarea> </td>
  71. </tr>
  72. <tr bgcolor="#FFFFFF">
  73. <td height="25">&nbsp;</td>
  74. <td height="25"><input type="submit" name="Submit" value="提交">
  75. <input type="reset" name="Submit2" value="重置"></td>
  76. </tr>
  77. <tr bgcolor="#FFFFFF">
  78. <td height="25" colspan="2"><div align="center">[ <a href="javascript:window.close();">关
  79. 闭</a> ]</div></td>
  80. </tr>
  81. </table>
  82. </form>
  83. </body>
  84. </html>