prolist.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?
  2. include("../../config/conn.php");
  3. include("../../config/function.php");
  4. include("../../config/xy.php");
  5. $getstr=$_GET[str];
  6. $uid=returnsx("i");
  7. $sj=date("Y-m-d H:i:s");
  8. $sqluser="select * from yjcode_user where zt=1 and (shopzt=2 or shopzt=4) and id=".$uid;mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser);
  9. if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("./");}
  10. if(4==$rowuser[shopzt]){php_toheader("dqview".$rowuser[id].".html");}
  11. $ses=" where zt=0 and ifxj=0 and userid=".$uid;
  12. $ty1id=returnsx("j");
  13. $ty2id=returnsx("k");
  14. if($ty1id!=-1){$ses=$ses." and myty1id=".$ty1id;}
  15. if($ty2id!=-1){$ses=$ses." and myty2id=".$ty2id;}
  16. $px="order by lastsj desc";
  17. if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;}
  18. ?>
  19. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  20. <html xmlns="http://www.w3.org/1999/xhtml">
  21. <head>
  22. <meta http-equiv="x-ua-compatible" content="ie=7" />
  23. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  24. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  25. <title><?=$rowuser[shopname]?>的网上店铺 - <?=webname?></title>
  26. <? include("../tem/cssjs.html");?>
  27. </head>
  28. <body>
  29. <? include("top.php");?>
  30. <script language="javascript">
  31. document.getElementById("topmenu2").className="a1";
  32. </script>
  33. <?
  34. pagef($ses,10,"yjcode_pro",$px);while($row=mysql_fetch_array($res)){
  35. $tp=returntp("bh='".$row[bh]."' order by xh asc","-2");
  36. $au="../product/view".$row[id].".html";
  37. $sqlsell="select * from yjcode_user where id=".$row[userid];mysql_query("SET NAMES 'GBK'");$ressell=mysql_query($sqlsell);$rowsell=mysql_fetch_array($ressell);
  38. ?>
  39. <div class="list2 box" onclick="gourl('<?=$au?>')">
  40. <div class="d1"><img border="0" src="<?=$tp?>" onerror="this.src='../img/none70x70.gif'" width="80" height="80" /></div>
  41. <div class="d2">
  42. <a href="<?=$au?>" class="a1"><?=$row[tit]?></a>
  43. <div class="dn1">
  44. <? if($rowsell[baomoney]>0){?>
  45. <span class="s2">已缴保证金</span>
  46. <? }?>
  47. </div>
  48. <div class="dn2">¥<strong><?=returnjgdian(returnyhmoney($row[yhxs],$row[money2],$row[money3],$sj,$row[yhsj1],$row[yhsj2],$row[id]))?></strong></div>
  49. </div>
  50. </div>
  51. <? }?>
  52. <div class="npa">
  53. <?
  54. $nowurl="prolist";
  55. $nowwd="";
  56. require("../tem/page.html");
  57. ?>
  58. </div>
  59. <? include("../tem/moban/".$rowcontrol[wapmb]."/tem/bottom.php");?>
  60. </body>
  61. </html>