FeedbackClass.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. $enews=$_POST['enews'];
  19. if(empty($enews))
  20. {$enews=$_GET['enews'];}
  21. if($enews)
  22. {
  23. hCheckEcmsRHash();
  24. include("../../class/com_functions.php");
  25. }
  26. //设置访问端
  27. $moreportpid=0;
  28. if($enews=='ReMoreFeedbackClassFile')
  29. {
  30. $moreportpid=Moreport_hDoSetSelfPath(0);
  31. }
  32. if($enews=="ReMoreFeedbackClassFile")
  33. {
  34. ReMoreFeedbackClassFile(0,$logininid,$loginin);
  35. }
  36. //验证权限
  37. CheckLevel($logininid,$loginin,$classid,"feedbackf");
  38. include "../".LoadLang("pub/fun.php");
  39. if($enews=="AddFeedbackClass")
  40. {
  41. AddFeedbackClass($_POST,$logininid,$loginin);
  42. }
  43. elseif($enews=="EditFeedbackClass")
  44. {
  45. EditFeedbackClass($_POST,$logininid,$loginin);
  46. }
  47. elseif($enews=="DelFeedbackClass")
  48. {
  49. DelFeedbackClass($_GET,$logininid,$loginin);
  50. }
  51. $search=$ecms_hashur['ehref'];
  52. $page=(int)$_GET['page'];
  53. $page=RepPIntvar($page);
  54. $start=0;
  55. $line=30;//每页显示条数
  56. $page_line=23;//每页显示链接数
  57. $offset=$page*$line;//总偏移量
  58. $query="select bid,bname from {$dbtbpre}enewsfeedbackclass";
  59. $totalquery="select count(*) as total from {$dbtbpre}enewsfeedbackclass";
  60. $num=$empire->gettotal($totalquery);//取得总条数
  61. $query=$query." order by bid desc limit $offset,$line";
  62. $sql=$empire->query($query);
  63. $returnpage=page2($num,$line,$page_line,$start,$page,$search);
  64. ?>
  65. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  66. <html>
  67. <head>
  68. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  69. <title></title>
  70. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  71. </head>
  72. <body>
  73. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  74. <tr>
  75. <td width="50%">位置:<a href="feedback.php<?=$ecms_hashur['whehref']?>">管理信息反馈</a>&nbsp;&gt;&nbsp;<a href="FeedbackClass.php<?=$ecms_hashur['whehref']?>">管理反馈分类</a></td>
  76. <td><div align="right" class="emenubutton">
  77. <input type="button" name="Submit5" value="增加反馈分类" onclick="self.location.href='AddFeedbackClass.php?enews=AddFeedbackClass<?=$ecms_hashur['ehref']?>';">&nbsp;&nbsp;
  78. <input type="button" name="Submit52" value="管理反馈字段" onclick="self.location.href='ListFeedbackF.php<?=$ecms_hashur['whehref']?>';">
  79. </div></td>
  80. </tr>
  81. </table>
  82. <br>
  83. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  84. <tr class="header">
  85. <td width="6%"><div align="center">ID</div></td>
  86. <td width="32%" height="25"><div align="center">分类名称</div></td>
  87. <td width="42%"><div align="center">反馈提交地址</div></td>
  88. <td width="20%" height="25"><div align="center">操作</div></td>
  89. </tr>
  90. <?
  91. while($r=$empire->fetch($sql))
  92. {
  93. $gourl=$public_r[newsurl].'e/tool/feedback/?bid='.$r[bid];
  94. ?>
  95. <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
  96. <td><div align="center">
  97. <?=$r[bid]?>
  98. </div></td>
  99. <td height="25"> <div align="center">
  100. <a href="feedback.php?bid=<?=$r[bid]?><?=$ecms_hashur['ehref']?>" target="_blank" title="管理分类下的反馈信息"><?=$r[bname]?></a>
  101. </div></td>
  102. <td><div align="center">
  103. <input name="textfield" type="text" size="38" value="<?=$gourl?>">
  104. [<a href="<?=$gourl?>" target="_blank">访问</a>]</div></td>
  105. <td height="25"><div align="center">[<a href="AddFeedbackClass.php?enews=EditFeedbackClass&bid=<?=$r[bid]?><?=$ecms_hashur['ehref']?>">修改</a>]
  106. [<a href="AddFeedbackClass.php?enews=AddFeedbackClass&bid=<?=$r[bid]?>&docopy=1<?=$ecms_hashur['ehref']?>">复制</a>] [<a href="FeedbackClass.php?enews=DelFeedbackClass&bid=<?=$r[bid]?><?=$ecms_hashur['href']?>" onclick="return confirm('确认要删除?');">删除</a>] </div></td>
  107. </tr>
  108. <?
  109. }
  110. db_close();
  111. $empire=null;
  112. ?>
  113. <tr bgcolor="#FFFFFF">
  114. <td>&nbsp;</td>
  115. <td height="25" colspan="3"><?=$returnpage?></td>
  116. </tr>
  117. </table>
  118. </body>
  119. </html>