taocanlist.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. AdminSes_audit();
  5. $bh=$_GET[bh];
  6. while0("*","yjcode_pro where bh='".$bh."'");if(!$row=mysql_fetch_array($res)){php_toheader("productlist.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. /*视频*/
  20. .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;}
  21. .tccap li{float:left;padding-top:10px;border-left:#CACACA solid 1px;height:28px;}
  22. .tccap .l1{width:27px;height:26px;text-align:left;padding:12px 0 0 8px;}
  23. .tccap .l1 input{float:left;width:16px;height:16px;}
  24. .tccap .l2{width:288px;text-align:left;padding-left:10px;}
  25. .tccap .l3{width:60px;}
  26. .tccap .l7{width:100px;}
  27. .tccap .l4{width:80px;}
  28. .tccap .l5{width:100px;}
  29. .tccap .l6{width:200px;}
  30. .tclist{float:left;border:#CACACA solid 1px;border-left:0;margin:0 10px;border-top:0;height:37px;width:880px;background-color:#F4F4F4;}
  31. .tclist li{float:left;padding-top:10px;border-left:#CACACA solid 1px;height:27px;}
  32. .tclist .l1{width:27px;height:25px;text-align:left;padding:12px 0 0 8px;background-color:#F1F1F1;}
  33. .tclist .l1 input{float:left;width:16px;height:16px;}
  34. .tclist .l2{width:288px;text-align:left;padding-left:10px;}
  35. .tclist .l3{width:60px;}
  36. .tclist .l7{width:100px;}
  37. .tclist .l4{width:80px;}
  38. .tclist .l5{width:100px;}
  39. .tclist .l6{width:200px;color:#999;text-align:center;}
  40. .tclist .l6 a{color:#333;}
  41. .tclist .l6 a:hover{color:#ff6600;text-decoration:underline;}
  42. .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;}
  43. .tclist1{background-color:#fff;}
  44. .tclist1:hover{background:rgba(249,249,249,1);}
  45. .upage{width:-moz-calc(100% - 22px);width:-webkit-calc(100% - 22px);width:calc(100% - 22px);margin:0 10px;}
  46. </style>
  47. </head>
  48. <body>
  49. <!--begin-->
  50. <ul class="ksedi">
  51. <li class="l2">
  52. <a href="taocanlx.php?bh=<?=$bh?>" style="margin-left:10px;" class="a1">新增套餐</a>
  53. <a href="javascript:checkDEL(33,'yjcode_taocan')" class="a2">删除</a>
  54. </li>
  55. </ul>
  56. <ul class="tccap">
  57. <li class="l1"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  58. <li class="l2">套餐说明</li>
  59. <li class="l3">序号</li>
  60. <li class="l7">库存</li>
  61. <li class="l4">原价</li>
  62. <li class="l5">优惠价</li>
  63. <li class="l6">操作</li>
  64. </ul>
  65. <?
  66. while1("*","yjcode_taocan where probh='".$bh."' and zt=0 and admin is null order by xh asc");while($row1=mysql_fetch_array($res1)){
  67. $nu="taocan.php?id=".$row1[id]."&bh=".$bh;
  68. ?>
  69. <ul class="tclist">
  70. <li class="l1"><input name="C1" type="checkbox" value="<?=$row1[id]?>xcf0" /></li>
  71. <li class="l2"><a href="<?=$nu?>"><strong><?=$row1[tit]?></strong></a></li>
  72. <li class="l3"><?=$row1[xh]?></li>
  73. <li class="l7"><?=$row1[kcnum]?></li>
  74. <li class="l4"><?=$row1[money2]?></li>
  75. <li class="l5"><?=$row1[money1]?></li>
  76. <li class="l6">
  77. <? if(4==$row1[fhxs]){?><a href="kclist_tc.php?tcid=<?=$row1[id]?>&bh=<?=$bh?>">库存</a>&nbsp;&nbsp;|&nbsp;&nbsp;<? }?>
  78. <a href="taocan1lx.php?ty1id=<?=$row1[id]?>&bh=<?=$bh?>">添加二级套餐</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?=$nu?>">编辑</a>
  79. </li>
  80. </ul>
  81. <?
  82. while2("*","yjcode_taocan where admin=2 and zt=0 and tit='".$row1[tit]."' and probh='".$bh."' order by xh asc");while($row2=mysql_fetch_array($res2)){
  83. $nu="taocan1.php?id=".$row2[id]."&ty1id=".$row1[id]."&bh=".$bh;
  84. ?>
  85. <ul class="tclist tclist1">
  86. <li class="l1"><input name="C1" type="checkbox" value="xcf<?=$row2[id]?>" /></li>
  87. <li class="l2">&nbsp;&nbsp;- <a href="<?=$nu?>"><?=$row2[tit2]?></a></li>
  88. <li class="l3"><?=$row2[xh]?></li>
  89. <li class="l7"><?=$row2[kcnum]?></li>
  90. <li class="l4"><?=$row2[money2]?></li>
  91. <li class="l5"><?=$row2[money1]?></li>
  92. <li class="l6">
  93. <? if(4==$row2[fhxs]){?><a href="kclist_tc.php?tcid=<?=$row2[id]?>&bh=<?=$bh?>">库存</a>&nbsp;&nbsp;|&nbsp;&nbsp;<? }?>
  94. <a href="<?=$nu?>">编辑</a>
  95. </li>
  96. </ul>
  97. <? }}?>
  98. <!--end-->
  99. </body>
  100. </html>