<?
include("../config/conn.php");
include("../config/function.php");
include("../config/xy.php");
$sj=date("Y-m-d H:i:s");
$getstr=$_GET[str];
$tit="商品";
$ses=" where zt=0 and ifxj=0";
$ty1id=returnsx("j");if($ty1id!=-1){$ty1name=returntype(1,$ty1id);$ses=$ses." and ty1id=".$ty1id;$tit=$tit.$ty1name;}
$ty2id=returnsx("k");if($ty2id!=-1){$ty2name=returntype(2,$ty2id);$ses=$ses." and ty2id=".$ty2id;$tit=$tit."/".$ty2name;}
$ty3id=returnsx("m");if($ty3id!=-1){$ty3name=returntype(3,$ty3id);$ses=$ses." and ty3id=".$ty3id;$tit=$tit."/".$ty3name;}
if(returnsx("s")!=-1){$skey=safeEncoding(returnsx("s"));$ses=$ses." and tit like '%".$skey."%'";$tit=$tit."/".$skey;}
if(returnsx("b")!=-1){$mon1=returnsx("b");$ses=$ses." and money2>=".$mon1;}
if(returnsx("c")!=-1){$mon2=returnsx("c");$ses=$ses." and money2<=".$mon2;}
if(returnsx("a")!=-1){$ifys=returnsx("a");$ses=$ses." and ysweb<>''";}
if(returnsx("d")!=-1){$ifzdfh=returnsx("d");$ses=$ses." and (fhxs=2 or fhxs=3 or fhxs=4)";}
if(returnsx("g")!=-1){$ifuserdj=returnsx("g");$ses=$ses." and ifuserdj=1";}

if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;}
$px="order by lastsj desc";
if(returnsx("f")==1){$px="order by xsnum desc";}
elseif(returnsx("f")==2){$px="order by djl desc";}
elseif(returnsx("f")==3){$px="order by money2 desc";}
elseif(returnsx("f")==4){$px="order by money2 asc";}
?>
<html>
<head>
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?=$tit?> - <?=webname?></title>










	<script type="text/javascript">PVTJ()</script>
	
	<script language="javascript" src="../js/basic.js"></script>
	
	<link href="css/new_top.css" rel="stylesheet" type="text/css" />
<link href="../css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/scene.css" rel="stylesheet" type="text/css" />
<link href="css/basic.css" rel="stylesheet" type="text/css" />
<link href="css/product.css" rel="stylesheet" type="text/css" />

<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/public_new.js"></script>
<script src="js/scene.js"></script>
<script language="javascript" src="../js/basic.js"></script>
<script language="javascript" src="index.js"></script>
<link href="index.css" rel="stylesheet" type="text/css" />


    <script>
        var now = new Date();
        var beginTime = now.getTime();
        var isLazyload = 1;
        var isMasonry = 1;
        var obj = {};
        obj.picid = 0;
        obj.exeCode = 3000;
        obj.exeTime = 0.0242;
        obj.loadCode = 3003;
        obj.loadTime = 0;
        obj.kid = 0;
        obj.bigclassid = 0;
        obj.smallclassid = 0;
        obj.page = 0;
    </script>
	<script src="js/scene.js"></script>
	<script type="text/javascript">PVTJ()</script>

</head>
<body>
<? include("../tem/top.html");?>
<? include("../tem/top1.html");?>

<script language="javascript">topjconc(1,'商品');document.getElementById("topt").value="<?=$skey?>";</script>



<div style="width:1200px; margin:0 auto;height: 43px;line-height: 43px;color: #898989;font-size:12px" class="g-taskposition col-lg-12 col-left">

您的位置：<a href="<?=weburl?>">首页</a> 
<? if($ty1id!=-1){?><a href="search_j<?=$ty1id?>v.html"><?=$ty1name?></a> &gt; <? }?>
 <? if($ty2id!=-1){?><a href="search_j<?=$ty1id?>v_k<?=$ty2id?>v.html"><?=$ty2name?></a> &gt; <? }?>
 <? if($ty3id!=-1){?><a href="search_j<?=$ty1id?>v_k<?=$ty2id?>v_m<?=$ty3id?>v.html"><?=$ty3name?></a> &gt; <? }?>

</div>
 <div class="subnav" style="/*! padding-top:20px; */ width:1200px; margin:0 auto;" >


<div class="sx">

 
 <dl>

 <dt>模板分类：</dt>

 <dd>

  <a href="<?=rentser('j','','e','','search','k','','m','');?>"<? if($ty1id==-1){?> class="ax"<? }?>>不限</a>

 
 <? while1("*","yjcode_type where admin=1 order by xh asc");while($row1=mysql_fetch_array($res1)){?>
 <a href="<?=rentser("j",$row1[id],'e','','search','k','','m','');?>" <? if(check_in("_j".$row1[id]."v",$getstr)){?> class="ax"<? }?>><?=$row1[type1]?></a>
 <? }?>

 
 
 </dd>

 
 </dl>

 


  <? if($ty1id!=-1){?>
 <dl>

 <dt><?=$ty1name?>：</dt>

 <dd>

<a href="<?=rentser('k','','e','','search','m','');?>"<? if($ty2id==-1){?> class="ax"<? }?>>不限</a>

 
 <? while1("*","yjcode_type where admin=2 and type1='".$ty1name."' order by xh asc");while($row1=mysql_fetch_array($res1)){?>
 <a href="<?=rentser("k",$row1[id],'e','','search','m','');?>" <? if(check_in("_k".$row1[id]."v",$getstr) && check_in("_k".$row1[id]."v",$getstr)){?> class="ax"<? }?>><?=$row1[type2]?></a>
 <? }?>
 
 
 </dd>

 </dl>
 <? }?>
 
 <? if($ty2id!=-1){if(panduan("*","yjcode_type where admin=3 and type1='".$ty1name."' and type2='".$ty2name."'")==1){?>
 <dl>

 <dt><?=$ty2name?>：</dt>

 <dd>

 <a href="<?=rentser('m','','e','');?>"<? if($ty3id==-1){?> class="ax"<? }?>>不限</a>

 <? while3("*","yjcode_type where admin=3 and type1='".$ty1name."' and type2='".$ty2name."' order by xh asc");while($row3=mysql_fetch_array($res3)){?>
 <a href="<?=rentser("m",$row3[id],'e','');?>" <? if(check_in("_m".$row3[id]."v",$getstr)){?> class="ax"<? }?>><?=$row3[type3]?></a>
 <? }?>

 
 </dd>

 </dl>
<? }}?>
 
 
  <? 
 $si=0;
 $sbarr=array();
 while1("*","yjcode_typesx where admin=1 and typeid=".$ty1id." order by xh asc");while($row1=mysql_fetch_array($res1)){
 $ev="e".$row1[id]."_";
 $sbarr[$si]=$ev;
 ?>
 <dl>

 <dt>系统品牌：</dt>

 <dd>

<a href="<?=rentser($ev,'','','');?>" <? if(check_in("_".$ev."_v",$getstr) || !check_in("_".$ev,$getstr)){?> class="ax"<? }?>>不限</a>

 
 <? while2("*","yjcode_typesx where admin=2 and name1='".$row1[name1]."' and typeid=".$row1[typeid]." order by xh asc");while($row2=mysql_fetch_array($res2)){?>
 <a href="<?=rentser($ev,$row2[id],'','');?>" <? if(check_in("_".$ev.$row2[id]."v",$getstr)){?> class="ax"<? }?>><?=$row2[name2]?></a>
 <? }?>
 
 </dd>

 </dl>
 <? 
 $si++;
 }
 for($si=0;$si<count($sbarr);$si++){if(returnsx($sbarr[$si])!=-1){$nsx="xcf".returnsx($sbarr[$si])."xcf";$ses=$ses." and tysx like '%".$nsx."%'";}}
 ?>
 
 </div>

 <div class="sx2">

 <dl>

 <dt>已选条件：</dt>

 <dd>


 <? if($ty1id!=-1){?>
 <span class="s1" onMouseOver="this.className='s2';" onMouseOut="this.className='s1';"><a title="取消" href="<?=rentser('j','','e','','search','k','','m','');?>"><?=$ty1name?></a></span>
 <? }?>
 
 <? if($ty2id!=-1){?>
 <span class="s1" onMouseOver="this.className='s2';" onMouseOut="this.className='s1';"><a title="取消" href="<?=rentser('k','','e','','search','m','');?>"><?=$ty2name?></a></span>
 <? }?>
 
 <? if($ty3id!=-1){?>
 <span class="s1" onMouseOver="this.className='s2';" onMouseOut="this.className='s1';"><a title="取消" href="<?=rentser('m','','k','','search');?>"><?=$ty3name?></a></span>
 <? }?>
 
 <? 
 for($si=0;$si<count($sbarr);$si++){
  $tsx=returnsx($sbarr[$si]);
  if($tsx!=-1){
   while1("*","yjcode_typesx where id=".$tsx);if($row1=mysql_fetch_array($res1)){
   if($row1[admin]==2){
 ?>
 <span class="s1" onMouseOver="this.className='s2';" onMouseOut="this.className='s1';"><a title="取消" href="<?=rentser($sbarr[$si],'','','','search');?>"><?=$row1[name1]."：".$row1[name2]?></a></span>
 <? }}}}?>
 
 <? 
 if(returnsx("b")!=-1 || returnsx("c")!=-1){ 
  if(returnsx("c")!=-1 && returnsx("b")!=-1){$tjv=returnsx("b")."-".returnsx("c")."元";}
  elseif(returnsx("c")==-1){$tjv=returnsx("b")."元以上";}
  elseif(returnsx("b")==-1){$tjv=returnsx("c")."元以下";}
 ?>
 <span class="s1" onMouseOver="this.className='s2';" onMouseOut="this.className='s1';"><a title="取消" href="<?=rentser('b','','c','','search');?>"><?=$tjv?></a></span>
 <? }?>
 
 <? if($skey!=""){?>
 <span class="s1" onMouseOver="this.className='s2';" onMouseOut="this.className='s1';"><a title="取消" href="<?=rentser('s','','','','search');?>"><?=$skey?></a></span>
 <? }?>
 
 <? if($ifys==1){?>
 <span class="s1" onMouseOver="this.className='s2';" onMouseOut="this.className='s1';"><a title="取消" href="<?=rentser('a','','','','search');?>">有演示站</a></span>
 <? }?>
 
 <? if($ifzdfh==1){?>
 <span class="s1" onMouseOver="this.className='s2';" onMouseOut="this.className='s1';"><a title="取消" href="<?=rentser('d','','','','search');?>">自动发货</a></span>
 <? }?>
  
 
 
 </dd>

 </dl>

 </div>

</div>



 <div id="wrap-m" style="width:1200px; margin:0 auto;">
  <!--面包屑导航-->
  <!--分类导航-->
  <div class="classify-nav-box clearfix">
    <div class="listbox">
      <!--筛选B-->
      <form name="f1" method="post" onsubmit="return psear()">
        <dl class="sx3">
          <dt>价格范围：</dt>
          <dd>
            <div class="paixu">
              <a href="<?=rentser('f','','','');?>" <? if(returnsx( "f")==-1){?>class="now"
                <? }?>>最新</a>
              <a href="<?=rentser('f','1','','');?>" <? if(returnsx( "f")==1){?>class="a1"
                <? }?>>销量↓</a>
              <a href="<?=rentser('f','2','','');?>" <? if(returnsx( "f")==2){?>class="a1"
                <? }?>>人气↓</a>
              <a href="<?=rentser('f','3','','');?>" <? if(returnsx( "f")==3 || returnsx( "f")==4){?>
                <? }?>>价格↑</a></div>
            <div class="canshu">
              <input name="money1" id="money1" value="<?=$mon1?>" type="text" />-
              <input name="money2" id="money2" value="<?=$mon2?>" type="text" />&nbsp;&nbsp;&nbsp;&nbsp;
              <label>关键字：</label>
              <input name="ink1" value="<?=$skey?>" id="ink1" type="text" />
              <input name="" value="确定" type="submit" /></div>
          </dd>
        </dl>
      </form>
      <div class="listcont">
        <? pagef($ses,30, "yjcode_pro",$px);?>
          <? if(returnsx( "h")==1 || (0==$rowcontrol[propx] && returnsx( "h")==-1)){?>
            <? $i=1; while($row=mysql_fetch_array($res)){ $au="view" .$row[id]. ".html"; while1( "id,uqq,shopname", "yjcode_user where id=".$row[userid]);$row1=mysql_fetch_array($res1); $tit=strgb2312($row[tit],0,50); if(!empty($skey)){$tit=str_replace($skey, "<span class='red'>".$skey. "</span>",$tit);} $tp="../" .returntp( "bh='".$row[bh]. "' order by iffm asc", "-2"); ?>
              <div class="citem">
                <div class="citemtop">
                  <a target="_blank" href="<?=$au?>">
                    <img alt="<?=$tit?>" src="<?=returntppd($tp," ../img/none180x180.gif ")?>" width="280"></a>
                  <div class="citemtxt els">
                    <?=$row[wkey]?></div>
                </div>
                <div class="citemqt">
                  <a href="<?=$au?>" target="_blank" class="citemtitle">
                    <?=$tit?></a>
                </div>
                <div class="citemfoot">
                  <a class="citemfimg" target="_blank" href="../shop/view<?=$row1[id]?>.html">
                    <img src="../upload/<?=$row[userid]?>/shop.jpg" width="24" height="24">
                    <span class="els">
                      <?=returntitdian($row1[shopname],20)?></span>
                  </a>
                  <span class="fr">
                    <em class="price">￥
                      <?=returnjgdian(returnyhmoney($row[yhxs],$row[money2],$row[money3],$sj,$row[yhsj1],$row[yhsj2],$row[id]))?></em></span>
                </div>
              </div>
              <? $i++;}?>
                <? }else{?>
                  <? }?></div>
    </div>
  </div><?
  $nowurl="search";
  $nowwd="";
  require("../tem/page.html");
  ?>
  
  <style media="screen">.none{display: none;} .friend-link{margin-top:10px;box-shadow:0 0 3px rgba(0,0,0,.1);background:#fff;padding:52px 24px 28px;margin-bottom: 20px;display: inline-block;width: 1200px;} .linkBox-nav{height:56px;line-height:20px;} .linkBox-nav span{font-size:18px;padding:0 40px 0 1px;color:#aaa;cursor: pointer;} .linkBox-nav span:hover,.linkBox-nav .current-link-li{color:#1aba78;} #linkBoxContent a,#linkBoxContent span{color:#aaa;line-height:28px;display:inline;float:left;margin-right:18px;white-space:nowrap;} #linkBoxContent a:hover{color:#1aba78;}</style>
  <script>$(function() {
      $(".link-li").live("click",
      function() {
        $(".linkBox_div").hide();
        $("#linkBox_" + $(this).attr("for")).show();
        $(".linkBox-nav span").attr("class", "link-li");
        $(this).attr("class", "current-link-li");
      });
    });</script>
  <!-- 优质客户 -->
  <div class="friend-link"id="wrap-m" style="width:1150px;">
    <div class="linkBox-nav">
      <span class="current-link-li" for="1">友情连接</span>
      <span class="link-li" for="2">合作伙伴</span>
      <span class="link-li" for="4">网站地图</span></div>
    <div id="linkBoxContent" class="clearfix f14">
      <div id="linkBox_1" class="linkBox_div">
        <? autoAD( "ADI14");while0( "*", "yjcode_ad where adbh='ADI14' and type1='文字' and zt=0 order by xh asc");while($row=mysql_fetch_array($res)){?>
          <a href="<?=$row[aurl]?>" target="_blank">
            <?=$row[tit]?></a>
          <? }?>
            <span>&nbsp;友情链接请联系QQ管理员：<?=$qv[0]?></span></div>
      <div id="linkBox_2" class="linkBox_div none">
        <? autoAD( "ADI13");while0( "*", "yjcode_ad where adbh='ADI13' and zt=0 order by xh asc");while($row=mysql_fetch_array($res)){?>
          <a href="<?=$row[aurl]?>" target="_blank">
            <?=$row[tit]?></a>
          <? }?></div>
      <div id="linkBox_4" class="linkBox_div none">
        <a href="#" target="_blank">2017年日历</a>
        <a href="#" target="_blank">更多&gt;&gt;</a></div>
    </div>
  </div>
</div>
</div>
<? include("../tem/bottom.html");?>
<script src="js/common_public.v2.js"></script>
<!-- 搜索框 -->
<script type="text/javascript">$(function() {
    //图片列表按钮的显示与隐藏
    $(".pic-list").mouseenter(function() {
      $(this).find('.list-but').eq(0).stop().animate({
        'top': '12px'
      },
      200);
    });
    $(".pic-list").mouseleave(function() {
      $(this).find('.list-but').eq(0).stop().animate({
        'top': '-50px'
      },
      200);
    });

  });
  $(window).load(function() {
    PVTJ();
  });</script>
<script type="text/javascript" src="js/masonry.min.js"></script>
</body>

</html>