ShowSvar.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. $modid=(int)$_GET['modid'];
  19. $msql=$empire->query("select mid,mname,searchvar from {$dbtbpre}enewsmod order by mid");
  20. ?>
  21. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  22. <html>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  25. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  26. <title>搜索字段列表</title>
  27. </head>
  28. <body>
  29. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  30. <tr>
  31. <td>位置:搜索字段列表</td>
  32. </tr>
  33. </table>
  34. <br>
  35. <?
  36. while($mr=$empire->fetch($msql))
  37. {
  38. ?>
  39. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#698CC3" id=m<?=$mr[mid]?>>
  40. <tr>
  41. <td><div align="center"><b><font color=ffffff>
  42. <?=$mr[mname]?>
  43. </font></b></div></td>
  44. </tr>
  45. <tr>
  46. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="3">
  47. <?
  48. $r=explode(",",$mr[searchvar]);
  49. $count=count($r)-1;
  50. for($i=1;$i<$count;$i++)
  51. {
  52. ?>
  53. <tr>
  54. <td><div align="center"><b> </b>
  55. <input name="textfield" type="text" value="<?=$r[$i]?>">
  56. </div></td>
  57. </tr>
  58. <?
  59. }
  60. ?>
  61. </table></td>
  62. </tr>
  63. <tr>
  64. <td><div align="center"><b><font color=ffffff>
  65. <input name="textfield2" type="text" value="<?=substr($mr[searchvar],1,strlen($mr[searchvar])-2);?>" size="36">
  66. </font></b></div></td>
  67. </tr>
  68. </table>
  69. <br>
  70. <?
  71. }
  72. ?>
  73. </body>
  74. </html>
  75. <?
  76. db_close();
  77. $empire=null;
  78. ?>