<?php
/*
'**************************************************************************************************
' 软件名称: YES风淘宝网赚系统 
' 版本编号: Version 7.1
' 官方网站: http://soft.yesfeng.com
' 官方演示：http://demo.yesfeng.com
' 服务中心：http://service.yesfeng.com
' 版权所有: YES风运营团队
' 法律顾问: 宁波市甬港律师事务所 
' 郑重声明:
'    1、任何个人或组织不得在未经授权的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息；
'    2、YES风网络事业部保留此软件的法律追究权利
'**************************************************************************************************
*/
error_reporting(0);
require_once 'function.php';
$catid = !($_GET['catid'])?'':intval($_GET['catid']);
$catid = getnochengrencid($catid);
$page = !($_GET['page'])?'0':intval($_GET['page']);
$sort = !($_GET['sort'])?'commissionNum_desc':$_GET['sort'];
$sp = !($_GET['sp']) ? '1' : $_GET['sp'];
$ep = !($_GET['ep']) ? '10000' : $_GET['ep'];
$q = '皇冠';

$cat_name = iconv("GBK","UTF-8","所有分类");
$is_parent = "false";
if($catid != 0)
{
	$Taoapi->method = 'taobao.itemcats.get';
	$Taoapi->fields = 'cid,name,parent_cid,is_parent';
	$Taoapi->cids = $catid;
	$TaoapiCat = $Taoapi->SendCheng('get','xml')->getArrayData();
	$result_cat = $TaoapiCat["item_cats"]["item_cat"];
	$cat_name = $result_cat["name"];
	$is_parent = $result_cat["is_parent"];
}

if($is_parent == "true")
{
	$Taoapi->method = 'taobao.itemcats.get';
	$Taoapi->fields = 'cid,name,parent_cid';
	$Taoapi->parent_cid = $catid;
	$TaoapiSubCats = $Taoapi->SendCheng('get','xml')->getArrayData();
	$result_subcats = $TaoapiSubCats["item_cats"]["item_cat"];
}

$Taoapi->method = 'taobao.taobaoke.items.get';
$Taoapi->fields = 'iid,num_iid,title,nick,pic_url,price,click_url,commission,commission_rate,commission_num,commission_volume,seller_credit_score,shop_click_url';
$Taoapi->nick = $usernick;
$Taoapi->cid = $catid;
$Taoapi->page_no = $page;
$Taoapi->page_size = '20';
$Taoapi->keyword = iconv("GBK","UTF-8",$q);
$Taoapi->sort = $sort;
$Taoapi->start_price = $sp;
$Taoapi->end_price = $ep;
$TaoapiItems = $Taoapi->SendCheng('get','xml')->getArrayData();
$taobaokeItem = $TaoapiItems["taobaoke_items"]["taobaoke_item"];
$totalResults = $TaoapiItems["total_results"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<link href="css/qqhk.css" rel="stylesheet" type="text/css" />
<title><?php echo $q ?>-<?php echo iconv("UTF-8","GBK",$cat_name) ?>-<?php echo $sitetitle ?></title>
<meta name="keywords" content="<?php echo $q ?>,<?php echo iconv("UTF-8","GBK",$cat_name) ?>,<?php echo $sitekey ?>" />
<meta name="description" content="欢迎在<?php echo iconv("UTF-8","GBK",$cat_name) ?>类商品中搜索<?php echo $q ?>产品。<?php echo $sitedesc ?>" />
<link href="css/qqhk.css" rel="stylesheet" type="text/css" />
<link href="images/style1.css" rel="stylesheet" type="text/css" />
<LINK href="/templets/beauty/alfs.css" type=text/css rel=stylesheet>
<LINK href="/templets/beauty/index_article.css" type=text/css rel=stylesheet>
</head>
<body>
<div id="main">
<?php
include("header.php");
?>
	<div class="weizhi"><span>您的位置：</span><a href="/">首页</a><a href="list.php">全部分类</a><a href="list.php?catid=<?php echo $catid ?>"><?php echo iconv("UTF-8","GBK",$cat_name) ?></a> <?php echo $q ?></div>
	<div class="taoke_mainbox">
		<div class="clear"></div>
		<div class="taoke_mainboxl">
			<div class="taoke_left_catalogs">
				<h1><span>商品分类</span></h1>
				<ul>
					<li class="cat_14"><a href="list.php?catid=14">数码相机/摄像机/摄影器材</a></li>
					<li class="cat_50008090"><a href="list.php?catid=50008090">3C数码配件市场</a></li>
					<li class="cat_11"><a href="list.php?catid=11">电脑硬件/台式整机/网络设备</a></li>
					<li class="cat_50012164"><a href="list.php?catid=50012164">闪存卡/U盘/移动硬盘</a></li>
					<li class="cat_50007218"><a href="list.php?catid=50007218">办公设备/文具/耗材</a></li>
					<li class="cat_21"><a href="list.php?catid=21">居家日用/收纳/礼品</a></li>
					<li class="cat_50016349"><a href="list.php?catid=50016349">厨房/餐饮用具</a></li>
					<li class="cat_50016348"><a href="list.php?catid=50016348">日化/清洁/护理</a></li>
					<li class="cat_50008163"><a href="list.php?catid=50008163">床上用品/靠垫/毛巾/布艺</a></li>
					<li class="cat_2128"><a href="list.php?catid=2128">家装饰品/窗帘/地毯</a></li>
					<li class="cat_35"><a href="list.php?catid=35">奶粉/辅食/营养品</a></li>
					<li class="cat_50014812"><a href="list.php?catid=50014812">尿片/洗护/喂哺等用品</a></li>
					<li class="cat_50005998"><a href="list.php?catid=50005998">益智玩具/早教/童车床/出行</a></li>
					<li class="cat_50008165"><a href="list.php?catid=50008165">童装/童鞋/孕妇装</a></li>
					<li class="cat_50002766"><a href="list.php?catid=50002766">零食/坚果/茶叶/特产</a></li>
					<li class="cat_50016422"><a href="list.php?catid=50016422">滋补/生鲜/速食/订餐</a></li>
					<li class="cat_50012472"><a href="list.php?catid=50012472">保健食品</a></li>
					<li class="cat_1201"><a href="list.php?catid=1201">MP3/MP4/iPod/录音笔</a></li>
					<li class="cat_1512"><a href="list.php?catid=1512">手机</a></li>
					<li class="cat_50012081"><a href="list.php?catid=50012081">国货精品手机</a></li>
					<li class="cat_50002768"><a href="list.php?catid=50002768">个人护理/保健/按摩器材</a></li>
					<li class="cat_40"><a href="list.php?catid=40">腾讯QQ专区</a></li>
					<li class="cat_1101"><a href="list.php?catid=1101">笔记本电脑</a></li>
					<li class="cat_50010728"><a href="list.php?catid=50010728">运动/瑜伽/健身/球迷用品</a></li>
					<li class="cat_50013886"><a href="list.php?catid=50013886">户外/登山/野营/旅行用品</a></li>
					<li class="cat_50011699"><a href="list.php?catid=50011699">运动服/运动包/颈环配件</a></li>
					<li class="cat_50010388"><a href="list.php?catid=50010388">运动鞋</a></li>
					<li class="cat_20"><a href="list.php?catid=20">电玩/配件/游戏/攻略</a></li>
					<li class="cat_25"><a href="list.php?catid=25">玩具/模型/娃娃/人偶</a></li>
					<li class="cat_50011665"><a href="list.php?catid=50011665">网游装备/游戏币/帐号/代练</a></li>
					<li class="cat_50008907"><a href="list.php?catid=50008907">IP卡/网络电话/手机号码</a></li>
					<li class="cat_99"><a href="list.php?catid=99">网络游戏点卡</a></li>
					<li class="cat_23"><a href="list.php?catid=23">古董/邮币/字画/收藏</a></li>
					<li class="cat_50008164"><a href="list.php?catid=50008164">家具/家具定制/宜家代购</a></li>
					<li class="cat_50007216"><a href="list.php?catid=50007216">鲜花速递/蛋糕配送/园艺花艺</a></li>
					<li class="cat_26"><a href="list.php?catid=26">汽车/配件/改装/摩托/自行车</a></li>
					<li class="cat_50004958"><a href="list.php?catid=50004958">移动/联通/小灵通充值中心</a></li>
					<li class="cat_27"><a href="list.php?catid=27">装潢/灯具/五金/安防/卫浴</a></li>
					<li class="cat_50005700"><a href="list.php?catid=50005700">品牌手表/流行手表</a></li>
					<li clas