ListMemberForm.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. require "../".LoadLang("pub/fun.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. //验证用户
  11. $lur=is_login();
  12. $logininid=$lur['userid'];
  13. $loginin=$lur['username'];
  14. $loginrnd=$lur['rnd'];
  15. $loginlevel=$lur['groupid'];
  16. $loginadminstyleid=$lur['adminstyleid'];
  17. //ehash
  18. $ecms_hashur=hReturnEcmsHashStrAll();
  19. //验证权限
  20. CheckLevel($logininid,$loginin,$classid,"memberf");
  21. $search=$ecms_hashur['ehref'];
  22. $page=(int)$_GET['page'];
  23. $page=RepPIntvar($page);
  24. $start=0;
  25. $line=30;//每页显示条数
  26. $page_line=23;//每页显示链接数
  27. $offset=$page*$line;//总偏移量
  28. $query="select fid,fname from {$dbtbpre}enewsmemberform";
  29. $totalquery="select count(*) as total from {$dbtbpre}enewsmemberform";
  30. $num=$empire->gettotal($totalquery);//取得总条数
  31. $query=$query." order by fid desc limit $offset,$line";
  32. $sql=$empire->query($query);
  33. $returnpage=page2($num,$line,$page_line,$start,$page,$search);
  34. ?>
  35. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  36. <html>
  37. <head>
  38. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  39. <title></title>
  40. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  41. </head>
  42. <body>
  43. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  44. <tr>
  45. <td width="50%">位置:<a href="ListMemberForm.php<?=$ecms_hashur['whehref']?>">管理会员表单</a></td>
  46. <td><div align="right" class="emenubutton">
  47. <input type="button" name="Submit5" value="增加会员表单" onclick="self.location.href='AddMemberForm.php?enews=AddMemberForm<?=$ecms_hashur['ehref']?>';">
  48. &nbsp;&nbsp;
  49. <input type="button" name="Submit5" value="管理会员字段" onclick="self.location.href='ListMemberF.php<?=$ecms_hashur['whehref']?>';">
  50. </div></td>
  51. </tr>
  52. </table>
  53. <br>
  54. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  55. <tr class="header">
  56. <td width="8%"><div align="center">ID</div></td>
  57. <td width="64%" height="25"><div align="center">表单名称</div></td>
  58. <td width="28%" height="25"><div align="center">操作</div></td>
  59. </tr>
  60. <?
  61. while($r=$empire->fetch($sql))
  62. {
  63. ?>
  64. <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
  65. <td><div align="center">
  66. <?=$r[fid]?>
  67. </div></td>
  68. <td height="25"> <div align="center">
  69. <?=$r[fname]?>
  70. </div></td>
  71. <td height="25"><div align="center">[<a href="AddMemberForm.php?enews=EditMemberForm&fid=<?=$r[fid]?><?=$ecms_hashur['ehref']?>">修改</a>]
  72. [<a href="AddMemberForm.php?enews=AddMemberForm&fid=<?=$r[fid]?>&docopy=1<?=$ecms_hashur['ehref']?>">复制</a>]
  73. [<a href="../ecmsmember.php?enews=DelMemberForm&fid=<?=$r[fid]?><?=$ecms_hashur['href']?>" onclick="return confirm('确认要删除?');">删除</a>]
  74. </div></td>
  75. </tr>
  76. <?
  77. }
  78. db_close();
  79. $empire=null;
  80. ?>
  81. <tr bgcolor="#FFFFFF">
  82. <td height="25" colspan="3">
  83. <?=$returnpage?>
  84. </td>
  85. </tr>
  86. </table>
  87. </body>
  88. </html>