taocanlist.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  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. <? include("cssjs.html");?>
  15. <link href="css/sell.css" rel="stylesheet" type="text/css" />
  16. <style type="text/css">
  17. body{background-color:#fff;}
  18. .userright .rkuang{margin-top:0;}
  19. </style>
  20. <script language="javascript">
  21. function glover(x){
  22. document.getElementById("gl"+x).style.display="";
  23. }
  24. function glout(x){
  25. document.getElementById("gl"+x).style.display="none";
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <div class="userright">
  31. <!--白B-->
  32. <div class="rkuang">
  33. <div class="ksedi">
  34. <div class="d1">
  35. <a href="taocanlx.php?bh=<?=$bh?>" class="a1">新增套餐</a>
  36. <a href="javascript:NcheckDEL(9,'yjcode_taocan')" class="a2">删除</a>
  37. </div>
  38. </div>
  39. <ul class="tccap">
  40. <li class="l0"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  41. <li class="l1">套餐说明</li>
  42. <li class="l2">序号</li>
  43. <li class="l3">库存</li>
  44. <li class="l4">原价</li>
  45. <li class="l5">优惠价</li>
  46. <li class="l6">操作</li>
  47. </ul>
  48. <?
  49. while1("*","yjcode_taocan where probh='".$bh."' and userid=".$row[userid]." and zt=0 and admin is null order by xh asc");while($row1=mysql_fetch_array($res1)){
  50. $nu="taocan.php?id=".$row1[id]."&bh=".$bh;
  51. ?>
  52. <ul class="tclist tclist1">
  53. <li class="l0"><input name="C1" type="checkbox" value="<?=$row1[id]?>xcf0" /></li>
  54. <li class="l1"><a href="<?=$nu?>"><strong><?=$row1[tit]?></strong></a></li>
  55. <li class="l2"><?=$row1[xh]?></li>
  56. <li class="l3"><?=$row1[kcnum]?></li>
  57. <li class="l4"><?=$row1[money2]?></li>
  58. <li class="l5"><?=$row1[money1]?></li>
  59. <li class="l6" onmouseover="glover(<?=$row1[id]?>)" onmouseout="glout(<?=$row1[id]?>)">
  60. <span class="s1">管理</span>
  61. <div class="gl" style="display:none;" id="gl<?=$row1[id]?>">
  62. <a href="<?=$nu?>">编辑信息</a>
  63. <a href="taocan1lx.php?ty1id=<?=$row1[id]?>&bh=<?=$bh?>">添加二级</a>
  64. <? if(4==$row1[fhxs]){?><a href="kclist_tc.php?tcid=<?=$row1[id]?>&bh=<?=$bh?>">库存管理</a><? }?>
  65. </div>
  66. </li>
  67. </ul>
  68. <?
  69. while2("*","yjcode_taocan where admin=2 and tit='".$row1[tit]."' and zt=0 and userid=".$row[userid]." and probh='".$bh."' order by xh asc");while($row2=mysql_fetch_array($res2)){
  70. $nu="taocan1.php?id=".$row2[id]."&ty1id=".$row1[id]."&bh=".$bh;
  71. ?>
  72. <ul class="tclist">
  73. <li class="l0"><input name="C1" type="checkbox" value="xcf<?=$row2[id]?>" /></li>
  74. <li class="l1">&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$nu?>"><?=$row2[tit2]?></a></li>
  75. <li class="l2"><?=$row2[xh]?></li>
  76. <li class="l3"><?=$row2[kcnum]?></li>
  77. <li class="l4"><?=$row2[money2]?></li>
  78. <li class="l5"><?=$row2[money1]?></li>
  79. <li class="l6" onmouseover="glover(<?=$row2[id]?>)" onmouseout="glout(<?=$row2[id]?>)">
  80. <span class="s1">管理</span>
  81. <div class="gl" style="display:none;" id="gl<?=$row2[id]?>">
  82. <a href="<?=$nu?>">编辑信息</a>
  83. <? if(4==$row2[fhxs]){?><a href="kclist_tc.php?tcid=<?=$row2[id]?>&bh=<?=$bh?>">库存管理</a><? }?>
  84. </div>
  85. </li>
  86. </ul>
  87. <? }}?>
  88. </div>
  89. <!--白E-->
  90. </div>
  91. </body>
  92. </html>