<?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" />

<link rel="stylesheet" type="text/css" href="__STATIC__/css/ftxia/item.css" />
</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="mains">
	<div class="piece jiu_goods">
		<div class="piece_box">
			<div class="jiu_bd jiu_top fl">
				<div class="item_containt">
					<div class="jiu_goodsinfo">
						
						<a name="goods"></a>
						<?php if($item["class"] == 'tag_wait' ): ?><h3><a href="javascript:void()"   title="<?php echo ($item["title"]); ?>"><?php echo ($item["title"]); ?></a></h3>
						<?php else: ?>
							<h3><a data-type="0" data-itemid="<?php echo ($item["num_iid"]); ?>" data-tmplid="4" data-rd="1" href="javascript:void()" rel='nofollow' target="_blank" title="<?php echo ($item["title"]); ?>"><?php echo ($item["title"]); ?></a></h3><?php endif; ?>
<div class="goods_con" znid="101z3l">
	<div class="pic">
	<?php if($item["class"] == 'tag_wait' ): ?><a href="javascript:void()"  >
	<?php else: ?>
		<a data-type="0" data-itemid="<?php echo ($item["num_iid"]); ?>" data-tmplid="4" data-rd="1" href="javascript:void()" rel='nofollow' target="_blank" title="<?php echo ($item["title"]); ?>"><?php endif; ?>
	<img src="<?php echo ($item['pic_url']); ?>" width="310" width="310">
	</a>
	</div>
	<div class="goods_detail">
		<div class="price_tag  <?php echo ($item["class"]); ?>">
			<i>￥</i><?php echo ($item["coupon_price"]); ?><span class="ori_price">￥<?php echo ($item["price"]); ?></span>
			<?php if($item["class"] == 'tag_wait' ): ?><a href="javascript:void()" ></a>
			<?php else: ?>
				<a data-type="0" data-itemid="<?php echo ($item["num_iid"]); ?>" data-tmplid="4" data-rd="1" href="javascript:void()" rel='nofollow' target="_blank" title="<?php echo ($item["title"]); ?>"></a><?php endif; ?>
			
		</div>

		<?php if($item["class"] == 'tag_wait' ): ?><div class="item-like"><strong>即将开团</strong>，敬请期待！</div>
			<dl class="item-last-time">
					<dt>将于<?php echo (date("m月d日H点",$item["coupon_start_time"])); ?>开团，离开团还剩：</dt>
					<dd class="timer" id="end_date_0" data-time="<?php echo ($item["coupon_start_time"]); ?>"></dd>
			</dl>
		<?php else: ?>
			<?php if($item["class"] == 'tag_end' ): ?><dl class="item-last-time">
						<dt>团购已经结束！</dt>
						<dd class="timer" id="end_date_0" data-time="<?php echo ($item["coupon_start_time"]); ?>"></dd>
				</dl>
			<?php else: ?>
			<div class="item-like">已有 <strong><?php echo ($item["volume"]); ?></strong> 人在抢购该商品</div>
				<dl class="item-last-time">
						<dt>离抢购结束还剩：</dt>
						<dd class="timer" id="end_date_0" data-time="<?php echo ($item["coupon_end_time"]); ?>"></dd>
				</dl><?php endif; endif; ?>

		


		<div class="shareto">
			<div class="sharebaidu">
				<!-- Baidu Button BEGIN -->
				<div class="bdshare_t bds_tools get-codes-bdshare" id="bdshare">
					<a class="bds_qzone" title="分享到QQ空间" href="#"></a>
					<a class="bds_tsina" title="分享到新浪微博" href="#"></a>
					<a class="bds_tqq" title="分享到腾讯微博" href="#"></a>
					<a class="bds_renren" title="分享到人人网" href="#"></a>
					<a class="bds_t163" title="分享到网易微博" href="#"></a>
					<span class="bds_more">更多</span>
				</div>
				<script data="type=tools&amp;uid=0" id="bdshare_js" type="text/javascript" src="http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=375944"></script>
				<script id="bdshell_js" type="text/javascript" src="http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=375944"></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>
				<!-- Baidu Button END -->
				<script src="http://bdimg.share.baidu.com/static/js/logger.js?cdnversion=375944"></script>
			</div>
			<span class="share_txt">分享到：</span>
		</div>
	</div>
</div>
					</div>
					<div class="jiu_comment">
						
						<h4><a name="comm"></a>宝贝评价</h4>
<div class="note_comment_warp t_f">
	<div class="note_comment">
		<ul class="c_l cf_show" id="note_comment_list">
		<?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;?><li uid="<?php echo ($val["id"]); ?>" class="c_f">
			<span><img class="J_card avt fl r3" src="<?php echo avatar($val['uid'], '32');?>" data-uid="<?php echo ($val["uid"]); ?>" alt="<?php echo ($val["uname"]); ?>"/></span>
			<p class="sms"><span class="n icard J_card n" data-uid="<?php echo ($val["uid"]); ?>"><?php echo ($val["uname"]); ?></span></p>
			<p class="sms"><?php echo ($val["info"]); ?></p>
			<div><span><?php echo (frienddate($val["add_time"])); ?></span></div>
		</li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
		 <div id="J_cmt_page" class="page"><?php echo ($page_bar); ?></div>
	</div>
		<div class="pub_area" id="pub_area" data-id="<?php echo ($item["id"]); ?>" name="pub_area">
		<div class="pub_area_bd">
			<textarea id="pub_content" class="pub_txt" def-val="你也可以顺便说点什么 O(∩_∩)O">你也可以顺便说点什么 O(∩_∩)O</textarea>
		</div>
		<div class="pub_area_ft">
			<a href="javascript:;" class="pub_btn" id="pub_submit">确定</a>
			<div class="pub_out fr">				
			</div>
		</div>
		
	</div>
</div>
					</div>
						<div class="jiu_shi jiu_item">
							
							<h3>您还会喜欢...</h3>
							<ul class="shijiu_list">
								<?php $tag_item_class = new itemTag;$data = $tag_item_class->orlike(array('type'=>'orlike','cid'=>$item['cate_id'],'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 <?php if(($key) == "0"): ?>style="margin-left:0px;"<?php endif; ?>>
										<a target="_blank" href="<?php echo U('item/index',array('id'=>$val['id']));?>" class="pic">
										<img src="<?php echo ($val['pic_url']); ?>" style="display: inline;"></a>
										<p class="title_name"><a target="_blank" href="<?php echo U('item/index',array('id'=>$val['id']));?>"><?php echo ($val["titme"]); ?></a></p>
										<p class="detail"><span class="price">￥<?php echo ($val["coupon_price"]); ?></span><a class="go_action" target="_blank" href="<?php echo U('item/index',array('id'=>$val['id']));?>">去抢购&gt;&gt;</a></p>
									</li><?php endforeach; endif; else: echo "" ;endif; ?>
							</ul>
						</div>
				</div>
			</div>
			<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 worth_buy">
					<h3><span>值得买</span><a target="_blank" class="more" href="<?php echo U('index/index');?>">更多&gt;&gt;</a></h3>
					<div class="worth_buy_goods">
						<ul>
							<?php $tag_item_class = new itemTag;$data = $tag_item_class->zhi(array('type'=>'zhi','cid'=>$item['cate_id'],'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 <?php if(($mod) == "1"): ?>class="no"<?php endif; ?>>
										<div class="goodsimg">
											<a href="<?php echo U('item/index',array('id'=>$val['id']));?>" target="_blank">
											<img src="<?php echo ($val['pic_url']); ?>" style="display: inline; "><span>￥<?php echo ($val["coupon_price"]); ?></span></a>
										</div>
									</li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</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 -->

<script src="__STATIC__/js/comment.js"></script>
<script type="text/javascript">
function show_date_time(end,style,id){
    today=new Date(); 
	timeold=((end)*1000-today.getTime()); 
	if (timeold < 0) {
        return;
    }
    setTimeout("show_date_time("+end+','+style+','+id+")", 100); 
    sectimeold=timeold/1000;
	secondsold=Math.floor(sectimeold); 
	msPerDay=24*60*60*1000;
	e_daysold=timeold/msPerDay;
	daysold=Math.floor(e_daysold); 
	e_hrsold=(e_daysold-daysold)*24;
	hrsold=Math.floor(e_hrsold); 
	e_minsold=(e_hrsold-hrsold)*60;
	minsold=Math.floor((e_hrsold-hrsold)*60); 
	e_seconds = (e_minsold-minsold)*60;
	seconds=Math.floor((e_minsold-minsold)*60); 
	ms = e_seconds-seconds;
	ms = new String(ms);
	ms1 = ms.substr(2,1);
	ms2 = ms.substr(2,2);
	hrsold1=daysold*24+hrsold;
	if(style == 1){
		$("#end_date_"+id).html('<em>'+(hrsold1<10?'0'+hrsold1:hrsold1)+"</em>小时<em>"+(minsold<10?'0'+minsold:minsold)+"</em>分<em>"+(seconds<10?'0'+seconds:seconds)+"</em>秒");
	}else if(style == 2){
		$("#end_date_"+id).html('<em>'+daysold+"</em>天<em>"+(hrsold<10?'0'+hrsold:hrsold)+"</em>时<em>"+(minsold<10?'0'+minsold:minsold)+"</em>分<em>"+(seconds<10?'0'+seconds:seconds)+"</em>秒");
	}else if(style == 3){
		$("#end_date_"+id).html("<em>"+(hrsold1<10?'0'+hrsold1:hrsold1)+"</em>小时<em>"+(minsold<10?'0'+minsold:minsold)+"</em>分<em>"+(seconds<10?'0'+seconds:seconds)+"."+ms1+"</em>秒");
	}else{
		$("#end_date_"+id).html(daysold+"天"+(hrsold<10?'0'+hrsold:hrsold)+"小 时"+(minsold<10?'0'+minsold:minsold)+"分"+(seconds<10?'0'+seconds:seconds)+"秒."+ms2);
	}
}
$(".timer").each(function() {
        var reg = /^[0-9]+$/;
        var timer = $(this).attr('data-time');
        if (reg.test(timer)) {
            show_date_time(timer, 3, 0);
        }
	});
</script>
</body>
</html>