favshop.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $userid=returnuserid($_SESSION[SHOPUSER]);
  6. $sj=date("Y-m-d H:i:s");
  7. if($_GET[control]=="del"){
  8. deletetable("yjcode_shopfav where userid=".$userid." and id=".$_GET[id]);
  9. php_toheader("favshop.php");
  10. }
  11. ?>
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  13. <html xmlns="http://www.w3.org/1999/xhtml">
  14. <head>
  15. <meta http-equiv="x-ua-compatible" content="ie=7" />
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  17. <title>用户管理面板 - <?=webname?></title>
  18. <? include("cssjs.html");?>
  19. <link href="css/inf.css" rel="stylesheet" type="text/css" />
  20. </head>
  21. <body>
  22. <? include("../tem/top.html");?>
  23. <? include("top.php");?>
  24. <div class="yjcode">
  25. <? include("left.php");?>
  26. <!--RB-->
  27. <div class="userright">
  28. <? include("rcap7.php");?>
  29. <script language="javascript">
  30. document.getElementById("rcap2").className="l1 l2";
  31. </script>
  32. <!--白B-->
  33. <div class="rkuang">
  34. <!--店铺收藏B-->
  35. <?
  36. if($_GET[page]!=""){$page=$_GET[page];}else{$page=1;}
  37. pagef(" where userid=".$userid,10,"yjcode_shopfav","order by sj desc");while($row=mysql_fetch_array($res)){
  38. while1("*","yjcode_user where id=".$row[shopid]);$row1=mysql_fetch_array($res1);
  39. ?>
  40. <div class="favshop">
  41. <ul class="u1">
  42. <li class="l1"><img border="0" src="../upload/<?=$row[shopid]?>/shop.jpg" class="tp" width="80" height="80" /><br><a href="favshop.php?control=del&id=<?=$row[id]?>"><img border="0" src="img/icon4.gif" width="18" height="16" /></a></li>
  43. <li class="l2"><strong><?=$row1[shopname]?></strong><br>掌柜:<?=$row1[nc]?><br><a href="http://wpa.qq.com/msgrd?v=3&uin=<?=$row1[uqq]?>&site=<?=weburl?>&menu=yes" target="_blank"><img border="0" src="../img/qq.png" width="77" height="22" /></a></li>
  44. </ul>
  45. <ul class="u2">
  46. <? while1("*","yjcode_pro where userid=".$row[shopid]." and ifxj=0 and zt=0 order by lastsj desc limit 5");while($row1=mysql_fetch_array($res1)){?>
  47. <li class="l1"><a href="../product/view<?=$row1[id]?>.html" target="_blank"><img border="0" src="<?=returntp("bh='".$row1[bh]."' order by iffm desc limit 1","-2")?>" width="100" height="100" /><br><?=returntitdian($row1[tit],30)?></a><br><strong class="feng">¥<?=returnjgdian(returnyhmoney($row1[yhxs],$row1[money2],$row1[money3],$sj,$row1[yhsj1],$row1[yhsj2],$row1[id]))?></strong></li>
  48. <? }?>
  49. </ul>
  50. </div>
  51. <?
  52. }
  53. ?>
  54. <?
  55. $nowurl="favshop.php";
  56. $nowwd="";
  57. include("page.php");
  58. ?>
  59. <!--店铺收藏E-->
  60. </div>
  61. <!--白E-->
  62. </div>
  63. <!--RE-->
  64. </div>
  65. <div class="clear clear15"></div>
  66. <? include("../tem/bottom.html");?>
  67. </body>
  68. </html>