<%@ Page Language="c#" Codebehind="TGProducts.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.TGProducts" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LoginForm" Src="Modules/LoginForm.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SmallCart" Src="Modules/SmallCart.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavTop2Level" Src="Modules/LeftNavTop2Level.ascx" %>
<%@ Register TagPrefix="uc1" TagName="CommendProduct" Src="Modules/CommendProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SpecialProduct" Src="Modules/SpecialProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HotProduct" Src="Modules/HotProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NewProduct" Src="Modules/NewProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Link" Src="Modules/Link.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<HEAD>
		<!--#include file="../../inc/encoding.inc"-->
		<title><%=GetResourceString("TogetherPurchase")%> －－ <%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
		<script src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>inc/getParmByUrl.js" type="text/javascript"></script>
		<script src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Template/<%=config.TemplateFolder%>/inc/PM_TG_list.js" type="text/javascript"></script>
		<script type="text/javascript">
		    var extend = '<%=config.html %>';
			var baseUrl="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>TGProducts.aspx?";
			var prePage="<%=GetResourceString("PreviousPage")%>";
			var nextPage="<%=GetResourceString("NextPage")%>";
        </script>
		<style>
		#navbar ul li.tgproducts{background:url("Template/XpShopFreeDemo_8_1/images/navbar_on.jpg") no-repeat;}
        #navbar ul li.tgproducts a:link,#navbar ul li.tgproducts a:visited,#navbar ul li.tgproducts a:hover{color:#ffffff; font-weight:bold; text-decoration:none;}
		</style>
	</HEAD>
	<body>
		<div id="container">
			<uc1:Header id="Header1" runat="server"></uc1:Header>
		    <!--位置导航开始-->
			<div class="path"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a> > <%=GetResourceString("TogetherPurchase")%></div>
			<!--位置导航结束-->
			<div id="content">
				<div id="content_left_side">
					<uc1:LeftNavTop2Level id="LeftNavTop2Level1" runat="server"></uc1:LeftNavTop2Level>
				</div>
				<div id="content_middle_side">
					<!--商品列表开始-->
					<div class="mframe">
						<div class="tl"></div>
						<div class="tr"></div>
						<div class="tm"><div class="on"><%=GetResourceString("TogetherPurchase")%></div></div>
						<div class="ml"></div>
						<div class="mr"></div>
						<div class="mm1">
						    <div>
						        <%BindNumberList(); %>
                                <asp:datalist id="dlNumber" runat="server" RepeatColumns="6" RepeatDirection="Horizontal" RepeatLayout="Table" CellSpacing="0" CellPadding="5" Width="100%" Visible="true" GridLines="None">
                                    <ItemStyle CssClass="alignCenterTop" />
									    <ItemTemplate>
									        <a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>TGProducts.aspx?Number=<%#DataBinder.Eval(Container.DataItem,"NewNumber")%>' target="_blank" ><%#DataBinder.Eval(Container.DataItem,"NewNumber")%></a>
									    </ItemTemplate>
                                </asp:datalist>
						    </div>
						    <div class="plist">
								<%BindProductList(); %>
                                <asp:datalist id="dlProducts" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" RepeatLayout="Table"
									CellSpacing="0" CellPadding="5" Width="100%" Visible="true" GridLines="None">
									<ItemStyle CssClass="alignCenterTop" />
									<ItemTemplate>
										<table cellpadding="5" cellspacing="0" width="95%" class="shangpinPM">
											<tr>
												<td class="m">
													<a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>TGShow.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"NewProductID")%><%}else{%>newproducts/NewProduct_<%#DataBinder.Eval(Container.DataItem,"NewProductID")%>.<%=config.html%><%}%>' target="_blank"><img src='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%=config.Path%>upload/newPicture/<%#DataBinder.Eval(Container.DataItem,"Picture")%>' border="0" width="150" height="163" alt="" /></a>
												</td>
											</tr>
											<tr>
											    <td class="r">
													<a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>TGShow.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"NewProductID")%><%}else{%>newproducts/NewProduct_<%#DataBinder.Eval(Container.DataItem,"NewProductID")%>.<%=config.html%><%}%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a>
												</td>
											</tr>
											<tr>
											    <td>
											        <%=GetResourceString("TogetherPurchasePrice")%>:<%#DataBinder.Eval(Container.DataItem,"LowPrice") %>
											    </td>
											</tr>
											<tr>
											    <td>
											        <%=GetResourceString("RemainingTime")%>:
											        <%#GetRemainingTime(DataBinder.Eval(Container.DataItem, "DateTo").ToString())%>
											    </td>
											</tr>
										</table>
									</ItemTemplate>
								</asp:datalist>
						    </div>
						</div>
					    <div class="bl"></div>
					    <div class="br"></div>
					    <div class="bm"></div>
					</div>
					<!--商品列表结束-->
					<!-- 翻页开始-->
					<div class="page clear">
						<div class="fpage1">
                            <asp:Label ID="lblPagerInfo" runat="server"></asp:Label>
                            <input id="gopage" type="text" class="gopage" size="1" />
                            <input id="go" type="button" value="Go" class="go" />
                        </div>
                        <div class="fpage2">
                            <span class="prepage"></span>
                            <asp:Label ID="lbPage" runat="server"></asp:Label>
                            <span class="nextpage"></span>
                        </div>                                
					</div>
					<!-- 翻页结束-->
				</div>
				<div style="clear:both;"></div>
			</div>
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>
		<div id="btnCompare" class="compare_hidden">
            <button id="doCompare"><%=GetResourceString("ProductCompare")%></button>
        </div>
	</body>
</HTML>  