<!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=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="keywords" content="{{$head[keywords]}}" />
<meta name="description" content="{{$head[description]}}" />
<base href="{{$DIRCMS['site_url']}}" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="template/{{$DIRCMS['tpl_name']}}/css/share.css" type="text/css" rel="stylesheet" />
<link href="template/{{$DIRCMS['tpl_name']}}/css/tg.css" type="text/css" rel="stylesheet" />
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="template/{{$DIRCMS['tpl_name']}}/images/site.js"></script>
<script language="javascript" type="text/javascript" src="template/{{$DIRCMS['tpl_name']}}/images/timeCountDown.js"></script>
<title>{{$head[title]}}</title>
</head>

<body>
	<!-- 头部开始 -->
	{{tlp head}}
	<!-- 头部结束 -->
	<!-- 正文开始 -->
	<div class="ads_960"><script language="javascript" src="{{$DIRCMS[site_url]}}ads.js.php?id=8"></script></div>
	<div class="position">{{$dir_postion}}</div>
	<div class="tg_top">
		<div class="tg_top_left">

			{{dir:content catid="$catid" posid="0" row="8" limit="0" page="$page" withthumb="1" orderby="id DESC" keyword="" ismore="1"}}
			<div class="tg_top_left_content">
				<div class="tg_top_title">
				<a href="{{mydc:url}}" title="{{mydc:title}}" target="_blank">{{mydc:title}}</a> <input type="button" onclick="window.open('{{$DIRCMS['site_url']}}{{mydc:url}}#bm');" class="yl_btn" value="立即报名" />
				</div>
				<div class="tg_top_pic">
					<div class="tg_top_pic_left">
						<div class="tg_top_pic_left_zk">
							<div class="tg_top_pic_left_zk_price">&yen;<span id="youhuijia{{$no}}">loading...</span></div>
							<div class="tg_top_pic_left_zk_zk">{{mydc:zhekou}}折</div>
						</div>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  <tr>
							<td>原价</td>
							<td>折扣</td>
							<td>节省</td>
						  </tr>
						  <tr>
							<th>&yen;<span id="yuanjia{{$no}}">{{mydc:yuanjia}}</span></th>
							<th><span id="zhekou{{$no}}">{{mydc:zhekou}}折</span></th>
							<th style="color:#ff6600">&yen;<span id="jiesheng{{$no}}">loading...</span></font></th>
						  </tr>
						</table>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  <tr>
							<td>距离本次团购结束还有：</td>
						  </tr>
						  <tr>
							<td><font class="djs" id="day{{$no}}">0</font>天<font class="djs" id="hour{{$no}}">00</font>小时<font class="djs" id="mini{{$no}}">00</font>分<font class="djs" id="sec{{$no}}">00</font> 秒</td>
						  </tr>
						</table>
						<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-bottom:0px">
						  <tr>
							<td><font class="renshu">{{getSign(mydc:id)}}</font> 人已购买</td>
						  </tr>
						  <tr>
							<td><font class="zt" id="status{{$no}}">团购继续中</font></td>
						  </tr>
						  <tr>
						  	<td>
<font class="hui">
报名时间：{{date('m月d日 H时i分',strtotime(mydc:kaishi))}}
<br />
截止时间：{{date('m月d日 H时i分',strtotime(mydc:jiezhi))}}
</font>
							</td>
						  </tr>
						</table>
					</div>
					<script language="javascript">
						var yuanjia=parseFloat($('#yuanjia{{$no}}').html());
						var zhekou=parseFloat($('#zhekou{{$no}}').html());
						var youhuijia=parseFloat(yuanjia-yuanjia*zhekou/100).toFixed(2);
						var jiesheng=parseFloat(yuanjia*zhekou/100).toFixed(2);
						var now=new Date();
						var timestr=add_zero(now.getYear()).toString()+add_zero(now.getMonth()+1).toString()+add_zero(now.getDate()).toString()+add_zero(now.getHours()).toString()+add_zero(now.getMinutes()).toString()+add_zero(now.getSeconds()).toString();
						//var
						
						$('#youhuijia{{$no}}').html(youhuijia);
						$('#jiesheng{{$no}}').html(jiesheng);
						var zxx = {
							$: function(id){
								return document.getElementById(id);    
							},
							futureDate: Date.UTC({{date('Y',strtotime(mydc:jiezhi))}}, {{date('m',(strtotime(mydc:jiezhi)-3600*24))}}, {{date('d',strtotime(mydc:jiezhi))}}, {{date('H',strtotime(mydc:jiezhi))}}),
							obj: function(){
								return {
									sec: zxx.$("sec{{$no}}"),
									mini: zxx.$("mini{{$no}}"),
									hour: zxx.$("hour{{$no}}"),
									day: zxx.$("day{{$no}}")
								}
							}
						};
						fnTimeCountDown(zxx.futureDate, zxx.obj());
						if(parseInt(timestr)>{{date('YmdHis',strtotime(mydc:jiezhi))}})
						{
							$('#status{{$no}}').html('<font color="#ff6600"><b>团购已过期</b></font>');
						}
					</script>
					<div class="tg_top_pic_right">
						<img src="{{mydc:thumb}}" />
						<div class="tg_top_pic_right_desc">						
						{{sub_string(mydc:description,220,'...')}}
						</div>
						<div class="tg_top_pic_right_share">
						分享到： 
						<script type="text/javascript" src="template/{{$DIRCMS['tpl_name']}}/images/share.js"></script>
						</div>
					</div>
				</div>
			</div>
			{{/dir:content}}
			<div class="category_page">{{$dir_page}}</div>
		</div>
		<div class="tg_top_right">
			<div class="tg_top_right_wrap" style="margin-top:0px">
				<Div class="tg_top_right_title">今日推荐团购</Div>
				{{dir:content catid="$catid" posid="5" row="1" limit="0" page="0" withthumb="1" orderby="id DESC" keyword=""}}
				<div class="tg_top_right_content">
					<a href="{{mydc:url}}" title="{{mydc:title}}" target="_blank"><img src="{{mydc:thumb}}" width="215" height="150" /></a>
					<br />
					<a href="{{mydc:url}}" title="{{mydc:title}}" target="_blank" class="tg_top_right_a_bt">参与这个团购</a>
				</div>
				{{/dir:content}}
			</div>
			<div class="tg_top_right_wrap">
				<Div class="tg_top_right_title">赞助商链接</Div>
				<div class="tg_top_right_content">
					<ul>
						<script type="text/javascript"><!--
google_ad_client = "pub-9442525253295629";
/* 200x200, 创建于 09-7-4 */
google_ad_slot = "9441498570";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>					</ul>
				</div>
			</div>
		</div>	
	</div>
	<!-- 正文结束 -->
	<!-- 底部开始 -->
	{{tlp footer}}
	<!-- 底部结束 -->
</body>
</html>