favshop.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?
  2. include("../../config/conn.php");
  3. include("../../config/function.php");
  4. include("../../config/xy.php");
  5. sesCheck_m();
  6. $userid=returnuserid($_SESSION[SHOPUSER]);
  7. $sj=date("Y-m-d H:i:s");
  8. ?>
  9. <html>
  10. <head>
  11. <meta http-equiv="x-ua-compatible" content="ie=7" />
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  13. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  14. <title>会员中心 <?=webname?></title>
  15. <? include("../tem/cssjs.html");?>
  16. <link href="css/buy.css" rel="stylesheet" type="text/css" />
  17. <script language="javascript">
  18. function favshopdel(x){
  19. if(!confirm("确认移除?")){return false;}
  20. layer.open({type: 2,content: '正在移除'});
  21. $.get("favshopdel.php",{id:x},function(result){
  22. location.reload();
  23. });
  24. }
  25. </script>
  26. </head>
  27. <body>
  28. <? include("topuser.php");?>
  29. <div class="bfbtop1 box">
  30. <div class="d1" onClick="gourl('index.php')"><img src="img/topleft.png" height="21" /></div>
  31. <div class="d2">我关注的店铺</div>
  32. <div class="d3"></div>
  33. </div>
  34. <?
  35. if($_GET[page]!=""){$page=$_GET[page];}else{$page=1;}
  36. pagef(" where userid=".$userid,10,"yjcode_shopfav","order by sj desc");while($row=mysql_fetch_array($res)){
  37. while1("*","yjcode_user where id=".$row[shopid]);$row1=mysql_fetch_array($res1);
  38. $sucnum=returnjgdw($row[xinyong],"",returnxy($row[id],1));
  39. ?>
  40. <div class="favshop box">
  41. <div class="d1"><img border="0" src="<?=returntppd("../../upload/".$row1[id]."/shop.jpg","../img/none180x180.gif")?>" onerror="this.src='../img/none70x70.gif'" width="40" height="40" /></div>
  42. <div class="d2"><?=$row1[shopname]?><br><img src="../../img/dj/<?=returnxytp($sucnum)?>" /></div>
  43. <div class="d3"><img src="img/cardel.png" onClick="favshopdel(<?=$row[id]?>)" height="14" /></div>
  44. </div>
  45. <? }?>
  46. <div class="npa">
  47. <?
  48. $nowurl="favshop.php";
  49. $nowwd="";
  50. require("page.html");
  51. ?>
  52. </div>
  53. </body>
  54. </html>