productlist.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?
  2. include("../../config/conn.php");
  3. include("../../config/function.php");
  4. sesCheck_m();
  5. $sj=date("Y-m-d H:i:s");
  6. $sqluser="select * from yjcode_user where uid='".$_SESSION[SHOPUSER]."' and shopzt=2";mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser);
  7. if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("openshop3.php");}
  8. $ses=" where zt<>99 and userid=".$rowuser[id];
  9. if($_GET[page]!=""){$page=$_GET[page];}else{$page=1;}
  10. ?>
  11. <html>
  12. <head>
  13. <meta http-equiv="x-ua-compatible" content="ie=7" />
  14. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  15. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  16. <title>会员中心 <?=webname?></title>
  17. <? include("../tem/cssjs.html");?>
  18. <link href="css/sell.css" rel="stylesheet" type="text/css" />
  19. <script language="javascript">
  20. function shuaxin(x){
  21. document.getElementById("chk"+x).checked=true;
  22. NcheckDEL(7,'yjcode_pro');
  23. }
  24. function del(x){
  25. document.getElementById("chk"+x).checked=true;
  26. NcheckDEL(2,'yjcode_pro');
  27. }
  28. </script>
  29. </head>
  30. <body>
  31. <? include("topuser.php");?>
  32. <div class="bfbtop2 box">
  33. <div class="d1" onClick="gourl('sell.php')"><img src="img/topleft1.png" height="21" /></div>
  34. <div class="d2">我的商品(<?=returncount("yjcode_pro".$ses)?>个)</div>
  35. <div class="d4" onClick="gourl('productlx.php')">发布</div>
  36. </div>
  37. <div class="prots box"><div class="d1">刷新一个商品消耗<strong class="feng"><?=$rowcontrol[sxjf]?></strong>分,您剩余<strong class="blue"><?=$rowuser[jf]?></strong>分 【<a href="jfbank.php">兑换积分</a>】</div></div>
  38. <!--列表开始-->
  39. <?
  40. pagef($ses,10,"yjcode_pro","order by lastsj desc");while($row=mysql_fetch_array($res)){
  41. $au1="product.php?bh=".$row[bh];
  42. $au2="../product/view".$row[id].".html";
  43. if(0==$row[ifxj]){$xjv="&nbsp;";}else{$xjv="<span class='red'>已下架</span>";}
  44. ?>
  45. <div class="productlist0 box">
  46. <div class="d0"><input name="C1" id="chk<?=$row[id]?>" type="checkbox" value="<?=$row[bh]?>" /></div>
  47. <div class="d1">商品ID:<?=$row[id]?></div>
  48. <div class="d2"><?=$row[lastsj]?></div>
  49. </div>
  50. <div class="productlist1 box" onClick="gourl('<?=$au1?>')">
  51. <div class="d1"><img src="<?=returntp("bh='".$row[bh]."' order by xh asc","-2")?>" onerror="this.src='../img/none70x70.gif'" width="70" height="70" /></div>
  52. <div class="d2">
  53. <span class="s0"><?=$row["tit"]?></span>
  54. <span class="s1">已售<?=$row[xsnum]?></span><span class="s2">库存<?=$row[kcnum]?></span>
  55. <span class="s3"><?=returnztv($row[zt],$row[ztsm])?></span>
  56. </div>
  57. <div class="d3">¥<?=returnyhmoney($row[yhxs],$row[money2],$row[money3],$sj,$row[yhsj1],$row[yhsj2],$row[id])?></div>
  58. </div>
  59. <div class="productlist2 box">
  60. <div class="d1">
  61. <a href="<?=$au2?>">预览</a>
  62. <a href="javascript:void(0);" onClick="del(<?=$row[id]?>)">删除</a>
  63. <a href="<?=$au1?>">修改</a>
  64. <a href="javascript:void(0);" onClick="shuaxin(<?=$row[id]?>)">刷新</a>
  65. </div>
  66. </div>
  67. <? }?>
  68. <!--列表结束-->
  69. <div class="npa">
  70. <?
  71. $nowurl="productlist.php";
  72. $nowwd="";
  73. require("page.html");
  74. ?>
  75. </div>
  76. </body>
  77. </html>