<!--#include file="include/conn.asp"-->
<!--#include file="menu.asp"-->
<!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 http-equiv="X-UA-Compatible" content="IE=7" />
<!---通用配置--->
<title>团购秒杀_<%=sWeb("WebTitle")%>_<%=sWeb("WebUrl")%>_Powered by www.gaozhen.name QQ_47329193</title>
<meta name="keywords" content="<%=sWeb("WebKeyWord")%>" />
<meta name="description" content="<%=sWeb("WebDescription")%>" />
<meta name="author" content="<%=sWeb("WebAuthor")%>" />
<meta name="copyright" content="<%=sWeb("WebCopyright")%>" />
<meta content="all" name="robots" />
<link rel="shortcut icon" href="/include/favicon/favicon.ico" />
<link rel="icon" href="/include/favicon/favicon.gif" type="image/gif" >
<link type="text/css" href="/include/css/global.css" rel="stylesheet" />
<script type="text/javascript" src="/include/Js/config.js"></script>
<script language="JavaScript" type="text/javascript">
function GetRTime(sTime,divid){
var self=this;
window.setTimeout(function(){self.GetRTime(sTime,divid);}, 100);
var EndTime= new Date(sTime); 
var NowTime = new Date();
var nMS =EndTime.getTime() - NowTime.getTime();
var nD=Math.floor(nMS/(1000 * 60 * 60 * 24));
var nH=Math.floor(nMS/(1000*60*60)) % 24;
var nM=Math.floor(nMS/(1000*60)) % 60;
var nS=Math.floor(nMS/1000) % 60;
var nMS=Math.floor(nMS/100) % 10;
if (nM>0)
{
document.getElementById(divid).innerHTML=nD+'天'+nH+'时'+nM+'分'+nS+'秒'+nMS+'毫秒';
}
else
document.getElementById(divid).innerHTML='团购成功,可以继续购买.';
}
</script>  
<!---网站配置--->
<link type="text/css" href="/css/style.css" rel="stylesheet" />
</head>
<body>
<%Call TopMenu()%>
<%Call HeadMenu()%>
<div id="maindiv">
<!---主体部分--->
<div id="lstpro">
	<div id="lstleft">

	<!--#include file="Leftpro.asp"-->
	</div>
	<div id="lstrighttuan">
	<div id="rrfff">
	<div class="sgohome">您现在的位置：首页 >> 团购秒杀</div>
	<div class="stitle"><h1>团购秒杀</h1></div>
	<div class="scont">
	<ul>
		<%
		If TT="" Then TT = 0 
		Set oRs =server.createobject("adodb.recordset")
		If TT=0 Then
		sSql = "SELECT Id,PBId,PTuanCont,PTuanPic,PSmoney,PTuanMoney,PTuanATime,PTuanEtime FROM [LstPro] WHERE PTuan=1"
		Else
		sSql = "SELECT Id,PBId,PTuanCont,PTuanPic,PSmoney,PTuanMoney,PTuanATime,PTuanEtime FROM [LstPro] WHERE PTuan=1 and PBId="&TT&""
		End If
		sSql = sSql & " ORDER BY Id desc"
		oRs.open sSql,oconn,1,1
		if oRs.bof and oRs.eof then 
		else
		Call Showpage("1",4)
		for i=1 to mypage%>
		<li><div class="ttitle"><B class="fred">#<%=i%></B>:<%=oRs("PTuanCont")%></div>
		<div class="tbiaojia">
		<a href="/TuanShoping.asp?ProId=<%=oRs("Id")%>"><div class="hand tssss"><%=oRs("PTuanMoney")%><span class="f14">.00</span></div></a>
		<div class="tssss2">开始:<%=FormatTime(oRs("PTuanATime"),3)%> 结束:<%=FormatTime(oRs("PTuanEtime"),3)%></div>
		<div class="tssss2"><del>原价:<B>￥<%=oRs("PSmoney")%>.00</B></del> 节省:<B>￥<%=oRs("PSmoney")- oRs("PTuanMoney")%>.00</B></div>
		<div class="tssss3" id="t_<%=oRs("Id")%>"><script>GetRTime('<%=FormatTime(oRs("PTuanEtime"),10)%>','t_<%=oRs("Id")%>');</script></div>
		<div class="tssss4"><B class="f30 fblue"><%=TUANNUM(oRs("Id"))%></B>人参加购买</div>
		<div class="tssss2">活动组织：本站</div>
		
		</div>
		<div class="timg"><img width=712 height=300 src="<%=oRs("PTuanPic")%>"></div></li>
		<%
		oRs.MoveNext
		Next
		End If
		%>
	</ul>
	</div>
	<div class="sspage"><%Call Showpage("?TT="&TT&"",4)%></div>
	</div>
	</div>
</div>
<!---版权部分--->
<div class="clear"></div>
<%Call HelpMenu()%>
<%Call ShowEnd()%>
</div>
</body>
</html>

