shopbannarlist.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 add1(){
  16. layer.open({
  17. type: 2,
  18. area: ['622px', '400px'],
  19. title:["店铺轮播图片","text-align:left"],
  20. skin: 'layui-layer-rim', //加上边框
  21. content:['shopbannarlx.php', 'no']
  22. });
  23. }
  24. function upd(x){
  25. layer.open({
  26. type: 2,
  27. area: ['622px', '400px'],
  28. title:["店铺轮播图片","text-align:left"],
  29. skin: 'layui-layer-rim', //加上边框
  30. content:['shopbannar.php?bh='+x, 'no']
  31. });
  32. }
  33. function glover(x){
  34. document.getElementById("gl"+x).style.display="";
  35. }
  36. function glout(x){
  37. document.getElementById("gl"+x).style.display="none";
  38. }
  39. function del(x){
  40. document.getElementById("chk"+x).checked=true;
  41. NcheckDEL(17,'yjcode_shopbannar');
  42. }
  43. </script>
  44. </head>
  45. <body>
  46. <? include("../tem/top.html");?>
  47. <? include("top.php");?>
  48. <div class="yjcode">
  49. <? include("left.php");?>
  50. <!--RB-->
  51. <div class="userright">
  52. <? include("rcap4.php");?>
  53. <script language="javascript">
  54. document.getElementById("rcap5").className="l1 l2";
  55. </script>
  56. <!--白B-->
  57. <div class="rkuang">
  58. <div class="ksedi">
  59. <div class="d1">
  60. <a href="javascript:;" onclick="NcheckDEL(17,'yjcode_shopbannar')" class="a1">删除</a>
  61. <a href="javascript:;" onclick="add1()" class="a2">添加图片</a>
  62. </div>
  63. </div>
  64. <ul class="shopbannarcap">
  65. <li class="l1"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  66. <li class="l2">图片信息</li>
  67. <li class="l3">排序</li>
  68. <li class="l4">编辑时间</li>
  69. <li class="l5">操作</li>
  70. </ul>
  71. <?
  72. while1("*","yjcode_shopbannar where userid=".$luserid." and zt=0 order by xh asc");while($row1=mysql_fetch_array($res1)){
  73. if(1==$row1[targ]){$ifn="当前窗口打开";}else{$ifn="新窗口打开";}
  74. $at="../upload/".$row1[userid]."/shopbannar_".$row1[bh].".jpg";
  75. ?>
  76. <ul class="shopbannarlist">
  77. <li class="l1"><input name="C1" type="checkbox" id="chk<?=$row1[id]?>" value="<?=$row1[bh]?>" /></li>
  78. <li class="l2">
  79. <a href="<?=$at?>" target="_blank"><img src="<?=$at?>" align="left" width="70" height="70" /></a>
  80. <a href="<?=$row1[aurl]?>" target="_blank">
  81. <strong><?=$row1[tit]?></strong><br><?=$row1[aurl]?><br><span class="green"><?=$ifn?></span>
  82. </a>
  83. </li>
  84. <li class="l3"><?=$row1[xh]?></li>
  85. <li class="l4"><?=$row1[sj]?></li>
  86. <li class="l5" onmouseover="glover(<?=$row1[id]?>)" onmouseout="glout(<?=$row1[id]?>)">
  87. <span class="s1">管理</span>
  88. <div class="gl" style="display:none;" id="gl<?=$row1[id]?>">
  89. <a href="javascript:void(0);" onclick="upd('<?=$row1[bh]?>')">修改信息</a>
  90. <a href="javascript:void(0);" onclick="del(<?=$row1[id]?>)">删除图片</a>
  91. </div>
  92. </li>
  93. </ul>
  94. <? }?>
  95. <div class="clear clear15"></div>
  96. </div>
  97. <!--白E-->
  98. </div>
  99. <!--RE-->
  100. </div>
  101. <div class="clear clear15"></div>
  102. <? include("../tem/bottom.html");?>
  103. </body>
  104. </html>