ListMemberF.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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,"memberf");
  20. $url="<a href='ListMemberF.php".$ecms_hashur['whehref']."'>管理会员字段</a>";
  21. $sql=$empire->query("select * from {$dbtbpre}enewsmemberf order by myorder,fid");
  22. ?>
  23. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  24. <html>
  25. <head>
  26. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  27. <title>管理字段</title>
  28. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  29. </head>
  30. <body>
  31. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  32. <tr>
  33. <td width="50%">位置:
  34. <?=$url?>
  35. </td>
  36. <td><div align="right" class="emenubutton">
  37. <input type="button" name="Submit2" value="增加字段" onclick="self.location.href='AddMemberF.php?enews=AddMemberF<?=$ecms_hashur['ehref']?>';">
  38. &nbsp;&nbsp;
  39. <input type="button" name="Submit2" value="管理会员表单" onclick="self.location.href='ListMemberForm.php<?=$ecms_hashur['whehref']?>';">
  40. </div></td>
  41. </tr>
  42. </table>
  43. <form name="form1" method="post" action="../ecmsmember.php" onsubmit="return confirm('确认要操作?');">
  44. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  45. <?=$ecms_hashur['form']?>
  46. <tr class="header">
  47. <td width="6%" height="25"><div align="center">顺序</div></td>
  48. <td width="27%" height="25">
  49. <div align="center">字段名</div></td>
  50. <td width="27%">
  51. <div align="center">字段标识</div></td>
  52. <td width="23%"><div align="center">字段类型</div></td>
  53. <td width="17%" height="25"><div align="center">操作</div></td>
  54. </tr>
  55. <?
  56. while($r=$empire->fetch($sql))
  57. {
  58. $ftype=$r[ftype];
  59. if($r[flen])
  60. {
  61. if($r[ftype]!="TEXT"&&$r[ftype]!="MEDIUMTEXT"&&$r[ftype]!="LONGTEXT")
  62. {
  63. $ftype.="(".$r[flen].")";
  64. }
  65. }
  66. ?>
  67. <tr bgcolor="ffffff" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
  68. <td height="25"><div align="center">
  69. <input name="myorder[]" type="text" id="myorder[]" value="<?=$r[myorder]?>" size="3">
  70. <input type=hidden name=fid[] value=<?=$r[fid]?>>
  71. </div></td>
  72. <td height="25"><div align="center">
  73. <?=$r[f]?>
  74. </div></td>
  75. <td><div align="center">
  76. <?=$r[fname]?>
  77. </div></td>
  78. <td><div align="center">
  79. <?=$ftype?>
  80. </div></td>
  81. <td height="25"><div align="center">
  82. [<a href='AddMemberF.php?enews=EditMemberF&fid=<?=$r[fid]?><?=$ecms_hashur['ehref']?>'>修改</a>]&nbsp;&nbsp;[<a href='../ecmsmember.php?enews=DelMemberF&fid=<?=$r[fid]?><?=$ecms_hashur['href']?>' onclick="return confirm('确认要删除?');">删除</a>]
  83. </div></td>
  84. </tr>
  85. <?
  86. }
  87. ?>
  88. <tr bgcolor="ffffff">
  89. <td height="25">&nbsp;</td>
  90. <td height="25" colspan="4"><input type="submit" name="Submit" value="修改字段顺序">
  91. <font color="#666666">(值越小越前面)</font>
  92. <input name="enews" type="hidden" id="enews" value="EditMemberFOrder">
  93. </td>
  94. </tr>
  95. </table>
  96. </form>
  97. </body>
  98. </html>
  99. <?
  100. db_close();
  101. $empire=null;
  102. ?>