<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312" />
<title><?php echo $page_title ?></title>
<meta name="keywords" content="<?php echo $page_keyword ?>" />
<meta name="description" content="<?php echo $page_discription ?>" />
<link rel="stylesheet" href="<?php echo $templateroot;?>/images/style.css" />
<link rel="stylesheet" href="<?php echo $templateroot;?>/images/er_info.css" />
<!--www.cnmysoft.com -->
</head>
<body>
<?php include($WEBROOT_TEMP."header.php");?>


<div class="a_b">
    <div class="info_lf">
<?php include($WEBROOT_TEMP."left.php");?>
		
		<div class="clear pd8"><img src="<?php echo $templateroot;?>/images/s.gif" /></div>

		
		<div class="balbo">
        
        <?php echo $ggleft;?>

        
</div>
		
	</div>
<?php
			$listurl = getshopurl($nickstr,$sortnum);
			$urlsort = getshopurl($nickstr,$sortnum,false);
?>
	<div class="info_rt">
	    <div class="in_weizi"><strong>您的位置：</strong> <a href="<?php echo $rootroad;?>/" class="hom">首页</a> &#8250; <a href="<?php echo $listurl ?>"><?php echo $title ?></a></div>
		<div class="in_fen">
        

		
        
        <a href="#"><strong>价格范围：</strong></a>
        
        <a href="<?php echo getshopurl($nickstr,$sortnum,1,1000000) ?>" <?php echo (intval($sp) == 1 && intval($ep) == 1000000)?' class="cs"':"" ?>>所有</a>
        <a href="<?php echo getshopurl($nickstr,$sortnum,1,100) ?>"<?php echo (intval($sp) == 1 && intval($ep) == 100)?' class="cs"':"" ?>>1～100元</a>
		<a href="<?php echo getshopurl($nickstr,$sortnum,100,200) ?>"<?php echo (intval($sp) == 100 && intval($ep) == 200)?' class="cs"':"" ?>>100～200元</a>
		<a href="<?php echo getshopurl($nickstr,$sortnum,200,500) ?>"<?php echo (intval($sp) == 200 && intval($ep) == 500)?' class="cs"':"" ?>>200～500元</a>
		<a href="<?php echo getshopurl($nickstr,$sortnum,500,1000) ?>"<?php echo (intval($sp) == 500 && intval($ep) == 1000)?' class="cs"':"" ?>>500～1000元</a>
		<a href="<?php echo getshopurl($nickstr,$sortnum,1000,2000) ?>"<?php echo (intval($sp) == 1000 && intval($ep) == 2000)?' class="cs"':"" ?>>1000～2000元</a>
		<a href="<?php echo getshopurl($nickstr,$sortnum,2000,5000) ?>"<?php echo (intval($sp) == 2000 && intval($ep) == 5000)?' class="cs"':"" ?>>2000～5000元</a>
		<a href="<?php echo getshopurl($nickstr,$sortnum,5000,1000000) ?>"<?php echo (intval($sp) == 5000 && intval($ep) == 1000000)?' class="cs"':"" ?>>5000元以上</a>
        
        <br>
		
        
        <a href="#"><strong>排序结果：</strong></a>
        
    <a href="<?php echo getshopurl($nickstr,0,$sp,$ep); ?>"<?php echo (intval($sortnum) == 0)?' class="cs"':"" ?>>销量从高到低</a>
    <a href="<?php echo getshopurl($nickstr,1,$sp,$ep); ?>"<?php echo (intval($sortnum) == 1)?' class="cs"':"" ?>>信用从高到低</a>
    <a href="<?php echo getshopurl($nickstr,2,$sp,$ep); ?>"<?php echo (intval($sortnum) == 2)?' class="cs"':"" ?>>价格从高到低</a>
    <a href="<?php echo getshopurl($nickstr,3,$sp,$ep); ?>"<?php echo (intval($sortnum) == 3)?' class="cs"':"" ?>>价格从低到高</a>
        
        
        <br>
		
        
        </div>
		
		<div class="in_tlt">
		    <div class="lfred">在淘宝上搜索相关商品 <?php echo $totalResults ?> 件</div>
		</div>
		<ul class="in_li">


<?php for($i = 0; $i < count($taobaokeItem); $i++) {


	$urlview =getproducturl($taobaokeItem[$i]["num_iid"]);
	
	if($listlinktype=="tao"){
		$picurl = " onclick=\"clickurl('".base64_encode($rootroad."/gotourl.php?iid=".$taobaokeItem[$i]["num_iid"])."','".$rootroad."'); return false;\"";
	}else{
		$picurl = "";
	}

 ?>




		    <li>
			    <span class="ig"><a href="<?php echo $urlview?>" <?php echo $picurl?> target="_blank"><?php setPic($taobaokeItem[$i]["pic_url"]."_b.jpg",160,160,strip_tags(Newiconv("UTF-8","GBK",$taobaokeItem[$i]["title"])))?></a></span>
				<span class="ijg"><strong>淘宝价：￥<?php echo $taobaokeItem[$i]["price"] ?>元</strong></span>
				<span class="it"><a href="<?php echo $urlview?>" target="_blank"><?php echo Newiconv("UTF-8","GBK",$taobaokeItem[$i]["title"]) ?></a></span>
                
				<span class="it"><a href="#"><font color="#FF0000">已售：<?php echo $taobaokeItem[$i]["volume"] ?>件</font></a></u></span>
				<span class="ian"><a href="<?php echo $rootroad."/gotourl.php?iid=".$taobaokeItem[$i]["num_iid"]?>" <?php echo $picurl?>><img src="<?php echo $templateroot;?>/images/qgm.gif"></a></span>
			</li>

<?php
}?>

		</ul>        
		<div class="pages">
        
<?php 
  $page_size=$pagenumKeys;
  $nums=$totalResults;
  $sub_pages=10;
  $pageCurrent=$page;
  
  $subPages=new SubPages($page_size,$nums,$pageCurrent,$sub_pages,getshopurl($nickstr,$sortnum,$sp,$ep,false).($weijingtai?"-":"&page="),2,$weijingtai);
?>        
	</div>
	</div>
	
</div>



<?php include($WEBROOT_TEMP."teyue.php");?>

<div class="clear pd8"><img src="<?php echo $templateroot;?>/images/s.gif" /></div>

<?php include($WEBROOT_TEMP."footer.php");?>

</body>
</html>
