protp.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. if($_GET[control]=="update"){
  8. updatetable("yjcode_tp","xh=".$_GET[xh]." where id=".$_GET[id]);
  9. php_toheader("protp.php?t=suc&bh=".$bh);
  10. }
  11. ?>
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  13. <html xmlns="http://www.w3.org/1999/xhtml">
  14. <head>
  15. <meta http-equiv="x-ua-compatible" content="ie=7" />
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  17. <title><?=webname?>管理系统</title>
  18. <link href="css/default.css" rel="stylesheet" type="text/css" />
  19. <script language="javascript" src="js/basic.js"></script>
  20. <script language="javascript">
  21. function xhonc(x){
  22. location.href="protp.php?id="+x+"&bh=<?=$bh?>&control=update&xh="+document.getElementById("xh"+x).value;
  23. }
  24. </script>
  25. </head>
  26. <body>
  27. <?php include("top.html");?>
  28. <script language="javascript">
  29. document.getElementById("menu3").className="l31";
  30. </script>
  31. <? if(!strstr($adminqx,",0,") && !strstr($adminqx,",0102,")){echo "<div class='noneqx'>无权限</div>";exit;}?>
  32. <div class="adminmain">
  33. <div class="left">
  34. <div class="lefttop"></div>
  35. <div class="leftmain">
  36. <?php include("menu_product.php");?>
  37. </div>
  38. <div class="lefttop"></div>
  39. </div>
  40. <div class="right" id="right">
  41. <ul class="wz">
  42. <li class="l1">当前位置:后台首页 - <strong>商品图片管理</strong></li><li class="l2"></li>
  43. </ul>
  44. <? if($_GET[t]=="suc"){systs("恭喜您,操作成功","protp.php?bh=".$bh);}?>
  45. <!--B-->
  46. <div class="listkuan">
  47. <ul class="typecon1">
  48. <li class="l1"></li>
  49. <li class="l2"><?=$row[tit]?></li>
  50. </ul>
  51. <ul class="typecap">
  52. <li class="l1"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  53. <li class="l2">&nbsp;图片</li>
  54. <li class="l6">排序</li>
  55. <li class="l6">图片ID</li>
  56. <li class="l6">商品编号</li>
  57. <li class="l6">最后更新</li>
  58. <li class="l7">操作</li>
  59. </ul>
  60. <ul class="typecon">
  61. <li class="l1">
  62. <a href="javascript:checkDEL(30,'yjcode_tp')" class="a2">删除</a>
  63. </li>
  64. </ul>
  65. <? while1("*","yjcode_tp where bh='".$bh."' order by xh asc");while($row1=mysql_fetch_array($res1)){$tp="../".str_replace(".","-2.",$row1[tp]);?>
  66. <ul class="typelist3">
  67. <li class="l1"><input name="C1" type="checkbox" value="<?=$row1[id]?>" /></li>
  68. <li class="l2"><img border="0" class="imgtp" src="<?=$tp?>" width="52" height="52" align="left" /></li>
  69. <li class="l6"><input type="text" value="<?=$row1[xh]?>" id="xh<?=$row1[id]?>" style="width:30px;margin:0 0 8px 0;text-align:center;" /><br><a href="javascript:void(0);" class="blue" onclick="xhonc(<?=$row1[id]?>)">【保存】</a></li>
  70. <li class="l6"><?=$row1[id]?></li>
  71. <li class="l6"><?=$row1[bh]?></li>
  72. <li class="l6"><?=$row1[sj]?></li>
  73. <li class="l7"><a href="../<?=$row1[tp]?>" target="_blank" class="a1">查看图片</a></li>
  74. </ul>
  75. <? }?>
  76. </div>
  77. <!--E-->
  78. </div>
  79. </div>
  80. <?php include("bottom.html");?>
  81. </body>
  82. </html>