ListPlF.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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,"plf");
  20. $url="<a href=ListAllPl.php".$ecms_hashur['whehref'].">管理评论</a>&nbsp;>&nbsp;<a href=ListPlF.php".$ecms_hashur['whehref'].">管理评论自定义字段</a>";
  21. $sql=$empire->query("select * from {$dbtbpre}enewsplf order by 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='AddPlF.php?enews=AddPlF<?=$ecms_hashur['ehref']?>';">
  38. </div></td>
  39. </tr>
  40. </table>
  41. <form name="form1" method="post" action="../ecmspl.php" onsubmit="return confirm('确认要操作?');">
  42. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  43. <?=$ecms_hashur['form']?>
  44. <tr class="header">
  45. <td width="27%" height="25"> <div align="center">字段名</div></td>
  46. <td width="27%"> <div align="center">字段标识</div></td>
  47. <td width="23%"><div align="center">字段类型</div></td>
  48. <td width="17%" height="25"><div align="center">操作</div></td>
  49. </tr>
  50. <?
  51. while($r=$empire->fetch($sql))
  52. {
  53. $ftype=$r[ftype];
  54. if($r[flen])
  55. {
  56. if($r[ftype]!="TEXT"&&$r[ftype]!="MEDIUMTEXT"&&$r[ftype]!="LONGTEXT")
  57. {
  58. $ftype.="(".$r[flen].")";
  59. }
  60. }
  61. ?>
  62. <tr bgcolor="ffffff">
  63. <td height="25"><div align="center">
  64. <?=$r[f]?>
  65. </div></td>
  66. <td><div align="center">
  67. <?=$r[fname]?>
  68. </div></td>
  69. <td><div align="center">
  70. <?=$ftype?>
  71. </div></td>
  72. <td height="25"><div align="center"> [<a href='AddPlF.php?enews=EditPlF&fid=<?=$r[fid]?><?=$ecms_hashur['ehref']?>'>修改</a>]&nbsp;&nbsp;[<a href='../ecmspl.php?enews=DelPlF&fid=<?=$r[fid]?><?=$ecms_hashur['href']?>' onclick="return confirm('确认要删除?');">删除</a>]
  73. </div></td>
  74. </tr>
  75. <?
  76. }
  77. ?>
  78. </table>
  79. </form>
  80. </body>
  81. </html>
  82. <?
  83. db_close();
  84. $empire=null;
  85. ?>