<%@ Control Language="c#" AutoEventWireup="True" Codebehind="TeamBuying.ascx.cs" Inherits="DreamerShop.TP1.TeamBuying" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftTwo" Src="LeftTwo.ascx" %>
<uc1:languagesdeal id="myLanguagesDeal" Visible="False" runat="server"></uc1:languagesdeal>
<link rel="stylesheet" href="Images/TP21/tuan.css" type="text/css" media="screen" charset="utf-8">
<script language="javascript"> 
var tms = []; 

var hour = []; 
var minute = []; 
var second = []; 
function takeCount() { 
setTimeout("takeCount()", 1000); 
for (var i = 0, j = tms.length; i < j; i++) { 
//计数减一 
tms[i] -= 1000; 
//计算时分秒 

var hours = Math.floor(tms[i] / (1000 * 60 * 60)) ; 
var minutes = Math.floor(tms[i] / (1000 * 60)) % 60; 
var seconds = Math.floor(tms[i] / 1000) % 60; 

if (hours < 0) 
hours = 0; 
if (minutes < 0) 
minutes = 0; 
if (seconds < 0) 
seconds = 0; 
//将时分秒插入到html中 

document.getElementById(hour[i]).innerHTML = hours; 
document.getElementById(minute[i]).innerHTML = minutes; 
document.getElementById(second[i]).innerHTML = seconds; 
} 
} 
setTimeout("takeCount()", 1000); 
</script> 
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="230" height="17" valign="top"></td>
    <td width="5" valign="top"></td>
    <td valign="top"></td>
  </tr>
  <tr>
    <td  align="right" valign="top"><uc1:LeftTwo id="LeftTwo" runat="server"></uc1:LeftTwo>
          </td>
    <td align="center" valign="top">&nbsp;</td>
    <td align="left" valign="top">
	<table width="760" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="28" align="center" background="Images/TP21/bg5.gif">&nbsp;</td>
        <td width="94%" align="left" valign="middle" background="Images/TP21/bg5.gif" class="font11"><%=myLanguagesDeal.GetMyString("TextYouplace")%><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextToday")%> &nbsp;&nbsp;&nbsp;&nbsp;<a href="TeamBuyingList.aspx"><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextHistory")%></a></td>
      </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"></td>
        </tr>
      </table>
	  	<asp:datalist id="dlctProduct" runat="server" RepeatDirection="Horizontal" Width="98%" CellSpacing="3"
	RepeatColumns="1" EnableViewState="False">
	<ItemStyle VerticalAlign="Top" Width="100%"></ItemStyle>
	<ItemTemplate>
		<div id="content">
	
	<div id="deal-intro" class="cf">
		<h1><span class="deal-today-link"><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextToday")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></span><%# DataBinder.Eval(Container.DataItem, "TeamBuyTitle") %></h1>
		<div class="main">
			<div class="deal-buy">
				<div class="deal-price-tag"></div>
				<p class="deal-price"><strong><%# DataBinder.Eval(Container.DataItem, "TeamBuyPrice2") %></strong> <span><a href="Shopping.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>&amp;action=tadd">
							<img src="Images/TP21/button-deal-buy.gif"></a> </span>
				</p>
			</div>
			<table class="deal-discount">
				<tbody>
					<tr>
						<th style="COLOR:#000000">
							<%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextFixedPrice")%></th>
						<th style="COLOR:#000000">
							<%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextDiscount")%></th>
						<th style="COLOR:#000000">
							<%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextEconomical")%></th>
					</tr>
					<tr>
						<td style="COLOR:#000000"><%# DataBinder.Eval(Container.DataItem, "MarketPrice2") %></td>
						<td style="COLOR:#000000"><nobr><%# DataBinder.Eval(Container.DataItem, "PricePercent") %><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextDiscount2")%></nobr></td>
						<td style="COLOR:#000000"><%# DataBinder.Eval(Container.DataItem, "PriceFrugal2") %></td>
					</tr>
				</tbody>
			</table>
			<div class="deal-box deal-timeleft deal-on" id="deal-timeleft" curtime="1292256000" diff="26711561">
				<h3><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextSurplustime")%></h3>
				<div class="limitdate"><ul id="counter">
						<li>
							<span id='h<%# DataBinder.Eval(Container.DataItem, "TeamBuyID") %>' style="FONT-WEIGHT:bold;FONT-SIZE:14px">0</span><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextHour")%><li></SPAN><span id='m<%# DataBinder.Eval(Container.DataItem, "TeamBuyID") %>' style="FONT-WEIGHT:bold;FONT-SIZE:14px">0</span><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextMinute")%><li><span id='s<%# DataBinder.Eval(Container.DataItem, "TeamBuyID") %>' style="FONT-WEIGHT:bold;FONT-SIZE:14px">
								0</span><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextSecond")%></li></ul>
				</div>
			</div>
			<script type="text/javascript"> 
				tms[tms.length] = '<%# DataBinder.Eval(Container.DataItem, "TeamBuyEndTime") %>'; 
				hour[hour.length] = "h<%# DataBinder.Eval(Container.DataItem, "TeamBuyID") %>"; 
				minute[minute.length] = "m<%# DataBinder.Eval(Container.DataItem, "TeamBuyID") %>"; 
				second[second.length] = "s<%# DataBinder.Eval(Container.DataItem, "TeamBuyID") %>"; 
			</script>
			<div class="deal-box deal-status deal-status-open" id="deal-status">
				<p class="deal-buy-tip-top"><strong><%# DataBinder.Eval(Container.DataItem, "SaleAmount") %></strong> <%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextSaleAmount")%></p>
				<p class="no_stock_soon">
					<strong><nobr><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextMsgPrompt1")%></nobr></strong><br>
					<nobr><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextMsgPrompt2")%></nobr>
				</p>
			</div>
		</div>
		<div class="side">
			<div class="deal-buy-cover-img" id="team_images">
				<%# DataBinder.Eval(Container.DataItem, "PicInf3") %>
			</div>
			<div class="digest"><br>
				<div id="deal_note"><span style="COLOR: rgb(255,102,102)"><%# DataBinder.Eval(Container.DataItem, "TeamBuyBrief") %></span></div>
			</div>
		</div>
	</div>
	<div id="deal-stuff" class="cf">
		<div class="clear box box-split">
			<div class="box-top"></div>
			<div class="box-content cf">
				<div class="main">
					<div id="side-otherteam">
						<%# DataBinder.Eval(Container.DataItem, "TeamBuyContent") %>
					</div>
					<h2 id="detail"></h2>
					<h2 id="userreview"></h2>
					<h2 id="detailit"></h2>
					<h2 id="systemreview"></h2>
				</div>
				<div class="clear">
					<div id="deal-share">
						<div class="deal-share-topp">
							<div class="deal-share-links" style="WIDTH: 700px">
								
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div><p>&nbsp;</p>
	</ItemTemplate>
</asp:datalist>
	</td>
  </tr>
</table>
<asp:Label id="lbImagesW" runat="server" Visible="False">450</asp:Label>
<asp:Label id="lbImagesH" runat="server" Visible="False">300</asp:Label>
<asp:Label id="lbShowCount" runat="server" Visible="False">0</asp:Label>