servertaocanlist.php 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. AdminSes_audit();
  5. $bh=$_GET[bh];
  6. while0("*","yjcode_server where bh='".$bh."'");if(!$row=mysql_fetch_array($res)){php_toheader("serverlist.php");}
  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. <link href="css/basic.css" rel="stylesheet" type="text/css" />
  15. <script type="text/javascript" src="js/jquery.min.js"></script>
  16. <script language="javascript" src="js/basic.js"></script>
  17. <script language="javascript" src="js/layer.js"></script>
  18. <style type="text/css">
  19. .tccap{float:left;border:#CACACA solid 1px;border-left:0;margin:7px 10px 0 10px;height:38px;width:880px;background-color:#E8E8E8;font-weight:700;}
  20. .tccap li{float:left;padding-top:10px;border-left:#CACACA solid 1px;height:28px;}
  21. .tccap .l1{width:27px;height:26px;text-align:left;padding:12px 0 0 8px;}
  22. .tccap .l1 input{float:left;width:16px;height:16px;}
  23. .tccap .l2{width:388px;text-align:left;padding-left:10px;}
  24. .tccap .l3{width:60px;}
  25. .tccap .l4{width:80px;}
  26. .tccap .l5{width:100px;}
  27. .tccap .l6{width:200px;}
  28. .tclist{float:left;border:#CACACA solid 1px;border-left:0;margin:0 10px;border-top:0;height:37px;width:880px;background-color:#F4F4F4;}
  29. .tclist li{float:left;padding-top:10px;border-left:#CACACA solid 1px;height:27px;}
  30. .tclist .l1{width:27px;height:25px;text-align:left;padding:12px 0 0 8px;background-color:#F1F1F1;}
  31. .tclist .l1 input{float:left;width:16px;height:16px;}
  32. .tclist .l2{width:388px;text-align:left;padding-left:10px;}
  33. .tclist .l3{width:60px;}
  34. .tclist .l4{width:80px;}
  35. .tclist .l5{width:100px;}
  36. .tclist .l6{width:200px;color:#999;text-align:center;}
  37. .tclist .l6 a{color:#333;}
  38. .tclist .l6 a:hover{color:#ff6600;text-decoration:underline;}
  39. .tclist:hover{background:rgba(235,235,235,1);-webkit-transition:background-color 0.3s linear;-moz-transition:background-color 0.3s linear;-o-transition:background-color 0.3s linear;transition:background-color 0.3s linear;}
  40. .tclist1{background-color:#fff;}
  41. .tclist1:hover{background:rgba(249,249,249,1);}
  42. .upage{width:-moz-calc(100% - 22px);width:-webkit-calc(100% - 22px);width:calc(100% - 22px);margin:0 10px;}
  43. </style>
  44. </head>
  45. <body>
  46. <!--begin-->
  47. <ul class="ksedi">
  48. <li class="l2">
  49. <a href="servertaocan1lx.php?bh=<?=$bh?>" style="margin-left:10px;" class="a1">新增套餐</a>
  50. <a href="javascript:checkDEL('33a','yjcode_servertaocan')" class="a2">删除</a>
  51. </li>
  52. </ul>
  53. <ul class="tccap">
  54. <li class="l1"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  55. <li class="l2">套餐说明</li>
  56. <li class="l3">序号</li>
  57. <li class="l4">原价</li>
  58. <li class="l5">优惠价</li>
  59. <li class="l6">操作</li>
  60. </ul>
  61. <?
  62. while1("*","yjcode_servertaocan where serverbh='".$bh."' and zt=0 and admin=1 order by xh asc");while($row1=mysql_fetch_array($res1)){
  63. $nu="servertaocan1.php?id=".$row1[id]."&bh=".$bh;
  64. ?>
  65. <ul class="tclist">
  66. <li class="l1"><input name="C1" type="checkbox" value="<?=$row1[id]?>xcf0" /></li>
  67. <li class="l2"><a href="<?=$nu?>"><strong><?=$row1[tit1]?></strong></a></li>
  68. <li class="l3"><?=$row1[xh]?></li>
  69. <li class="l4"><?=$row1[money2]?></li>
  70. <li class="l5"><?=$row1[money1]?></li>
  71. <li class="l6">
  72. <a href="servertaocan2lx.php?ty1id=<?=$row1[id]?>&bh=<?=$bh?>">添加二级套餐</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?=$nu?>">编辑</a>
  73. </li>
  74. </ul>
  75. <?
  76. while2("*","yjcode_servertaocan where admin=2 and zt=0 and tit1='".$row1[tit1]."' and serverbh='".$bh."' order by xh asc");while($row2=mysql_fetch_array($res2)){
  77. $nu="servertaocan2.php?id=".$row2[id]."&ty1id=".$row1[id]."&bh=".$bh;
  78. ?>
  79. <ul class="tclist tclist1">
  80. <li class="l1"><input name="C1" type="checkbox" value="xcf<?=$row2[id]?>" /></li>
  81. <li class="l2">&nbsp;&nbsp;- <a href="<?=$nu?>"><?=$row2[tit2]?></a></li>
  82. <li class="l3"><?=$row2[xh]?></li>
  83. <li class="l4"><?=$row2[money2]?></li>
  84. <li class="l5"><?=$row2[money1]?></li>
  85. <li class="l6">
  86. <a href="<?=$nu?>">编辑</a>
  87. </li>
  88. </ul>
  89. <? }}?>
  90. <!--end-->
  91. </body>
  92. </html>