index.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?
  2. include("../../config/conn.php");
  3. include("../../config/function.php");
  4. $sj=date("Y-m-d H:i:s");
  5. $getstr=$_GET[str];
  6. $tit="商家风采";
  7. $ses=" where zt=1 and shopzt=2 and shopname<>''";
  8. if(returnsx("s")!=-1){$skey=safeEncoding(returnsx("s"));$ses=$ses." and shopname like '%".$skey."%'";$tit=$tit." ".$skey;}
  9. if(returnsx("q")!=-1){$ses=$ses." and uqq='".returnsx("q")."'";}
  10. if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;}
  11. $px="order by yxsj desc";
  12. ?>
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  14. <html xmlns="http://www.w3.org/1999/xhtml">
  15. <head>
  16. <meta http-equiv="x-ua-compatible" content="ie=7" />
  17. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  18. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  19. <title><?=$tit?> - <?=webname?></title>
  20. <? include("../tem/cssjs.html");?>
  21. </head>
  22. <body>
  23. <div class="topfix">
  24. <!--头部B-->
  25. <div class="listtop box">
  26. <div class="d1" onClick="javascript:history.go(-1);"><img src="../img/leftjian.png" /></div>
  27. <div class="d2" onClick="gourl('../search/main.php?admin=2')"><span class="s1"><img src="../img/ser.png" /></span><span class="s2">请输入搜索关键词!</span></div>
  28. </div>
  29. <!--头部E-->
  30. </div>
  31. <div class="ntopv box"><div class="d1"></div></div>
  32. <?
  33. pagef($ses,20,"yjcode_user",$px);while($row=mysql_fetch_array($res)){
  34. $au="view".$row[id].".html";
  35. ?>
  36. <div class="shoplist1 box">
  37. <div class="d1"><img border="0" src="<?="../../upload/".$row[id]."/shop.jpg"?>" onerror="this.src='../img/none70x70.gif'" /></div>
  38. <div class="d2"><a href="<?=$au?>"><?=$row[shopname]?></a><span>共<?=returncount("yjcode_pro where zt=0 and ifxj=0 and userid=".$row[id])?>件商品</span></div>
  39. <div class="d3"><a href="<?=$au?>">进店</a></div>
  40. </div>
  41. <div class="shoplist2 box">
  42. <div class="dmain">
  43. <?
  44. while2("*","yjcode_pro where userid=".$row[id]." and zt=0 and ifxj=0 order by lastsj desc limit 3");while($row2=mysql_fetch_array($res2)){
  45. $au2="../product/view".$row2[id].".html";
  46. $tp=returntp("bh='".$row2[bh]."' order by iffm desc","-2");
  47. ?>
  48. <div class="d1">
  49. <a href="<?=$au2?>">
  50. <img src="<?=$tp?>" onerror="this.src='../img/none70x70.gif'" border="0" />
  51. <span>¥<?=returnyhmoney($row2[yhxs],$row2[money2],$row2[money3],$sj,$row2[yhsj1],$row2[yhsj2],$row2[id])?></span>
  52. </a>
  53. </div>
  54. <? }?>
  55. </div>
  56. </div>
  57. <? }?>
  58. <div class="npa">
  59. <?
  60. $nowurl="search";
  61. $nowwd="";
  62. require("../tem/page.html");
  63. ?>
  64. </div>
  65. <? include("../tem/moban/".$rowcontrol[wapmb]."/tem/bottom.php");?>
  66. </body>
  67. </html>