<?php
/**
 *      [XCECP] (C) Colorful Network Inc.
 *      This is NOT a freeware, use is subject to license terms
 */
if(!defined("IN_QKWEB")){exit("Access Denied");}
class DataAction extends BaseAction{
	function ad(){
		header("Content-Type: text/xml");
		display("viewdata");
	}
	function goods(){
		$id = getgpc("id","P");
		if(settype($id,"integer") && $id && is_int($id)){
			load_class("goods");
			$gm = new GoodsModel();
			$info = $gm->getInfo($id);
			//print_r($info);
			return $info;
		}
		return false;
	}
	function district(){
		global $db;
		$id = getgpc("id");
		$act = getgpc("act");
		if($id && $act=="sub"){
			$sql = "select * from qk_district where iStatus=1 and parentId='$id'";
			$dis = $db->getAll($sql);
			$district = array();
			foreach($dis as $item){
				$district[] = array("id"=>$item['id'],"name"=>$item['name']);
			}
			$ret = array("success"=>true,"message"=>"success","data"=>$district);
			echo json_encode($ret);
		}
		return false;
	}
	function order(){
		$id = getgpc("id");
		load_class("order");
		$om = new OrderModel();
		$info = $om->getInfo($id);
		//print_r($info);
		echo(json_encode($info));
		//return false;
	}
	
	function attr(){
		global $db;
		$catId = getgpc("catId");
		$format = getgpc("format");
		$goodsId = getgpc("goodsId");
		load_class("category");
		/*
		$cm = new CategoryModel();
		$catsArr = $cm->getParentCats($catId);
		$cats = implode($catsArr,",");
		echo $cats;
		*/
		$sql = "select typeId from qk_category where id ='$catId'";
		$typeId = $db->getOne($sql);
		
		/*$i=0;
		foreach($typeIdArr as $item){
			$typeId .= $item['typeId'];
			$i++;
			if($i<count($typeIdArr)){$typeId.=",";}
		}
		unset($i);
		echo($typeId);
		*/
		//echo $typeId;
		if(!$typeId){return false;}
		$sql = "select * from qk_goods_attr where typeId='$typeId' or typeId in (select parentId from qk_goods_type where id='$typeId')";

		$attrs = $db->getAll($sql);
		$i=0;
		$html = "";
		foreach($attrs as $item){
			$html .= '<div class="form-line"><label class="label">'.$item['name'].':</label><div class="element">';
			if($item['type']=="radio" || $item['type']=="select"){
				$goodsAttrVal = $db->getOne("select extId from qk_goods_attr_val where goodsId='$goodsId' and attrId='".$item['id']."'");
				$sql = "select * from qk_goods_attr_ext where attrId='".$item['id']."'";
				$exts = $db->getAll($sql);
				$attrs[$i]['ext'] = $exts;
				if($item['type']=="select"){$html.='<select name="attr['.$item['id'].']"><option value="">请选择</option>';}
				foreach($exts as $ext){
					
					if($item['type']=="radio"){
						if($goodsAttrVal == $ext['id']){$checked=" checked";}else{$checked = "";}
						$html .= '<input type="radio" id="attr'.$item['id'].'_'.$ext['id'].'" name="attr['.$item['id'].']" value="'.$ext['id'].'"'.$checked.'><label for="attr'.$item['id'].'_'.$ext['id'].'">'.$ext['value'].'</label> ';
					}else if($item['type']=="select"){
						if($goodsAttrVal == $ext['id']){$selected=" selected";}else{$selected = "";}
						$html .= '<option value="'.$ext['id'].'"'.$selected.'>'.$ext['value'].'</option>';
					}
				}
				if($item['type']=="select"){$html.="</select>";}
			}
			$html .= '</div></div>';
			$i++;
		}
		if($format=="html"){
			//print_r($attrs);
			echo $html;
		}
	}

	function user(){
		$act = getgpc("act");
		$inajax = getgpc("inajax");
		$loginName = getgpc("loginName","P");
		$id = getgpc("id");
		if($inajax==1){
			global $db;
			$ret = array('success'=>false,'message'=>'参数错误');
			if($act=="check"){
				if($loginName){
					$sql = "select id from qk_user where loginName='$loginName'";
				}else if($id){
					$sql = "select id from qk_user where id='$id'";
				}
				if(!$sql){return;}
				$id = $db->getOne($sql);
				if($id){
					$ret = array('success'=>true,'message'=>'操作成功','data'=>array('userId'=>$id));
				}else{
					$ret['message'] = '用户不存在';
				}
			}else if($act=='info'){
				if(BaseAction::userLogin()){
					$sql = "select id,email,mobile from `qk_user` where id='".$_SESSION['userId']."'";$data=$db->getRow($sql);
					load_class('user');
					$um = new UserModel();
					$data['creditBalance'] = $um->getCreditBalance($_SESSION['userId']);
					$ret['success']=true;
					$ret['message']='获取用户资料成功';
					$ret['data']=$data;
				}else{
					$ret['message']='请先注册/登录用户';
					$ret['code']=1000;
				}
			}
			echo json_encode($ret);
			exit;
		}
	}

	function newlysales(){
		echo '[{"img":"images\/201301\/1359106700881595108.jpg","goods_url":"\/category-woshitaofang\/goods-34487.html","goods_name":"\u5367\u5ba4\u53e4\u5178\u5b9e\u6728\u5bb6\u51774\u4ef6\u5957","goods_price":"6999","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568683"},{"img":"images\/201303\/201303111f6896dda20e74fe299b982216148820.jpg","goods_url":"\/category-chuang\/goods-34485.html","goods_name":"\u8d28\u6734\u7f8e\u5f0f\u5b9e\u6728\u53cc\u4eba\u5e8a","goods_price":"3114","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568683"},{"img":"images\/201301\/1359106700969421356.jpg","goods_url":"\/category-chuangtougui\/goods-34488.html","goods_name":"\u4e24\u62bd\u53e4\u5178\u5e8a\u5934\u67dc","goods_price":"699","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568683"},{"img":"images\/201301\/1359106699320759865.jpg","goods_url":"\/category-zhuangtai\/goods-34489.html","goods_name":"\u96d5\u82b1\u5986\u53f0\u955c\u7ec4\u5408","goods_price":"2341","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568683"},{"img":"images\/201301\/1359106700831596626.jpg","goods_url":"\/category-dougui\/goods-34490.html","goods_name":"\u8d28\u6734\u5367\u5ba4\u4e94\u6597\u67dc","goods_price":"1467","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568683"},{"img":"images\/201304\/1364960956778790597.jpg","goods_url":"\/category-chuang\/goods-35741.html","goods_name":"\u5927\u6c14\u5962\u534e\u7f8e\u5f0f\u5e8a","goods_price":"3199","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568402"},{"img":"images\/201304\/1364802910640671721.jpg","goods_url":"\/category-chuangtougui\/goods-35745.html","goods_name":"\u5927\u6c14\u5962\u534e\u5e8a\u5934\u67dc","goods_price":"599","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568402"},{"img":"images\/201108\/13124539176380422.jpg","goods_url":"\/category-cantingtaozhuang\/goods-20829.html","goods_name":"\u9910\u5385\u94a2\u5316\u73bb\u7483\u5bb6\u5177-5\u4ef6\u5957","goods_price":"2709","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201112\/1324955160418512317.jpg","goods_url":"\/category-canzhuo\/goods-20827.html","goods_name":"\u9910\u5385\u5bb6\u5177-\u94a2\u5316\u73bb\u7483\u9910\u53f0","goods_price":"1429","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201108\/13124539177918534.jpg","goods_url":"\/category-canyi\/goods-20828.html","goods_name":"\u9910\u5385\u5bb6\u5177-\u65e0\u6276\u624b\u76ae\u9910\u6905 ","goods_price":"320","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201301\/1357520297246297142.jpg","goods_url":"\/category-canbiangui\/goods-32701.html","goods_name":"\u677f\u5f0f\u9910\u8fb9\u67dc","goods_price":"950","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201303\/1364537108237989982.jpg","goods_url":"\/category-shafa\/goods-24093.html","goods_name":"\u5ba2\u5385\u771f\u76ae\u8f6c\u89d2\u6c99\u53d1\uff08\u5de6\u65b9\u5411\uff09","goods_price":"5499","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201303\/1364537107485248739.jpg","goods_url":"\/category-shafa\/goods-24097.html","goods_name":"\u4f11\u95f2\u771f\u76ae\u5b9e\u6728\u5355\u4eba\u6c99\u53d1","goods_price":"850","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201303\/1364537108274105533.jpg","goods_url":"\/category-shafa\/goods-24100.html","goods_name":"\u9760\u5934\u53ef\u6d3b\u52a8\u7684\u8d35\u5983\u6c99\u53d1\uff08\u5de6\u8d35\u5983\uff09","goods_price":"1899","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201303\/1364537107175170973.jpg","goods_url":"\/category-shafa\/goods-24605.html","goods_name":"\u5e26\u4fa7\u67dc\u7684\u4e09\u4eba\u4f4d\u771f\u76ae\u6c99\u53d1\uff08\u5de6\u65b9\u5411\uff09","goods_price":"2750","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201206\/1339057668736322486.jpg","goods_url":"\/category-chajihebianzhuo\/goods-24611.html","goods_name":"\u9020\u578b\u522b\u81f4\u7684\u8336\u51e0","goods_price":"1088","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201107\/13097703624916826.jpg","goods_url":"\/category-dianshigui\/goods-21097.html","goods_name":"\u7279\u8272\u73b0\u4ee3\u5730\u67dc\u653e\u7f6e","goods_price":"1314","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201204\/1334914542840186004.jpg","goods_url":"\/category-xiegui\/goods-25554.html","goods_name":"\u65f6\u5c1a\u7f8e\u89c2\u7684\u978b\u67dc","goods_price":"1242","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365568162"},{"img":"images\/201303\/20130318c4cebb2aa6e38cac82de4f7386a3a8e3.jpg","goods_url":"\/category-chuang\/goods-20363.html","goods_name":"1.8\u7c73\u6c34\u6676\u62c9\u6263\u771f\u76ae\u5e8a","goods_price":"3280","consignee":"\u5543\u55431***","order_time":"1365567979"},{"img":"images\/201111\/1320401187563083498.jpg","goods_url":"\/category-chuangtougui\/goods-16422.html","goods_name":"\u5367\u5ba4\u5e8a\u5934\u67dc","goods_price":"480","consignee":"\u4f53\u9a8c\u9986\u5ba2\u6237","order_time":"1365567705"}]';
	}

	function kfurl(){
		load_class("variable");
		$vm = new VariableModel();
		$info = $vm->getInfo("onlineLink");
		if($info['value']){
			Msg::show(array("msg"=>"正在连接在线客服，请稍候...","url"=>$info['value'],"timer"=>10));
		}else{
			Msg::show('未配置在线客服链接变量(onlineLink)');
		}
	}

	function session(){
		print_r($_SESSION);
	}

	function goodsfilter(){
		if(($catId = getgpc('catId')) && is_numeric($catId)){
			load_class("category");
			$cm = new CategoryModel();
			$catInfo = $cm->getInfo($catId);
			$pFilter = getgpc("filter");
			$filterAttr = $catInfo['filter'];
			$filterValue = explode("-",$pFilter);
			$filter = array();
			if($filterAttr && is_array($filterAttr) && count($filterAttr)>0){
			if(count($filterAttr) == count($filterValue)){
				$i=0;
				foreach($filterAttr as $attr){
					$filter[$attr] = $filterValue[$i];
					$i++;
				}
			}
			assign("filter",$filter);
			if(!$pFilter){
				$filterValue = $filterAttr;
				$i=0;
				foreach($filterValue as $v){ $filterValue[$i] = 0; $i++; }
				//print_r($filterValue);
			}
			global $db;
			$filters = array();
			$i = 0;
			foreach($filterAttr as $item){
				$sql = "select * from qk_goods_attr_ext where attrId='".$item."' order by sortId asc,id asc";
				$filters[$i]['type'] = $db->getRow("select * from qk_goods_attr where id='".$item."'");
				if($filters[$i]['type']){
					//$attrIndex = 0;
					//foreach($filters[$i]['type'] as $type){
						//$filters[$i]['type'][$attrIndex]['keyName'] = "";
					//}
					$filters[$i]['item'] = $db->getAll($sql);
					$i++;
				}
			}
			//print_r($filters);
			$i=0;
			//print_r($filterAttr);//Array ( [0] => 6 [1] => 5 [2] => 3 [3] => 4 ) exit;
			//print_r($filterValue);//Array ( [0] => 6 [1] => 5 [2] => 3 [3] => 4 ) exit;
			//print_r($filters);
			//组合筛选URL
			foreach($filters as $item){
				$filter = $item['item'];	//每一种筛选方式
				$j=0;
				foreach($filter as $attr){//每一种筛选方式中的筛选值
					$filterUrl = "";
					$k=0;
					$filterAttrTemp = $filterValue;	//筛选方式组合参数数量
					foreach($filterAttr as $v){
						//echo $v."-".$item['type']['id'].",";
						//echo $k."-".$item['item'][$k]['id'].",";
						if($v==$item['type']['id']){
							//$extId=$item['item'][$k]['id'];
							$extId = $attr['id'];
							$filterAttrTemp[$k] = $extId;
							//$filterUrl.=$extId;
							$l = 0;
							$filterUrl = "";
							foreach($filterAttrTemp as $val){
								$filterUrl .= $val;
								$l++;
								if($l<count($filterAttrTemp)){
									$filterUrl.="-";
								}
							}
						}
						$k++;
					}
					if($filterUrl){$filterUrl="filter/".$filterUrl;}
					if($sort){$order="sort/".$sort;}
					$filters[$i]['item'][$j]['url'] = $baseUrl."goods/list/catId/$catId/$order".$filterUrl;
					$j++;
				}
				$i++;
			}
			}
			if(count($filters)>0){
				$filters = array('success'=>true,'message'=>'成功','data'=>$filters);
				$t = json_encode($filters);
				print_r($t);
			}else{
				$filters = array('success'=>false,'message'=>'Forbidden');
				$t = json_encode($filters);
				echo $t;
			}
		}
		
	}

	function env(){
		if(!isset($_SESSION['adminId']) || !$_SESSION['adminId'] || !is_numeric($_SESSION['adminId'])){
			Msg::show('因安全原因，禁止您访问该页面');
		}else{
			phpinfo();
		}
	}

	function cartNum(){
		$userId = $_SESSION['userId'];
		if($userId){$wheres=" or userId='$userId'";}else{$wheres="";}
		$sql = "select id from qk_shoppingcart where sessionId='".session_id()."' $wheres order by id desc";
		$cartInfo = $GLOBALS['db']->getAll($sql);//print_r($cartInfo);
		$num = count($cartInfo);if(!$num){$num=0;}
		exit('{"success":"true","data":{"num":"'.$num.'"}}');
	}

	function taoke(){
		$act = getgpc("act","P");
		$inajax = getgpc("inajax","P");
		if($inajax=='1'){
			$ret = array('success'=>false,'message'=>'参数错误');
			if($act=='getClickUrl'){
				$iid = getgpc('iid','P');
				if(!$iid){$ret['message']='IID错误';}else{
					$url = "http://u.alimama.com/union/spread/common/allCode.htm?specialType=cowry&auction_id=".$iid;
					$http = new http($url);
					$cookie = getVariable("alimamaCookie");//echo $cookie;exit;
					$http->setCookies($cookie);
					$http->createCurl();
					$resp = $http->responseText();
					//echo "abc.".$resp;
					preg_match("/var clickUrl = '(.*)';/",$resp,$data);
					if(isset($data[1]) && $data[1]){//echo $data[1];
						$ret = array('success'=>true,'message'=>'获取推广链接成功','data'=>array('clickUrl'=>$data[1]));
					}else{
						$ret['message']='获取推广链接失败';
						//echo $resp;
					}
					
				}
			}
			echo json_encode($ret);exit;
		}
	}
	function version(){
		header("Content-Type:text/plain;charset=UTF-8");
		echo "NAME: XCECP\r\nVERSION:".VERSION."\r\n";
	}
	function config(){
		$inajax = getgpc('inajax','P');
		$act=getgpc('act','P');
		$name=getgpc('name','P');
		if($inajax==1){
			$ret=array('success'=>false,'message'=>'参数错误');
			if($act=='info'){
				if($name && preg_match("/^([a-zA-Z]+)$/",$name)){
					$sql = "select * from qk_config where iStatus=1 and name='$name'";
					$config=$GLOBALS['db']->getRow($sql);
					if($config && count($config)>0){
						$ret=array('success'=>true,'message'=>'获取成功','data'=>array());
					}
				}
			}
			echo json_encode($ret);
		}
	}
	function focus(){
		echo 'biFocusAd1
({
    "errCode":"0",
    "retCode":"0", 
    "msg":"", 
    "list":[
	';
	$sql = "select * from qk_ad where placeId=39 order by sortId asc,id desc";
	$ads = $GLOBALS['db']->getAll($sql);
	$i=1;
	foreach($ads as $item){
    echo    '{
        "groupid":"'.$item['id'].'", 
        "num":"'.$i.'", 
        "locations":[
        {
            "locationid":"1622", 
            "plannum":"1", 
            "plans":[
            {
                "planid":"4073", 
                "materialid":"55299", 
                "material":"'.$item['thumbnail']['url'].'", 
                "materiallink":"'.$item['url'].'", 
                "materialname":"'.$item['name'].'", 
                "materialdesc":"'.$item['name'].'", 
                "clickurl":"'.$item['url'].'"
            }  ]
        }  ] 
    }';
		if($i<count($ads)){echo ',';}
		$i++;
	}
	echo ']
});';
	}
	function xin(){
	echo 'try{showPageData15240({pageId:15240,data:[{"ppms_itemName":"女装","cate":"女装","tag":"lady","adImg":"http://pics2.paipaiimg.com/update/20131029/tuan_182441680.jpg","adImg2":"http://pics2.paipaiimg.com/update/20131029/tuan_182455475.png","style":"1","gender":"1","areaId":"11","time":"oct.30","isShow":"1","link":"http://www.wanggou.com/lady/promote/2013/aipinpai-xiangfei.shtml?PTAG=34056.2.3","bgImg":"http://pics1.paipaiimg.com/update/20131022/pcd_151610657.jpg","link2":"http://www.wanggou.com/lady/newest.shtml?PTAG=34056.2.4&tab=1","isShowInIndex":"1","indexTips":"至潮秋冬皮衣","indexBgImg":"http://pics0.paipaiimg.com/update/20131030/pcd_113358452.jpg","indexNewImg":"http://pics3.paipaiimg.com/update/20131101/index_105916598.jpg","indexNewLink":"http://www.wanggou.com/xin/?PTAG=20219.75.7#ver=b&gender=1","indexNewName":"达芙妮首发"},{"ppms_itemName":"男装","cate":"男装","tag":"man","adImg":"http://pics0.paipaiimg.com/update/20131030/tuan_111829424.jpg","adImg2":"http://pics3.paipaiimg.com/update/20131030/tuan_111831968.png","style":"1","gender":"2","areaId":"12","time":"oct.30","isShow":"1","link":"http://www.wanggou.com/tiao/man.shtml?ctab=totab_b8","bgImg":"http://pics2.paipaiimg.com/update/20131022/pcd_151634326.jpg","link2":"http://s.wanggou.com/0,22001-0,700491/x---1-60-77-700491--3-4-3----2-2-512-2199023255680-0-0-as,0-platform,2.html?PTAG=34056.2.7","isShowInIndex":"1","indexTips":"聚焦雅痞范儿","indexBgImg":"http://pics2.paipaiimg.com/update/20131030/pcd_180554285.png","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"女鞋","cate":"女鞋","tag":"shoes","adImg":"http://pics1.paipaiimg.com/update/20131030/pcd_114017502.jpg","adImg2":"http://pics2.paipaiimg.com/update/20131030/pcd_114020268.png","style":"3","gender":"1","areaId":"13","time":"oct.30","isShow":"1","link":"http://www.wanggou.com/tiao/lady.shtml?PTAG=34056.2.9&item=E1201D1C00000000040100003256C6CB#tab_c7","bgImg":"http://pics2.paipaiimg.com/update/20131022/pcd_15164745.jpg","link2":"http://s.wanggou.com/0,21036/x-zr2vbrj9zg1t--121-60-77-21036--3-4-3----2-2-512-2199023255680-0-0.0-as,0-platform,2-sf,131.html?PTAG=34056.2.10","isShowInIndex":"","indexTips":"潮流高帮靴","indexBgImg":"http://pics0.paipaiimg.com/update/20131030/pcd_113506647.jpg","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"箱包","cate":"箱包","tag":"bag","adImg":"http://pics0.paipaiimg.com/update/20131029/tuan_183422190.jpg","adImg2":"http://pics1.paipaiimg.com/update/20131029/tuan_183435824.png","style":"2","gender":"1","areaId":"14","time":"oct.30","isShow":"1","link":"http://www.wanggou.com/bag/promote/2013/pro_4.shtml?PTAG=34056.2.12","bgImg":"http://pics0.paipaiimg.com/update/20131022/pcd_151700392.jpg","link2":"http://s.wanggou.com/x-pi7jc--1-60-77-0--3-4-3----2-2-512-2199023255680-0-0.0-as,0-platform,2-sf,131.html?PTAG=34056.2.13","isShowInIndex":"1","indexTips":"万圣节炫包","indexBgImg":"http://pics0.paipaiimg.com/update/20131030/pcd_1225-240-2--_1_.jpg","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"化妆品","cate":"化妆品","tag":"beauty","adImg":"http://pics2.paipaiimg.com/update/20131029/index_183156809.jpg","adImg2":"http://pics2.paipaiimg.com/update/20131029/tuan_183150365.png","style":"3","gender":"1","areaId":"15","time":"oct.30","isShow":"1","link":"http://s.wanggou.com/x-2swpmma--1-60-77-0--3-4-3----2-2-512-2199023255680-0-0.0-as,0-platform,2-sf,131.html?PTAG=34056.2.15","bgImg":"http://pics1.paipaiimg.com/update/20131022/pcd_151714934.jpg","link2":"http://s.wanggou.com/x-2vvosnjn2c8qit9j2vva--1-60-77-0--3-4-3----2-2-512-2199023255680-0-0.0-as,0-platform,2-sf,131.html?PTAG=34056.2.16","isShowInIndex":"1","indexTips":"食养美肌","indexBgImg":"http://pics3.paipaiimg.com/update/20131029/index_1120-240-1.jpg","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"童装","cate":"童装","tag":"baby","adImg":"http://pics3.paipaiimg.com/update/20131016/tuan_175329970.jpg","adImg2":"http://pics1.paipaiimg.com/update/20131016/tuan_17533668.png","style":"2","gender":"1","areaId":"16","time":"sep.18","isShow":"","link":"http://shop.wanggou.com/2480743790/521/index.shtml?PTAG=34056.2.18","bgImg":"http://pics2.paipaiimg.com/update/20131022/pcd_151730272.jpg","link2":"http://shop.wanggou.com/2480743790/511/index.shtml?PTAG=34056.2.19","isShowInIndex":"","indexTips":"你值得拥有","indexBgImg":"","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"男鞋","cate":"男鞋","tag":"man_shoes","adImg":"http://pics1.paipaiimg.com/update/20131030/tuan_105200846.jpg","link":" http://s.wanggou.com/x-z1q592t--1-60-77-0--3-4-3----2-2-512-2199023255680-0-0.0-as,0-platform,2-sf,131.html?PTAG=34056.2.35","link2":"http://s.wanggou.com/x-z1q592t--1-60-77-0--3-4-3----2-2-512-2199023255680-0-0-.0-as,0-platform,2-sf,131.html?PTAG=34056.2.36","adImg2":"http://pics0.paipaiimg.com/update/20131030/tuan_104953223.png","bgImg":"http://pics0.paipaiimg.com/update/20131022/pcd_152027657.jpg","style":"2","gender":"2","areaId":"23","time":"Oct.30","isShow":"1","isShowInIndex":"1","indexTips":"嘻哈帆布鞋","indexBgImg":"http://pics3.paipaiimg.com/update/20131030/tuan_1225_240.jpg","indexNewName":"","indexNewImg":"","indexNewLink":""},{"ppms_itemName":"运动","cate":"运动","tag":"sport","adImg":"http://pics0.paipaiimg.com/update/20131030/pcd_103529522.jpg","adImg2":"http://pics3.paipaiimg.com/update/20131030/pcd_103534758.png","style":"2","gender":"2","areaId":"17","time":"oct.30","isShow":"1","link":"http://s.wanggou.com/x---1-48-77-230711--3-4-3----2-2-512-2199023255680-0-0.0-as,0-platform,2.html?PTAG=34056.2.21","bgImg":"http://pics2.paipaiimg.com/update/20131022/pcd_151746777.jpg","link2":"http://shop.wanggou.com/2867956996?PTAG=34056.2.22","isShowInIndex":"1","indexTips":"潮流冲锋衣","indexBgImg":"http://pics1.paipaiimg.com/update/20131030/pcd_113719240.jpg","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"家居","cate":"家居","tag":"life","adImg":"","adImg2":"","style":"1","gender":"1","areaId":"","time":"","isShow":"","link":"?PTAG=34056.2.24","bgImg":"http://pics0.paipaiimg.com/update/20131022/pcd_151808206.jpg","link2":"","isShowInIndex":"","indexTips":"你值得拥有","indexBgImg":"","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"内衣","cate":"内衣","tag":"underwear","adImg":"","adImg2":"","style":"1","gender":"1","areaId":"","time":"","isShow":"","link":"?PTAG=34056.2.27","bgImg":"http://pics2.paipaiimg.com/update/20131022/pcd_151821815.jpg","link2":"","isShowInIndex":"","indexTips":"你值得拥有","indexBgImg":"","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"饰品","cate":"饰品","tag":"shine","adImg":"http://pics0.paipaiimg.com/update/20131030/pcd_112659922.jpg","adImg2":"http://pics3.paipaiimg.com/update/20131030/pcd_180536888.png","style":"2","gender":"1","areaId":"20","time":"oct.30","isShow":"1","link":"http://www.wanggou.com/tiao/shine.shtml?PTAG=34056.2.29#totab_c3","bgImg":"http://pics0.paipaiimg.com/update/20131022/pcd_151844250.jpg","link2":"http://s.wanggou.com/0,2001-55,5055/x---1-60-77-2001--3-4-3----2-2-512-2199023255680-0-0.0-as,0-platform,2-sf,131.html?PTAG=34056.2.30","isShowInIndex":"","indexTips":"欧美风饰品","indexBgImg":"http://pics2.paipaiimg.com/update/20131030/index_180636671.jpg","indexNewImg":"","indexNewLink":"","indexNewName":""},{"ppms_itemName":"数码","cate":"数码","tag":"3c","adImg":"http://pics2.paipaiimg.com/update/20131030/pcd_103509195.jpg","link":"http://www.wanggou.com/tiao/3c.shtml?PTAG=34056.2.33#totab_d5","link2":"http://www.wanggou.com/tiao/3c.shtml?PTAG=34056.2.34","adImg2":"http://pics2.paipaiimg.com/update/20131030/pcd_112718835.png","bgImg":"http://pics2.paipaiimg.com/update/20131022/pcd_15190068.jpg","style":"3","gender":"2","areaId":"22","time":"oct.30","isShow":"1","isShowInIndex":"","indexTips":"数码新奇特","indexBgImg":"http://pics1.paipaiimg.com/update/20131030/pcd_3.jpg","indexNewName":"","indexNewImg":"","indexNewLink":""}]})}catch(e){} ';
	
	}
}
//{"id":"11","userId":"12","goodsId":"0","consignee":"","pnum":"0","amount":"52.00","iStatus":"5","address":"","zipCode":"450005","mobile":"","phone":"","deliveryTypeId":"1","paytypeId":"6","paybankId":"4","invoicetypeId":"0","ftypeId":"0","invoiceTitle":"","invoiceContentId":"0","remark":"","addrId":"4","firstName":"Qi","lastName":"Ke","comName":"QIKEWEB.NET","street":"QIKE","suburb":"WEB","postCode":"","city":"ZhengZhou","province":"HeNan","country":"China","receiver":"","receiveAddrId":"0","receiveAddrDetail":"","receiverTel":"","receiverMobile":"","posttime":"1347273164","userInfo":{"id":"12","loginName":"","loginPwd":"e10adc3949ba59abbe56e057f20f883e","name":"","nickname":"","groupId":"0","email":"admin@cgndg.cn","firstName":"he","lastName":"gao","comName":"","street":"Huayuan","suburb":"","zipCode":"450000","city":"Zhengzhou","province":"Henan","country":"China","tel":"0371-63365459","fax":"dfg","posttime":"1344557760"},"goods":[{"goodsId":"21","pnum":"2","name":null,"price":"0.00","goodsInfo":false},{"goodsId":"13","pnum":"1","name":"Clear Reversible Trumpet Vase","price":"0.00","goodsInfo":{"id":"13","userId":"0","catId":"4","name":"Clear Reversible Trumpet Vase","bn":"","price":"42.00","costPrice":"0.00","marketPrice":"0.00","promotion":"0","content":"<p>asf&lt;\/p&gt;","thumbId":"0","iStatus":"1","weight":"0","sortId":"50","isNew":"0","isHot":"1","isLively":"0","isTuan":"0","TBuyNum":"0","TEndTime":"0","inventory":"0","brandId":"0","title":"Page Title","keywords":"Page Keywords","description":"Page Descripion","posttime":"1344221120","preview":[{"id":"44","url":"\/data\/attachment\/2012\/0806\/VTV2130.gif","parentId":"0","goodsId":"13","typeId":"1","sortId":"50","iStatus":"1","posttime":"1344226629","small":{"url":"\/data\/attachment\/2012\/0806\/VTV2130.gif"},"middle":{"url":"\/data\/attachment\/2012\/0806\/VTV2130.gif"},"large":{"url":"\/data\/attachment\/2012\/0806\/VTV2130.gif"}}],"thumbnail":{"url":"\/data\/attachment\/2012\/0806\/VTV2130.gif"},"url":"\/Clear-Reversible-Trumpet-Vase-p\/vase-258.htm","attr":{"1":{"id":"25","goodsId":"13","attrId":"1","value":"Clear Reversible Trumpet Vase","posttime":"1344221120"},"mega":{"id":"25","goodsId":"13","attrId":"1","value":"Clear Reversible Trumpet Vase","posttime":"1344221120"},"2":{"id":"26","goodsId":"13","attrId":"2","value":"vase-258","posttime":"1344221120"},"sku":{"id":"26","goodsId":"13","attrId":"2","value":"vase-258","posttime":"1344221120"}},"catName":"","brandName":"","userInfo":false,"threeMonthSaleNum":0,"saleNum":0}}],"goodsName":"","status":"Processing","delivery":"Ordinary express","deliveryPrice":"10","invoicetype":"","invoiceContent":"","paybank":"pay by Credit Card"}

?>
