<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="showProduct.aspx.cs" Inherits="web.tuan.showProduct" %>

<!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=utf-8" />
<title><%=pron %> － <%=config.SiteTitle %></title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<meta name="description" content="<%=cont %>"/> 
<meta name="keywords" content="<%=keyw %>"/>

<link type="text/css" rel="stylesheet" href="image/cd.css" />

<script type="text/javascript" language="javascript"> var b=null;</script>
<script src="image/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="image/jd.js"></script>
<script type="text/javascript" language="javascript">
function xs()
{

 if(b==true)
 {
  document.getElementById("qq").style.display="none";
  b=false;
 }
 else
 
 {
  document.getElementById("qq").style.display="";
  b=true;
 }
}
</script>
<script language="javascript" type="text/javascript">
<!--

function Copy() 
 {

var otext = document.getElementById('Lblj').value; 
otext=otext.replace('&lt;','<');
otext=otext.replace('&gt;','>');
window.clipboardData.setData('text',otext); 
alert('复制成功!'); 

}

// -->
</script>
			 <script language="javascript"> 

              //jb函数会根据不同的浏览器初始化个xmlhttp对象 
              function jb() 
              { 
                 var A=null; 
               try 
               { 
                   A=new ActiveXObject("Msxml2.XMLHTTP"); 
                } 
                 catch(e) 
                 { 
                  try 
                   { 
                      A=new ActiveXObject("Microsoft.XMLHTTP"); 
                   } 
                       catch(oc) 
                      { 
                     A=null 
                   } 
              } 
           if ( !A && typeof XMLHttpRequest != "undefined" ) 
            { 
               A=new XMLHttpRequest() 
             } 
           return A 
              } 
              
              //下面Go函数是父列表框改变的时候调用，参数是选择的条目 
              function Go(pid) 
              { 
            
                 var weburl = "updateH.aspx?id="+pid; 
                 //初始化个xmlhttp对象 
                 var xmlhttp = jb(); 
                
                 xmlhttp.open("get",weburl,true); 
            
                 xmlhttp.onreadystatechange=function() 
                 { 
                   if(xmlhttp.readyState==4)//4代表成功返回数据 
                    { 
                       var result = xmlhttp.responseText;//得到服务器返回的数据 
                       var te;
                       if(result!="")//如果返回的数据不是空 
                       { 
                     
                         if(result!="0")
                         {
                             document.getElementById("rs").innerHTML=result;
                         }
                       } 
                    } 
                 } 
              
                 xmlhttp.send(null); 
              } 
               function Goo(id) 
              { 
               
               // var svalue = obj.value; 
                
                 var weburl = "zh.aspx?pid="+id; 
                 
                 var xmlhttp = jb(); 
            
                 xmlhttp.open("post",weburl,true); 
               
                 xmlhttp.send(null); 
              } 
		</script>

	
<script type="text/javascript" type="text/javascript">

var t
function timedCount()
 {

 Go(<%=base.Request["ProductID"].ToString() %>);
 t=setTimeout("timedCount()",<%=fz %>*60000)
 }
</script>
<script src="image/DD_belatedPNG.js" mce_src="image/DD_belatedPNG.js"></script>
<script type="text/javascript"> 
if(window.XMLHttpRequest){ //Mozilla, Safari, IE7 
    if(!window.ActiveXObject){ // Mozilla, Safari, 
        //alert('Mozilla, Safari'); 
    }else{ 
       // alert('IE7'); 
    } 
}else { 
    //alert('IE6'); 
      DD_belatedPNG.fix('img,.logo,.thiscity,.dealPrice,.dealPrice-min,.over,.isopen,.none,.share'); 
}


</script> 
</head>
<body onLoad="timedCount();">
<form id="Form1" method="post" name="form" runat="server">

<div class="header clearfix">
	<h1 class="lf"><a href="../default.html" target="_blank"><%=config.SiteLogo %></a></h1>
	<h2 id="desc"></h2>
	
	<div class="rss rf clearfix">
		<p>输入邮箱地址，订阅每日精品团购!</p>
	
			<div class="lf">
				<input type="text" id="email" datatype="email" require="true" value="" class="txt lf" name="email" />
		
				
                  <asp:Button ID="Bem" runat="server" class="but lf" OnClick="Bem_Click" />
				</div>
				<span class="lf"></span>
		
<!--<p class="clear">
<a href="#" rel="addrss" class="phonerss" onclick="javascript:return false;">» 短信订阅，免费！</a>  
<a href="#" rel="delrss" class="phonerss" onclick="javascript:return false;">» 取消手机订阅</a>
</p>-->
	</div>
</div>
	<div class="navWrap">
		<div class="wrap clearfix">
		<ul class="nav lf">
						<li class="on"><a href="index.aspx">首页</a></li>
					<li class="on"><a href="index.aspx?type=2">团购</a></li>
					<li class="on"><a href="index.aspx?type=4">限时抢购</a></li>
					
					<li class="on"><a href="odate.aspx">往期热卖</a></li>
					<li class="on"><a href="book.aspx">问题答疑</a></li>
					<li class="on"><a href="../HelpListInfo_1.html" target="_blank">帮助中心</a></li>
				</ul>
		<div class="member rf">
				  <%if (user.MemberID>0){%>
		 
			<span class="username lf">欢迎你,<%=user.Name%>&nbsp;&nbsp;|</span>
<div id="menulist">
	<a class="top" href="../MemberCenter.aspx" target="_blank">我的会员中心</a>
	<div class="ml-bottom">
	<div class="menu-t"></div>
	<div class="menu-c">
	<a href="../MytgOrders.aspx" target="_blank">我的团购订单</a>
<a href="../Mydjqrec.aspx" target="_blank">我的返利</a>
	<a href="../Mymemb.aspx" target="_blank"> 我推荐的会员</a>
	<a href="../MymembPay.aspx" target="_blank"> 我的提成</a>
	<a href="../Myget.aspx" target="_blank"> 账户余额</a>
	<a href="../IndividualInformation.aspx" target="_blank">账户设置</a>

	<a href="../Logout.aspx" target="_blank">退出</a>
	</div>
	<div class="menu-b"></div>
	</div>
</div>
<%}else{ %>
	<a href="login.aspx">登录</a> | <a href="reg.aspx">注册</a>
<%} %>
		</div>
		</div>
	</div>
	<div class="boxWrap m10 clearfix">
<div class="mainWrap lf">
<div class="sharebox clearfix" style="border:none;">
<div class="share rf">
<ul class="clearfix">
<li style="padding:0 10px 0 12px;">分享到:</li>
<li><a href="#" class="deal-share-im im" onclick="xs();">MSN/QQ</a></li>
<li><a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&amp;rurl='+escape(d.location.href)+'&amp;rtitle='+escape(d.title)+'&amp;rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网" class="kaixin">开心</a></li>
<li><a title="转贴到校内网" href="javascript:void((function(s,d,e){if(/xiaonei.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&amp;title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));" class="renren">人人</a></li>
<li><a title="推荐给豆瓣" href="javascript:var u='http://www.douban.com/recommend/?url='+location.href+'&amp;title='+encodeURIComponent(document.title);window.open(u,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330');void(0)" class="douban">豆瓣</a></li>
<li><a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi" class="sina">新浪微博</a></li>

<li><a href="link.aspx" class="fanli">邀请返利 <strong class="c1"><%=GetCurrency() %><%=config.Fl.ToString("0.00") %></strong> 元</a></li>
</ul>
<div id="qq" class="deal-share-im-b" style="display:none;">
<p><input type="text" class="txt" size="60" id="Lblj" value="<%=str22 %>/showProduct.aspx?ProductID=<%=base.Request["ProductID"].ToString() %>" onclick="this.focus();this.select();" style="height:14px;line-height:14px;color:#999;" /> <label><input id="Button1" type="button" value="复制代码" language="javascript" onclick="return Copy()" />
</label>
</div>
</div>
</div><div class="goodWrap todaybor clearfix">
<h2 class="goodTitle"><a href="showProduct.aspx?ProductID=<%=base.Request["ProductID"].ToString() %>"><span><%=strbt %>：</span>
<%=product.Name%>,<%=shortjs %>
</a>
</h2>
<div class="teamAbout lf">
 
	
	<div class="dealPrice">
	<strong><%=hj %></strong>
	<input type="hidden" name="number" id="number" value="1" />
	<input type="hidden" name="a" id="a" value="buy" />
	<input type="hidden" name="group_id" value="98" />
	<span id="an"></span>
	</div>

	<p class="marketPrice"><%=GetResourceString("MarketPrice") %>：<strong class="t1"><%=sj %></strong> 折扣：<strong class="c1"><%=qt %></strong> 折</p>
	<div class="timeWrap"><span class="wrap"><span class="time" id="leftTime_98">
	 <%if (product.Protype == "2" || product.Protype == "4")
    { %>
                                 <span id="timer" style="color:FF0000;font-size:12px;"></span>
                                  <script language="javascript" type="text/javascript"> 
            <!-- 
//document.write(""); 
function show_date_time(){ 
sj=window.setTimeout("show_date_time()", 1000); 
BirthDay=new Date("<%= Convert.ToDateTime(product.Enddate.ToString()).Month.ToString()%>/<%= Convert.ToDateTime(product.Enddate.ToString()).Day.ToString()%>/<%= Convert.ToDateTime(product.Enddate.ToString()).Year.ToString()%> <%= Convert.ToDateTime(product.Enddate.ToString()).Hour.ToString()%>:<%= Convert.ToDateTime(product.Enddate.ToString()).Minute.ToString()%>:00");//这个日期是可以修改的 
today=new Date(); 
timeold=(BirthDay.getTime()-today.getTime()); 
if(timeold>0)
{
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); 
seconds=Math.floor((e_minsold-minsold)*60); 
document.getElementById("timer").innerHTML="<%=GetResourceString("sysj")%>:<align=center><font color=ff0000>&nbsp;"+daysold+"&nbsp;天&nbsp;"+hrsold+"&nbsp;小时&nbsp;"+minsold+"&nbsp;分&nbsp;"+seconds+"&nbsp;秒&nbsp;"+"</font>" ; 
document.getElementById("an").innerHTML="<a href=\"buy.aspx?ProductID=<%=base.Request["ProductID"].ToString() %>\"><img id=\"group_butn\" src=\"image/buyIng.gif\" /></a>" ;
}
else
{
Goo(<%= product.ProductID.ToString() %>);
<% if (product.Protype == "2"){%>
document.getElementById("timer").innerHTML="<align=center>时间已到!该商品团购结束" ; 

document.getElementById("an").innerHTML="<img id=\"group_butn\" src=\"image/buyOver.gif\" />" ;
<%}if (product.Protype == "4"){ %>
document.getElementById("timer").innerHTML="<align=center>时间已到!该商品限时抢购结束" ; 


document.getElementById("an").innerHTML="<img id=\"group_butn\" src=\"image/buyOver.gif\" />" ;
<%} %>

clearTimeout(sj)
}
} 
show_date_time(); 
//--> 
                                                </script> 
                            
                              <%}
                                else
                                { %> 
                                <%if (this.product.Status == -1)
                                  { %>
                                <span id="Span1" style="color:FF0000;font-size:12px;">捆绑商品抢购完毕！</span>
                                 <script language="javascript" type="text/javascript"> 
                           
                                document.getElementById("an").innerHTML="<img id=\"group_butn\" src=\"image/buyOver.gif\" />" ;
                                 </script> 
                                  <%}
                                    else
                                    { %>
                                  <span id="Span2" style="color:FF0000;font-size:12px;">捆绑商品数量有限，抓紧抢购！</span>
                                 <script language="javascript" type="text/javascript"> 
                                   document.getElementById("an").innerHTML="<a href=\"buy.aspx?ProductID=<%=base.Request["ProductID"].ToString() %>\"><img id=\"group_butn\" src=\"image/buyIng.gif\" /></a>" ;
                                 </script> 
                                <%}
                              } %>
	</span></span></div>
	<p class="dealNum c1"><strong><span id="rs"><%=znum %></span>人已购买</strong></p>
	<div class="state" id="tpp">
	
	<%=tstr%>

		</div>
	<% if (product.Protype == "2")
    {%>	
	<p class="overtime" >最低团购人数：<%=rs%> 人</p>
	<%} %>
 
</div>		
<div class="team-pic rf">
<div class="slides">
<ul class="slide-pic">
<li><a href="showProduct.aspx?ProductID=<%=base.Request["ProductID"].ToString() %>"><img id="myimg"src='../upload/<%=zst%>' border="0" ></a></li>

</ul>

</div>

</div>
<div style="clear:both;width:700px;height;auto;padding:20px 10px 0 10px;font-size:14px;line-height:22px;">
 <%=qtt %><%=zsdjq %><%=zspp %>
<%=cfv %>
<p> <%=ljjj %></p>
</div>
<span class="cityLable"><img src="image/beijing.png" alt="" /></span>
</div>
<div class="content bor m10 clearfix">
<div class="desc lf" style="padding-top:10px;">


<h3>商品详情：</h3>
  <%=releimg %>
  <%=product.Description %>
  <%=spcs %>
  <%=bzqd %>
</div>

</div>
</div>
<div class="toolWrap rf">
<div class="ingTool mb10 bor">
<h3>正在进行中的其他<%=mc %></h3>
<ul>
<%=qtrm %>

</ul>
</div>
<div class="askTool mb10 bor">
<div class="t"><h3>销售答疑：</h3></div>
<ul>
<%=ly %>
</ul>
<p class="link"><a href="book.aspx" class="c1">查看全部</a> | <a href="book.aspx#ask" class="c1">我要提问</a></p>
</div>

<div class="phone400 mb10 bor"><img src="image/tool-hotPhone.gif" alt="" /></div><div class="mb10"><img src="image/tui.gif" alt="放心退" /></div>
<div class="mb10 bor"><img src="image/pf.jpg" alt="先行赔付" /></div>

<img src="image/fanli.gif" alt="邀请返利" />
<div class="sidemain mb10 bor">
<p>每邀请一位好友首次购买，您将获 <strong class="c1">¥<%=config.Fl.ToString("0.00") %></strong> 元返利<br /><a href="link.aspx">» 点击获取您的专用邀请链接</a></p>
</div>
</div>
</div>

<div class="footer">
<div class="wrap clearfix">Copyright © 2011 - 2112 <%=config.SiteUrl %> All Rights Reserved
<%=config.SiteName%> 版权所有</div>

</div>

</form>
      
</body>
</html>
