<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title><?php echo ($page_seo["title"]); ?></title>
<meta name="keywords" content="<?php echo ($page_seo["keywords"]); ?>" />
<meta name="description" content="<?php echo ($page_seo["description"]); ?>" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/ftxia/style.css" />
<script type="text/javascript" src="__STATIC__/js/jquery/jquery.js"></script>
<meta property="qc:admins" content="51720634412164111776375" />

</head>
<body>

<div id="toolbar">
	<div class="toolbar juan_content">

		<ul class="juan_login">
		 <?php if(!empty($visitor)): ?><li><a href="<?php echo U('user/index');?>"><b><?php echo ($visitor["username"]); ?></b></a> <?php echo L('welcome');?>,</li><li><a href="<?php echo U('score/index');?>" class="set"><?php echo L('my_gift');?></a></li><li><a href="<?php echo U('user/logout');?>"><?php echo L('logout');?></a></li>
		 <?php else: ?>
		 <li><?php echo L('please');?><a href="<?php echo U('user/login');?>" id="jky_top_login"><b><?php echo L('login');?></b></a></li><li><a href="<?php echo U('user/register');?>"><?php echo L('register');?></a></li><?php endif; ?>
		</ul>
		<ul class="juan_menu">
			<?php $tag_nav_class = new navTag;$data = $tag_nav_class->lists(array('type'=>'lists','style'=>'top','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
				<a href="<?php echo ($val["link"]); ?>" <?php if($val["target"] == 1): ?>target="_blank"<?php endif; ?>><?php echo ($val["name"]); ?></a>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
			<li class="barmenu collect">
				<div class="menu-hd collect_to">
					<a href="javascript:;">收藏<?php echo C('ftx_site_name');?></a><b></b>
				</div>
				<div class="menu-client collect_client">
					<dl>
						<dd>
							<div class="add_col">
								<a href="javascript:;"><i></i>添加到收藏夹</a> <span>或者(Ctrl+D)</span>
							</div>
						</dd>
						<dd>
							<div class="add_desktop">
								<a target="_blank" href="<?php echo U('index/shortcut');?>"><i></i>桌面快捷方式</a>
							</div>
						</dd>
						<dd><div class="add_qq"><a href="javascript:;"><i></i>添加到QQ书签</a></div></dd>
					</dl>
				</div>
			</li>
			<li class="barmenu share">
				<div class="menu-hd share_to">
					<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
					<span class="bds_more">分享到</span><b></b>
					</div>
					<script type="text/javascript" id="bdshare_js" data="type=tools&amp;mini=1&amp;uid=662237" ></script>
					<script type="text/javascript" id="bdshell_js"></script>
					<script type="text/javascript">
					document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
					</script>
				</div>
			</li>
		</ul>
	</div>
</div>


<div class="header">
	<div class="header_in">
		<div class="header_top">
			<div class="logo"><h1><a title="<?php echo C('ftx_site_name');?>" href="__ROOT__"><img src="__STATIC__/css/ftxia/image/logo.png"></a></h1></div>
			<div class="search">
				<form method="get" action="__ROOT__/index.php" name="searchform" id="searchform">
				<input type="hidden" name="m" value="index">
				<input type="hidden" name="a" value="so">
				<input type="text" class="text"  value="输入您想要的9.9宝贝" def-val="输入您想要的9.9宝贝" id="key" name="k"/>
				<input type="submit" class="button" value="搜 索" />
				</form>
			</div>
		</div>
	</div>
</div>
<div class="header_bt">
	<div class="main">
		<div class="main_in">
			<ul class="navigation">
				<li class="entrance"><a href="<?php echo C('ftx_kefu_html');?>" target="_blank">在线客服</a></li>
				<li class="entrance"><a class="minor hezuo" href="<?php echo U('goods/goods_add');?>" >商家合作</a></li>
				<li class="entrance"><a class="minor chaxun" href="javascript:" >报名查询</a></li>
				<li <?php if($nav_curr == 'index'): ?>class="current"<?php endif; ?>><a href="__ROOT__/index.htm"><?php echo L('index_page');?></a></li>
				<?php $tag_nav_class = new navTag;$data = $tag_nav_class->lists(array('type'=>'lists','style'=>'main','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li class="split <?php if($nav_curr == $val['alias']): ?>current<?php endif; ?>"><a href="<?php echo ($val["link"]); ?>" <?php if($val["target"] == 1): ?>target="_blank"<?php endif; ?>><?php echo ($val["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
</div>
 
<div class="wrapper">
<div class="tips_goods" style="display: none; "><a class="iknow" href="javascript:;"></a></div>
	<div class="content">
		<div class="white_dh">
			<div class="daohang">
				<div class="h_center">
					<div class="jiu_hd">
						<div class="jiu_dao">
							<h3>分类：</h3>
							<ul id="nav">
								<li <?php if(empty($cid)): ?>class="selected"<?php endif; ?>><a href="<?php echo U('index/index');?>">全部</a></li>
								<?php if(is_array($cate_list['p'])): $i = 0; $__LIST__ = $cate_list['p'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$bcate): $mod = ($i % 2 );++$i;?><li <?php if($cid == $bcate['id']): ?>class="selected"<?php endif; ?>><a href="<?php echo U('index/cate', array('cid'=>$bcate['id']));?>"><?php echo ($bcate["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
							</ul>
						</div>
					</div>
					<div class="jiu_show">
						<div class="type_show"><span>筛选：</span></div>
						<div class="type_detail">共<font color="#fa6400" style="font-weight:bold;"> <?php echo ($total_item); ?> </font>个宝贝<?php if(!empty($today_item)): ?>，今日上新<span ><font color="#fa6400" style="font-weight:bold;"> <?php echo ($today_item); ?> </font><em class="new_em"></em></span><span class="textspan">个</span><?php endif; ?></div>
						
						<div class="type_page"><?php echo ($page_pre_next); ?></div>
						<div class="old_see" id="orderid">
								<a class="old_see_a" href="javascript:;">
								<span>最新</span></a>
								<div class="zhuangtai">
									<ul>
										<li class="last"><a href="<?php echo U('index/index',array('sort'=>'new','status'=>$index_info['status'],'p'=>$index_info['p']));?>">最新</a></li>
										<li class="last " ><a href="<?php echo U('index/index',array('sort'=>'price','status'=>$index_info['status'],'p'=>$index_info['p']));?>">折扣</a></li>
									</ul>
								</div>
						</div>
						<div class="old_see" id="stateid"><a class="old_see_a" href="javascript:;"><span>状态</span></a>
								<div class="zhuangtai">
									<ul>
										<li class="last"><a href="<?php echo U('index/index',array('sort'=>$index_info['sort'],'status'=>'all','p'=>$index_info['p']));?>">全部</a></li>
										<li ><a href="<?php echo U('index/index',array('sort'=>$index_info['sort'],'status'=>'underway','p'=>$index_info['p']));?>">进行中</a></li>
										<li ><a href="<?php echo U('index/index',array('sort'=>$index_info['sort'],'status'=>'sellout','p'=>$index_info['p']));?>">抢光了</a></li>
									</ul>
								</div>
						</div>

					</div>
				</div>
				<a href="javascript:;" class="filter-fold" id="fold"></a>
				<div class="bar_line"></div>
			</div>
		</div>
		<?php if(!empty($k)): ?><div class="zhe_result"><h3>搜索宝贝：<span class="red"><?php echo ($k); ?></span></h3></div><?php endif; ?>
		
 <?php if(isset($items_list)): ?><div class="list fl">
		<ul>
		<?php if(is_array($items_list)): $i = 0; $__LIST__ = $items_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?><li class="buy">
				<p><?php if($item["shop_type"] == 'C' ): ?><i class="tao_n" title="淘宝网"></i><?php endif; if($item["shop_type"] == 'B' ): ?><i class="tao_t" title="天猫商城"></i><?php endif; ?><a href="<?php echo U('item/index',array('id'=>$item['id']));?>" target="_blank" data-item="<<?php echo ($item["id"]); ?>>"><?php echo ($item["title"]); ?></a></p>
				<div class="buy_cen">
					<a href="<?php echo U('item/index',array('id'=>$item['id']));?>" target="_blank"  data-item="<?php echo ($item["id"]); ?>"><img  alt="<?php echo ($item["title"]); ?>" src="<?php echo ($item['pic_url']); ?>" /></a>
					<div class="buy_state">
						<span class="begin_time">开始：<?php echo (date("m月d日H时i分",$item["coupon_start_time"])); ?></del></span>
						<span class="buy_ed"><strong><?php echo ($item["zk"]); ?></strong>折</span>
					</div>
					
				</div>
				<a href="<?php echo U('item/index',array('id'=>$item['id']));?>" class="buy_bt <?php echo ($item["class"]); ?>"  target="_blank"  data-item="<?php echo ($item["id"]); ?>"><span class="one">￥</span><span class="two"><?php echo ($item["coupon_price"]); ?></span><span class="one"></span><span class="three">￥<?php echo ($item["price"]); ?></span></a>
				<span class="li_bg"></span>
		   </li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
		</div><?php endif; ?>



<div class="jiu_right fr">
		<div class="per_logo">
	<?php if(!empty($visitor)): ?><div class="per_info"><div class="per_icon"><a href="<?php echo U('user/index');?>"><img src="<?php echo avatar($visitor['id'], 48);?>"></a></div><div class="per_detail"><p class="per_user"><a href="<?php echo U('user/index');?>" class="per_name"><?php echo ($visitor["username"]); ?></a></p><p class="all_juandou"><?php echo L('exchange');?>：<span class="user_score"><?php echo ($visitor["score"]); ?></span>个</p><p class="all_juandou"> </p></div></div>

		<div class="juan_btn"><a class="signIn_btn" href="javascript:;"><?php echo L('sign_out');?></a><a class="visit_btn" target="_blank" href="<?php echo U('union/index');?>"><?php echo L('union_exchange');?></a></div>
	<?php else: ?>
		<div class="juan_logged" data-item="44Oh5ouW54OC6Z6L4oiaIA==">
			<ul>
			<li class="register"><a href="<?php echo U('user/register');?>"></a></li>
			<li class="logo_type">
				<dl>
					<dt>推荐登录方式</dt>
					 <?php if(is_array($oauth_list)): $i = 0; $__LIST__ = $oauth_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><dd><a href="<?php echo U('oauth/index', array('mod'=>$val['code']));?>" class="icon_<?php echo ($val['code']); ?>" title="<?php echo ($val["name"]); ?>"><?php echo ($val["name"]); ?></a></dd><?php endforeach; endif; else: echo "" ;endif; ?>
				</dl>
			</li>
			</ul>
		</div>
		<div class="juan_btn">
			<a href="javascript:;" target="_blank" class="signIn_btn"><?php echo L('sign_out');?></a>
			<a href="<?php echo U('union/index');?>" target="_blank" class="visit_btn"><?php echo L('union_exchange');?></a>
		</div><?php endif; ?>
	</div>

	<div class="exchange_info">
		<h3><span>0元兑换</span><a href="<?php echo U('gift/index');?>" class="more" target="_blank">更多&gt;&gt;</a></h3>
		<?php $tag_gift_class = new giftTag;$data = $tag_gift_class->show(array('type'=>'show','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><div class="goods_info">
			<div class="goods_img"><a href="<?php echo U('gift/detail', array('id'=>$val['id']));?>" target="_blank"><img src="<?php echo attach($val['img'], 'score_item');?>" width="54px" height="54px"></a></div>
			<div class="goods_detail">
			<p class="goods_title"><a href="<?php echo U('gift/detail', array('id'=>$val['id']));?>" target="_blank" title="<?php echo ($val["title"]); ?>"><?php echo ($val["title"]); ?></a></p>
			<p class="goods_price">折扣价：<?php echo ($val["coupon_price"]); ?> 元</p>
			<p class="exchange_price">兑换：<b><?php echo ($val["score"]); ?></b>金币</p>
			</div>
		</div><?php endforeach; endif; else: echo "" ;endif; ?>

	</div>
				
				
	<div class="exchange_info theysays">
		<h3><span>TA们说</span><a href="<?php echo U('comment/index');?>" class="more" target="_blank">更多&gt;&gt;</a></h3>
		<div class="says_detail">
		<?php if(is_array($comment_list)): $i = 0; $__LIST__ = $comment_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><div class="goods_info ">
				<p>
					<span class="says_name"><?php echo ($val["uname"]); ?>：</span>
					<a href="<?php echo U('item/index',array('id'=>$val['item_id']));?>" target="_blank" class="says_content"><?php echo ($val["info"]); ?></a>
					<span class="says_time"><?php echo (frienddate($val["add_time"])); ?></span>
				</p>
			</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>

	<div class="clr"></div>

	<div class="exchange_info artlist">
		<h3><span>卖家心得</span><a href="<?php echo U('article/index');?>" class="more" target="_blank">更多&gt;&gt;</a></h3>
		<ul class="list">
		<?php $tag_article_class = new articleTag;$data = $tag_article_class->lists(array('type'=>'lists','cateid'=>'1','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
					<a href="<?php echo U('article/read',array('id'=>$val['id']));?>" target="_blank" class="says_content" title="<?php echo ($val["title"]); ?>" ><?php echo ($val["title"]); ?></a>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</div>
				

</div>


		<div class="clr"></div>

		<div class="page"><div class="pageNav"><?php echo ($page); ?></div></div>



		<div class="jiu_shi">
			<div class="title">
				<span>女装 - 明日预告</span><a class="kanmore" href="<?php echo U('index/cate',array('cid'=>1));?>"><b class="txt">更多女装</b><em></em></a>
			</div>
			<div class="line_top"></div>
			<div class="line_bottom"></div>
			<ul class="shijiu_list">	
				<?php $tag_item_class = new itemTag;$data = $tag_item_class->lists(array('type'=>'lists','cid'=>'1','min_price'=>'19','max_price'=>'29.8','status'=>'2','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 6 );++$i;?><li <?php if(($mod) == "0"): ?>style="margin-left:0px;"<?php endif; ?> >
					<a class="pic" href="<?php echo U('item/index',array('id'=>$item['id']));?>" target="_blank">
						<img src="<?php echo ($item['pic_url']); ?>"  style="display: inline; "></a>
					<p class="title_name"><a href="<?php echo U('item/index',array('id'=>$item['id']));?>" target="_blank"><?php echo ($item["title"]); ?> 原价<?php echo ($item["price"]); ?>元 促销价<?php echo ($item["coupon_price"]); ?>元</a></p>
					<p class="detail"><span class="price">￥<?php echo ($item["coupon_price"]); ?></span><a href="<?php echo U('item/index',array('id'=>$item['id']));?>" target="_blank" class="go_buy">去抢购&gt;&gt;</a></p>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
	</div>




	<div class="jiu_shi">
			<div class="title">
				<span>男装 - 明日预告</span><a class="kanmore" href="<?php echo U('index/cate',array('cid'=>2));?>"><b class="txt">更多男装</b><em></em></a>
			</div>
			<div class="line_top"></div>
			<div class="line_bottom"></div>
			<ul class="shijiu_list">	
				<?php $tag_item_class = new itemTag;$data = $tag_item_class->lists(array('type'=>'lists','cid'=>'2','min_price'=>'20','max_price'=>'30','status'=>'2','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 6 );++$i;?><li <?php if(($mod) == "0"): ?>style="margin-left:0px;"<?php endif; ?> >
					<a class="pic" href="<?php echo U('item/index',array('id'=>$item['id']));?>" target="_blank">
						<img src="<?php echo ($item['pic_url']); ?>"  style="display: inline; "></a>
					<p class="title_name"><a href="<?php echo U('item/index',array('id'=>$item['id']));?>" target="_blank"><?php echo ($item["title"]); ?> 原价<?php echo ($item["price"]); ?>元 促销价<?php echo ($item["coupon_price"]); ?>元</a></p>
					<p class="detail"><span class="price">￥<?php echo ($item["coupon_price"]); ?></span><a href="<?php echo U('item/index',array('id'=>$item['id']));?>" target="_blank" class="go_buy">去抢购&gt;&gt;</a></p>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
	</div>
	


</div>



	<!--Link Start-->
	<div class="link">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:#e6e6e6 solid 1px;">
			<tbody>
				<tr>
				<td valign="top">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tbody>
							<tr>
								<td width="90" height="30" align="center"><div class="STYLE3" style="font-size:14px;font-weight:bold; margin-top:4px;">友情链接</div></td>
								<td align="left" style="color:#555"><div style="font-size:12px;margin-top:6px;">(申请友情链接请联系QQ：<?php echo C('ftx_qq');?>)</div></td>
							</tr>
						</tbody>
					</table>
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
						<tbody>
							<tr>
								<td height="2" bgcolor="#CF4429"></td>
							</tr>
						</tbody>
					</table>
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
						<tbody>
							<tr>
								<td align="left" class="td3" style="padding:8px 8px 4px 10px; line-height:20px;">
								<?php $tag_link_class = new linkTag;$data = $tag_link_class->lists(array('type'=>'lists','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a href="<?php echo ($val["url"]); ?>" target="_blank"><?php echo ($val["name"]); ?></a>&nbsp;&nbsp;<?php endforeach; endif; else: echo "" ;endif; ?>
								</td>
							</tr>
						</tbody>
					</table>
				</td>
				</tr>
			</tbody>
		</table>
		<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
			<tbody>
				<tr>
					<td height="6"></td>
				</tr>
			</tbody>
		</table>
	</div>
	<!--Link End-->






</div>
<div class="footer">
	<div class="footer_in">
		<?php echo R('advert/index', array(1), 'Widget');?>
		<?php echo R('advert/index', array(2), 'Widget');?>
		<a href="http://www.miaoshanet.com/"><img src="__STATIC__/css/ftxia/image/foot_89.gif" style=" float:left; margin:30px 40px 0 50px;" /></a>
		<?php echo R('advert/index', array(3), 'Widget');?>
		<?php echo R('advert/index', array(4), 'Widget');?>
	</div>
	<p class="f_miibeian">Copyright @ 2010-2013 <?php echo C('ftx_site_url');?> all Rights Reserved <a href="<?php echo C('ftx_site_url');?>" target="_blank"><?php echo C('ftx_site_name');?></a> (<a href="http://www.miibeian.gov.cn" class="tdu clr6" target="_blank"><?php echo C('ftx_site_icp');?></a>) <?php echo C('ftx_statistics_code');?>  </p> 
</div>
<div style="" id="goTopBtn"><a class="b_img" title="回到顶部"></a></div>
<script>
var FTXIAER = {
    root: "__ROOT__",
    uid: "<?php echo $visitor['id'];?>", 
	chaxunurl: "<?php echo U('ajax/check_item');?>",
    url: {}
};
var lang = {};
<?php $_result=L('js_lang');if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>lang.<?php echo ($key); ?> = "<?php echo ($val); ?>";<?php endforeach; endif; else: echo "" ;endif; ?>
</script>
<?php $tag_load_class = new loadTag;$data = $tag_load_class->js(array('type'=>'js','href'=>'__STATIC__/js/jquery/plugins/jquery.tools.min.js,__STATIC__/js/jquery/plugins/jquery.masonry.js,__STATIC__/js/jquery/plugins/formvalidator.js,__STATIC__/js/fileuploader.js,__STATIC__/js/ftxia.js,__STATIC__/js/front.js,__STATIC__/js/dialog.js,__STATIC__/js/item.js,__STATIC__/js/user.js,__STATIC__/js/comm.js','cache'=>'0','return'=>'data',));?>

<!-- 淘点金 BEGIN -->
<script type="text/javascript">
(function(win,doc){
var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0];
if (!win.alimamatk_show) {
s.charset = "gbk";
s.async = true;
s.src = "http://a.alimama.cn/tkapi.js";
h.insertBefore(s, h.firstChild);
}
var o = {
pid: "<?php echo C('ftx_header_html');?>",
appkey: "",
unid: ""
}
win.alimamatk_onload = win.alimamatk_onload || [];
win.alimamatk_onload.push(o);
})(window,document);
</script>
<!-- 淘点金 END -->

</body>
</html>