servertaocanlist.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $bh=$_GET[bh];
  6. while0("*","yjcode_server where bh='".$bh."'");if(!$row=mysql_fetch_array($res)){Audit_alert("来源出错","serverlist.php","parent.");}
  7. ?>
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  9. <html xmlns="http://www.w3.org/1999/xhtml">
  10. <head>
  11. <meta http-equiv="x-ua-compatible" content="ie=7" />
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  13. <title>用户管理面板 - <?=webname?></title>
  14. <? include("cssjs.html");?>
  15. <style type="text/css">
  16. body{background-color:#fff;}
  17. .ksedi{float:left;margin:10px 10px 0 10px;width:880px;}
  18. .ksedi .d1{float:left;}
  19. .ksedi .d1 a{float:left;padding:5px 20px 0 20px;height:22px;border-radius:5px;margin:0 20px 0 0;}
  20. .ksedi .d1 a:hover{text-decoration:none;}
  21. .ksedi .d1 .a1{color:#fff;background-color:#FE5241;}
  22. .ksedi .d1 .a2{color:#fff;background-color:#535353;}
  23. .tccap{float:left;border:#E1E1E2 solid 1px;width:880px;margin:10px 0 0 10px;height:40px;text-align:center;background-color:#F5F5F5;}
  24. .tccap li{float:left;border-right:#e1e1e2 solid 1px;padding:12px 0 0 0;height:28px;}
  25. .tccap .l0{width:30px;padding-top:13px;height:27px;}
  26. .tccap .l1{width:342px;text-align:left;padding-left:10px;}
  27. .tccap .l2{width:102px;}
  28. .tccap .l4{width:148px;}
  29. .tccap .l5{width:152px;}
  30. .tccap .l6{width:90px;border-right:0;}
  31. .tclist{float:left;border:#E1E1E2 solid 1px;width:880px;margin:0 0 0 10px;height:32px;border-top:0;text-align:center;}
  32. .tclist li{float:left;border-right:#e1e1e2 solid 1px;padding:8px 0 0 0;height:24px;}
  33. .tclist .l0{width:30px;}
  34. .tclist .l1{width:342px;text-align:left;padding-left:10px;}
  35. .tclist .l2{width:102px;}
  36. .tclist .l4{width:148px;}
  37. .tclist .l5{width:152px;color:#ff6600;}
  38. .tclist .l6{width:90px;border-right:0;padding:6px 0 0 0;height:26px;}
  39. .tclist .l6 .s1{float:left;width:59px;border:#E6E6E6 solid 1px;padding:1px 0 0 9px;height:18px;margin:0 0 0 10px;text-align:left;background:url(img/jian.gif) no-repeat;background-position:55px 8px;background-color:#fff;}
  40. .tclist .l6 .gl{float:left;width:68px;border:#e6e6e6 solid 1px;border-top:0;margin:0 0 0 10px;position:relative;background-color:#fff;}
  41. .tclist .l6 .gl a{float:left;width:68px;padding:3px 0 0 0;height:18px;}
  42. .tclist .l6 .gl a:hover{text-decoration:none;background-color:#f2f2f2;}
  43. .tclist:hover{background-color:#f9f9f9;}
  44. .tclist1{background-color:#f9f9f9;}
  45. </style>
  46. <script language="javascript">
  47. function glover(x){
  48. document.getElementById("gl"+x).style.display="";
  49. }
  50. function glout(x){
  51. document.getElementById("gl"+x).style.display="none";
  52. }
  53. </script>
  54. </head>
  55. <body>
  56. <div class="ksedi">
  57. <div class="d1">
  58. <a href="servertaocan1lx.php?bh=<?=$bh?>" class="a1">新增套餐</a>
  59. <a href="javascript:NcheckDEL('9a','yjcode_servertaocan')" class="a2">删除</a>
  60. </div>
  61. </div>
  62. <ul class="tccap">
  63. <li class="l0"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  64. <li class="l1">套餐说明</li>
  65. <li class="l2">序号</li>
  66. <li class="l4">原价</li>
  67. <li class="l5">优惠价</li>
  68. <li class="l6">操作</li>
  69. </ul>
  70. <?
  71. while1("*","yjcode_servertaocan where serverbh='".$bh."' and userid=".$row[userid]." and zt=0 and admin=1 order by xh asc");while($row1=mysql_fetch_array($res1)){
  72. $nu="servertaocan1.php?id=".$row1[id]."&bh=".$bh;
  73. ?>
  74. <ul class="tclist tclist1">
  75. <li class="l0"><input name="C1" type="checkbox" value="<?=$row1[id]?>xcf0" /></li>
  76. <li class="l1"><a href="<?=$nu?>"><strong><?=$row1[tit1]?></strong></a></li>
  77. <li class="l2"><?=$row1[xh]?></li>
  78. <li class="l4"><?=$row1[money2]?></li>
  79. <li class="l5"><?=$row1[money1]?></li>
  80. <li class="l6" onmouseover="glover(<?=$row1[id]?>)" onmouseout="glout(<?=$row1[id]?>)">
  81. <span class="s1">管理</span>
  82. <div class="gl" style="display:none;" id="gl<?=$row1[id]?>">
  83. <a href="<?=$nu?>">编辑信息</a>
  84. <a href="servertaocan2lx.php?ty1id=<?=$row1[id]?>&bh=<?=$bh?>">添加二级</a>
  85. </div>
  86. </li>
  87. </ul>
  88. <?
  89. while2("*","yjcode_servertaocan where admin=2 and tit1='".$row1[tit1]."' and zt=0 and userid=".$row[userid]." and serverbh='".$bh."' order by xh asc");while($row2=mysql_fetch_array($res2)){
  90. $nu="servertaocan2.php?id=".$row2[id]."&ty1id=".$row1[id]."&bh=".$bh;
  91. ?>
  92. <ul class="tclist">
  93. <li class="l0"><input name="C1" type="checkbox" value="xcf<?=$row2[id]?>" /></li>
  94. <li class="l1">&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$nu?>"><?=$row2[tit2]?></a></li>
  95. <li class="l2"><?=$row2[xh]?></li>
  96. <li class="l4"><?=$row2[money2]?></li>
  97. <li class="l5"><?=$row2[money1]?></li>
  98. <li class="l6" onmouseover="glover(<?=$row2[id]?>)" onmouseout="glout(<?=$row2[id]?>)">
  99. <span class="s1">管理</span>
  100. <div class="gl" style="display:none;" id="gl<?=$row2[id]?>">
  101. <a href="<?=$nu?>">编辑信息</a>
  102. </div>
  103. </li>
  104. </ul>
  105. <? }}?>
  106. </body>
  107. </html>