prohis.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?
  2. include("../../config/conn.php");
  3. include("../../config/function.php");
  4. sesCheck_m();
  5. if($_GET[control]=="del"){
  6. $Month = 864000 + time();
  7. setcookie(prohistoy,"", $Month,'/');
  8. $nch=$_COOKIE['prohistoy'];
  9. php_toheader("prohis.php");
  10. }
  11. ?>
  12. <html>
  13. <head>
  14. <meta http-equiv="x-ua-compatible" content="ie=7" />
  15. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  16. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  17. <title>会员中心 <?=webname?></title>
  18. <? include("../tem/cssjs.html");?>
  19. <link href="css/buy.css" rel="stylesheet" type="text/css" />
  20. <script language="javascript">
  21. function delprohis(){
  22. if(!confirm("确定要清空浏览记录吗?")){return false;}
  23. layer.open({type: 2,content: '正在处理',shadeClose:false});
  24. location.href="prohis.php?control=del";
  25. }
  26. </script>
  27. </head>
  28. <body>
  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="d4 red" onClick="delprohis()">清空</div>
  33. </div>
  34. <?
  35. $nch="";
  36. if(isset($_COOKIE['prohistoy'])){
  37. $nch=$_COOKIE['prohistoy'];
  38. $a=preg_split("/xcf/",$nch);
  39. for($i=0;$i<=count($a);$i++){
  40. if($a[$i]!=""){
  41. while1("*","yjcode_pro where id=".$a[$i]);if($row1=mysql_fetch_array($res1)){$tp=returntp("bh='".$row1[bh]."' order by xh asc","-2");
  42. ?>
  43. <div class="prohis box" onClick="gourl('../product/view<?=$row1[id]?>.html')">
  44. <div class="d1"><img src="<?=$tp?>" onerror="this.src='../img/none70x70.gif'" width="50" height="50"></div>
  45. <div class="d2"><?=$row1[tit]?></a><br><strong class="feng">¥<?=returnjgdian(returnyhmoney($row1[yhxs],$row1[money2],$row1[money3],$sj,$row1[yhsj1],$row1[yhsj2],$row1[id]))?></strong></div>
  46. </div>
  47. <? }}}
  48. ?>
  49. <? }else{?>
  50. <!--无B-->
  51. <div class="wait box" onClick="gourl('../')">
  52. <div class="d1">
  53. <span class="s0"><img src="img/proser.png" width="70" /></span>
  54. <span class="s1">还没有商品浏览记录</span>
  55. <span class="s2">随便逛逛吧^_^</span>
  56. </div>
  57. </div>
  58. <!--无E-->
  59. <? }?>
  60. </body>
  61. </html>