<%@ 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/TP36/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="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
   
    <td width="800" align="center" valign="top" class="zhubor"><table width="790" border="0" cellpadding="0" cellspacing="0" class="tabtopk8px">
        <tr>
          <td height="22" align="left" valign="middle" bgcolor="EBEBEB" class="leftmenufont">&nbsp;&nbsp;<nobr><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextToday")%>&nbsp;&nbsp;&nbsp;&nbsp;<a href="TeamBuyingList.aspx"><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextHistory")%></a></nobr></td>
        </tr>
      </table>
      <table width="800" border="0" cellpadding="0" cellspacing="0" class="tabtopk8px">
        <tr>
          <td height="370" align="center" valign="top">
		 
	<asp:datalist id="dlctProduct" runat="server" RepeatDirection="Horizontal" Width="98%" CellSpacing="3"
	RepeatColumns="2" EnableViewState="False">
	<ItemStyle VerticalAlign="Top" Width="50%"></ItemStyle>
	<ItemTemplate>
		<table width="370"  border="0" cellpadding="5" style="border-right-width: 1px;	border-right-style: dashed;	border-right-color: #D1D1D1;border-bottom-width: 1px;	border-bottom-style: dashed;	border-bottom-color: #D1D1D1;">
	  <tr>
		<td colspan="3" style="font-weight:bold"><%# DataBinder.Eval(Container.DataItem, "AddTime") %> <%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextTo")%> <%# DataBinder.Eval(Container.DataItem, "EndTime") %></td>
	  </tr>
	  <tr>
		<td colspan="3" height="60"><%# DataBinder.Eval(Container.DataItem, "TeamBuyTitle") %></td>
	  </tr>
	  <tr>
		<td width="200" height="160"><a href='ViewTeamBuying.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "TeamBuyID") %>' target="_blank"><%# DataBinder.Eval(Container.DataItem, "PicInf3") %></a></td>
	   
		<td width="150" style="font-weight:bold;font-size:12px"><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextFixedPrice")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><%# DataBinder.Eval(Container.DataItem, "MarketPrice") %><br><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextDiscount")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><%# DataBinder.Eval(Container.DataItem, "PricePercent") %><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextDiscount2")%><br><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextNowPrice")%>:<span style="color:#FF0000;font-weight:bold;font-size:14px"><%# DataBinder.Eval(Container.DataItem, "TeamBuyPrice") %></span><br><%=myLanguagesDeal.GetMyString("ShoppingTeamBuyingTextEconomical")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><%# DataBinder.Eval(Container.DataItem, "PriceFrugal") %></td>
	  </tr>
	</table>
	</ItemTemplate>
</asp:datalist>
		  </td>
        </tr>
      </table></td>
  </tr>
</table>
<asp:Label id="lbImagesW" runat="server" Visible="False">200</asp:Label>
<asp:Label id="lbImagesH" runat="server" Visible="False">150</asp:Label>
<asp:Label id="lbShowCount" runat="server" Visible="False">0</asp:Label>