<%@ Page Language="c#" Codebehind="PMProducts.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.PMProducts" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavPM0" Src="Modules/LeftNavPM0.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavPM1" Src="Modules/LeftNavPM1.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavPM2" Src="Modules/LeftNavPM2.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("BidUp")%>,<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
		<script src="<%=webSite %>inc/getParmByUrl.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/PM_TG_list.js" type="text/javascript"></script>
		<script type="text/javascript">
		    var extend = '<%=config.html %>';
			var baseUrl="<%=webSite %>auction/products";
			var compareUrl="<%=webSite %>Compare.aspx";
			var prePage="<%=GetResourceString("PreviousPage")%>";
			var nextPage="<%=GetResourceString("NextPage")%>";
			var number="<%=Request.QueryString["Number"] == null ? "0" : Request.QueryString["Number"] %>";
			var page="<%=Request.QueryString["page"] == null ? "1" : Request.QueryString["page"] %>";
			var display="<%=Request.QueryString["display"] == null ? "2" : Request.QueryString["display"] %>";
			var sort="<%=Request.QueryString["OrderSort"] == null ? "0" : Request.QueryString["OrderSort"] %>";
			var status="<%=Request.QueryString["status"] == null ? "1" : Request.QueryString["status"] %>";
        </script>
	</HEAD>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-w clear" style=" margin-top:-5px; margin-bottom:1px; overflow:hidden;">
		    <div id="banner1" style="display:none;"></div>
		    <div id="banner2" style="display:none;"></div>
		    
	        <script type="text/javascript" language="javascript">
				
					$("#banner2").html('<%=GetAD(75)%>');
					$("#banner2").show();
				
			</script>
		</div>
		<!--位置导航开始-->
		<%--<div class="path"><h5><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;<%=GetResourceString("BidUp")%></h5></div>--%>
		<!--位置导航结束-->
		<div class="xp-w clear">
			<div id="content_left">
				<uc1:LeftNavPM0 id="LeftNavPM01" runat="server"></uc1:LeftNavPM0>
				<uc1:LeftNavPM1 id="LeftNavPM11" runat="server"></uc1:LeftNavPM1>
				<uc1:LeftNavPM2 id="LeftNavPM21" runat="server"></uc1:LeftNavPM2>
				<%=GetAD(30)%>
			</div>
			<div id="content_right">
				<!--商品列表开始-->
				<div class="list_style">						
					<%=GetSortMode()%>
					<div class="display_mode">
						<%=GetDisplayMode()%>
					</div>
					<div class="page_change" style="margin-top:0px;">
						<span><%=GetResourceString("DoPage")%></span>
                        <span class="prepage"></span>
						<span class="nextpage"></span>
					</div>
		        </div>
		        <%--			    	
				<div class="pmqihao">
			        <%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='<%=webSite %>PMProducts.aspx?Number=<%#DataBinder.Eval(Container.DataItem,"NewNumber")%>' ><%#DataBinder.Eval(Container.DataItem,"NewNumber")%></a>
							</ItemTemplate>
                    </asp:datalist>
			    </div>
			    --%>
			    <div class="plist">
					<% if(Request.QueryString["display"] == "1") {%>
					<div class="pro_hlist">
						<%BindProductList("dlProducts1",6);%>
						<asp:DataList id="dlProducts1" CellPadding="3" CellSpacing="0" GridLines="None" RepeatColumns="1" RepeatDirection="Horizontal" RepeatLayout="Table" Visible="true" Width="100%" runat="server">
							<ItemTemplate>													
								<table cellpadding="3" cellspacing="0" width="100%">
									<tr>
                                        <td width="23%">
										    <div>
										       <div class="xp-pdt-img">
										           <a style="position:relative;" href='<%=webSite %>auction/product-<%#DataBinder.Eval(Container.DataItem,"NewProductID")%>.<%=config.html%>' target="_blank"><img src='<%=webSite %><%=config.Path%>upload/<%#DataBinder.Eval(Container.DataItem,"Picture")%>' width="160" height="160" alt="" /></a>
										        </div>
											    <div class="pro_hlist_pmdiv"><%=GetTagImg(5,0,0)%></div> 
										    </div>
										</td>
										<td width="60%" align="left" valign="top">
										    <table cellpadding="3" cellspacing="0" border="0">
											    <tr>
												    <td class="pro_hlist_pname">
												        <a href='<%=webSite %>auction/product-<%#DataBinder.Eval(Container.DataItem,"NewProductID")%>.<%=config.html%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a>
											        </td>
											    </tr>
											    <tr style="color:#ff4e00; text-align:left;">
												    <td><%=GetResourceString("BidUpPrice")%>：<%#DataBinder.Eval(Container.DataItem,"LowPrice") %></td>
											    </tr>
											    <tr style="color:#ff4e00; text-align:left;">
									                <td>
									                   当前价：<%#DataBinder.Eval(Container.DataItem,"TopPrice") %>
									                </td>
									            </tr>
											    <tr>
									                <td>
									                    <span class="pm_tdspan"><%=GetResourceString("RemainingTime")%>:
									                    <%#GetRemainingTime(DataBinder.Eval(Container.DataItem, "DateTo").ToString())%></span>
									                </td>
									            </tr>
										    </table>
										</td>
										<td width="20%" valign="bottom">
										    <a href='<%=webSite %>auction/product-<%#DataBinder.Eval(Container.DataItem,"NewProductID")%>.<%=config.html%>' target="_blank"><div class="details"></div></a>
										</td>
									</tr>
									<tr>
									    <td colspan="3"><hr size="1" noshade="noshade" style="border:1px #cccccc dotted"/></td>
									</tr>
								</table>
							</ItemTemplate>
						</asp:DataList>
					</div>
					<%}else if(Request.QueryString["display"] == "3"){%>
					<div class="pro_piclist">
						<%BindProductList("dlProducts2",32);%>
						<asp:DataList id="dlProducts2" CellPadding="0" CellSpacing="12" GridLines="None" RepeatColumns="4"
							RepeatDirection="Horizontal" RepeatLayout="Table" Visible="true" Width="100%" runat="server">
							<ItemStyle CssClass="alignCenterTop" />
							<ItemTemplate>													
								<table cellpadding="3" cellspacing="0" style="border:1px #CCCCCC solid" align="center" width="160px" height="160px">
									<tr>
										<td>
                                            <div>
										       <div class="xp-pdt-img">
										           <a style="position:relative;" href='<%=webSite %>auction/product-<%#DataBinder.Eval(Container.DataItem,"NewProductID")%>.<%=config.html%>' target="_blank"><img src='<%=webSite %><%=config.Path%>upload/<%#DataBinder.Eval(Container.DataItem,"Picture")%>' width="160" height="160" alt="" /></a>
										        </div>
											    <div class="pro_piclist_pmdiv"><%=GetTagImg(5,0,0)%></div> 
										    </div>
										</td>
									</tr>
								</table>
							</ItemTemplate>
						</asp:DataList>
					</div>
					<%}else{%>
					<div class="pro_wlist">
						<%BindProductList("dlProducts3",16);%>
						<asp:DataList id="dlProducts3" CellPadding="3" CellSpacing="0" GridLines="None" RepeatColumns="4"
							RepeatDirection="Horizontal" RepeatLayout="Table" HorizontalAlign="left" Visible="true" runat="server">
							<ItemStyle CssClass="dl_item"/>
							<ItemTemplate>													
								<table cellpadding="2" cellspacing="0" width="98%" class="shangpin">
									<tr>
										<td>
										    <div>
										       <div class="xp-pdt-img">
										           <a style="position:relative;" href='<%=webSite %>auction/product-<%#DataBinder.Eval(Container.DataItem,"NewProductID")%>.<%=config.html%>' target="_blank"><img src='<%=webSite %><%=config.Path%>upload/<%#DataBinder.Eval(Container.DataItem,"Picture")%>' width="160" height="160" alt="" /></a>
										        </div>
											    <div class="pmdiv"><%=GetTagImg(5,0,0)%></div> 
										    </div>
										    
										</td>
									</tr>
									<tr>
									    <td>
									        <div class="qg-pdtname">
											<a href='<%=webSite %>auction/product-<%#DataBinder.Eval(Container.DataItem,"NewProductID")%>.<%=config.html%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a>
										    </div>
										</td>
									</tr>
									<tr>
									    <td style="color:#ff4e00; text-align:left;">
									        <%=GetResourceString("BidUpPrice")%>：<%#DataBinder.Eval(Container.DataItem,"LowPrice") %>
									    </td>
									</tr>
									<tr>
									    <td style="color:#ff4e00; text-align:left;">
									       当前价：<%#DataBinder.Eval(Container.DataItem,"TopPrice") %>
									    </td>
									</tr>
									<tr>
									    <td style="text-align:left;">
									        <span class="pm_tdspan"><%=GetResourceString("RemainingTime")%>:
									        <%#GetRemainingTime(DataBinder.Eval(Container.DataItem, "DateTo").ToString())%></span>
									    </td>
									</tr>
								</table>
							</ItemTemplate>
						</asp:DataList>
					</div>
					<%}%>
			    </div><!--end plist-->
				<!--商品列表结束-->
				
				<asp:panel id="plPage" visible="true" runat="server">
				<!-- 翻页开始-->
				<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>
				<!-- 翻页结束-->
				</asp:panel>
				
				<asp:panel id="plNoProduct" visible="false" runat="server">
					<div style="margin:20px;">
						<h3>抱歉，没有找到符合条件的商品！</h3>
					</div>
				</asp:panel>
			</div>
		</div>
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>

		<div id="btnCompare" class="compare_hidden">
            <button id="doCompare"><%=GetResourceString("ProductCompare")%></button>
        </div>
	</body>
</HTML>  