favpro.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?
  2. include("../../config/conn.php");
  3. include("../../config/function.php");
  4. sesCheck_m();
  5. $userid=returnuserid($_SESSION[SHOPUSER]);
  6. $sj=date("Y-m-d H:i:s");
  7. ?>
  8. <html>
  9. <head>
  10. <meta http-equiv="x-ua-compatible" content="ie=7" />
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  12. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  13. <title>会员中心 <?=webname?></title>
  14. <? include("../tem/cssjs.html");?>
  15. <link href="css/buy.css" rel="stylesheet" type="text/css" />
  16. <script language="javascript">
  17. function favprodel(x){
  18. if(!confirm("确认移除?")){return false;}
  19. layer.open({type: 2,content: '正在移除'});
  20. $.get("favprodel.php",{id:x},function(result){
  21. location.reload();
  22. });
  23. }
  24. </script>
  25. </head>
  26. <body>
  27. <? include("topuser.php");?>
  28. <div class="bfbtop1 box">
  29. <div class="d1" onClick="gourl('index.php')"><img src="img/topleft.png" height="21" /></div>
  30. <div class="d2">我收藏的商品</div>
  31. <div class="d3"></div>
  32. </div>
  33. <? if(panduan("*","yjcode_profav where userid=".$rowuser[id])==1){?>
  34. <?
  35. if($_GET[page]!=""){$page=$_GET[page];}else{$page=1;}
  36. pagef(" where userid=".$userid,10,"yjcode_profav","order by sj desc");while($row=mysql_fetch_array($res)){
  37. while1("*","yjcode_pro where bh='".$row[probh]."'");$row1=mysql_fetch_array($res1);
  38. ?>
  39. <div class="favpro box">
  40. <div class="d1"><a href="../product/view<?=$row1[id]?>.html"><img border="0" src="<?=returntp("bh='".$row1[bh]."' order by iffm desc limit 1","-2")?>" onerror="this.src='../img/none70x70.gif'" width="50" height="50" /></a></div>
  41. <div class="d2">
  42. <a href="../product/view<?=$row1[id]?>.html"><?=returntitdian($row1["tit"],70)?></a><br>
  43. <strong class="feng">¥<?=returnjgdian(returnyhmoney($row1[yhxs],$row1[money2],$row1[money3],$sj,$row1[yhsj1],$row1[yhsj2],$row1[id]))?></strong>
  44. </div>
  45. <div class="d3"><img src="img/cardel.png" onClick="favprodel(<?=$row[id]?>)" height="14" /></div>
  46. </div>
  47. <? }?>
  48. <div class="npa">
  49. <?
  50. $nowurl="favpro.php";
  51. $nowwd="";
  52. require("page.html");
  53. ?>
  54. </div>
  55. <? }else{?>
  56. <div class="wait box" onClick="gourl('../')">
  57. <div class="d1">
  58. <span class="s0"><img src="img/fav.png" width="70" /></span>
  59. <span class="s1">您暂无收藏的商品</span>
  60. <span class="s2">去逛逛~</span>
  61. </div>
  62. </div>
  63. <? }?>
  64. </body>
  65. </html>