protypelist.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="x-ua-compatible" content="ie=7" />
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  11. <title>用户管理面板 - <?=webname?></title>
  12. <? include("cssjs.html");?>
  13. <link href="css/sell.css" rel="stylesheet" type="text/css" />
  14. <script language="javascript">
  15. function addty1(){
  16. layer.open({
  17. type: 2,
  18. area: ['322px', '190px'],
  19. title:["商品分组","text-align:left"],
  20. skin: 'layui-layer-rim', //加上边框
  21. content:['protype1lx.php', 'no']
  22. });
  23. }
  24. function addty2(x){
  25. layer.open({
  26. type: 2,
  27. area: ['322px', '230px'],
  28. title:["商品分组","text-align:left"],
  29. skin: 'layui-layer-rim', //加上边框
  30. content:['protype2lx.php?ty1id='+x, 'no']
  31. });
  32. }
  33. function updty1(x){
  34. layer.open({
  35. type: 2,
  36. area: ['322px', '190px'],
  37. title:["商品分组","text-align:left"],
  38. skin: 'layui-layer-rim', //加上边框
  39. content:['protype1.php?bh='+x, 'no']
  40. });
  41. }
  42. function updty2(x){
  43. layer.open({
  44. type: 2,
  45. area: ['322px', '230px'],
  46. title:["商品分组","text-align:left"],
  47. skin: 'layui-layer-rim', //加上边框
  48. content:['protype2.php?bh='+x, 'no']
  49. });
  50. }
  51. function glover(x){
  52. document.getElementById("gl"+x).style.display="";
  53. }
  54. function glout(x){
  55. document.getElementById("gl"+x).style.display="none";
  56. }
  57. function del(x){
  58. document.getElementById("chk"+x).checked=true;
  59. NcheckDEL(15,'yjcode_protype');
  60. }
  61. </script>
  62. </head>
  63. <body>
  64. <? include("../tem/top.html");?>
  65. <? include("top.php");?>
  66. <div class="yjcode">
  67. <? include("left.php");?>
  68. <!--RB-->
  69. <div class="userright">
  70. <? include("rcap4.php");?>
  71. <script language="javascript">
  72. document.getElementById("rcap3").className="l1 l2";
  73. </script>
  74. <!--白B-->
  75. <div class="rkuang">
  76. <div class="ksedi">
  77. <div class="d1">
  78. <a href="javascript:;" onclick="NcheckDEL(15,'yjcode_protype')" class="a1">删除</a>
  79. <a href="javascript:;" onclick="addty1()" class="a2">添加分组</a>
  80. </div>
  81. </div>
  82. <ul class="protypecap">
  83. <li class="l1"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  84. <li class="l2">分类名称</li>
  85. <li class="l3">排序</li>
  86. <li class="l4">编辑时间</li>
  87. <li class="l5">操作</li>
  88. </ul>
  89. <? while1("*","yjcode_protype where userid=".$luserid." and admin=1 and zt=0 order by xh asc");while($row1=mysql_fetch_array($res1)){?>
  90. <ul class="protypelist">
  91. <li class="l1"><input name="C1" type="checkbox" id="chk<?=$row1[id]?>" value="<?=$row1[id]?>xcf0" /></li>
  92. <li class="l2"><?=$row1[name1]?></li>
  93. <li class="l3"><?=$row1[xh]?></li>
  94. <li class="l4"><?=$row1[sj]?></li>
  95. <li class="l5" onmouseover="glover(<?=$row1[id]?>)" onmouseout="glout(<?=$row1[id]?>)">
  96. <span class="s1">管理</span>
  97. <div class="gl" style="display:none;" id="gl<?=$row1[id]?>">
  98. <a href="javascript:void(0);" onclick="updty1('<?=$row1[bh]?>')">修改信息</a>
  99. <a href="javascript:void(0);" onclick="addty2(<?=$row1[id]?>)">添加子类</a>
  100. <a href="javascript:void(0);" onclick="del(<?=$row1[id]?>)">删除类别</a>
  101. </div>
  102. </li>
  103. </ul>
  104. <? while2("*","yjcode_protype where userid=".$luserid." and admin=2 and zt=0 and name1='".$row1[name1]."' order by xh asc");while($row2=mysql_fetch_array($res2)){?>
  105. <ul class="protypelist2">
  106. <li class="l1"><input name="C1" type="checkbox" id="chk<?=$row2[id]?>" value="0xcf<?=$row2[id]?>" /></li>
  107. <li class="l2"><?=$row2[name2]?></li>
  108. <li class="l3"><?=$row2[xh]?></li>
  109. <li class="l4"><?=$row2[sj]?></li>
  110. <li class="l5" onmouseover="glover(<?=$row2[id]?>)" onmouseout="glout(<?=$row2[id]?>)">
  111. <span class="s1">管理</span>
  112. <div class="gl" style="display:none;" id="gl<?=$row2[id]?>">
  113. <a href="javascript:void(0);" onclick="updty2('<?=$row2[bh]?>')">修改信息</a>
  114. <a href="javascript:void(0);" onclick="del(<?=$row2[id]?>)">删除类别</a>
  115. </div>
  116. </li>
  117. </ul>
  118. <? }?>
  119. <? }?>
  120. <div class="clear clear15"></div>
  121. </div>
  122. <!--白E-->
  123. </div>
  124. <!--RE-->
  125. </div>
  126. <div class="clear clear15"></div>
  127. <? include("../tem/bottom.html");?>
  128. </body>
  129. </html>