<%@ page language="C#" autoeventwireup="true" inherits="Web_ProductList, mallz" title="商品搜索" enableviewstate="false" enableEventValidation="false" %>
<%@ Register tagPrefix="MZ" TagName="TextFormat" Src="UserControls/ProductTextFormat.ascx" %>
<%@ Import  Namespace="MallZ.Web.Shop" %>

<html xmlns="http://www.w3.org/1999/xhtml"  runat="server" visible="false">
<head><title></title>
</head>
<body>
<form id="form_1" runat="server"  >
   <!--分类导航条-->
   
    <asp:Repeater ID="ClassMapPath" runat="server">
    <ItemTemplate>
    <asp:LinkButton ID="LB_classMapPath" runat="server" onclick='<%# "AddParam(\"ClassID\",\""+Eval("ClassID")+"\");return false;"%>'> > <%#Eval("ClassName") %></asp:LinkButton>
    </ItemTemplate>
    </asp:Repeater>
   <!--子分类列表--> 
<asp:DataList ID="ChildCategory" runat="server" RepeatColumns="5" >
        <ItemTemplate>
          <asp:LinkButton ID="LinkButton1" runat="server" onclick='<%# "AddParam(\"ClassID\",\""+Eval("ClassID")+"\");return false;"%>'><%#Eval("ClassName") %></asp:LinkButton>
           <span>(<asp:literal ID="ClassProducCount" runat="server"  Text='<%# Eval("ItemCount") %>'/>)</span>
        </ItemTemplate>
</asp:DataList>
       <!--显示分页个数--> 
    <asp:Literal ID="selectTabSub" runat="server">
    <script type="text/javascript">
    document.getElementById('allLi').className='active';
    </script>
    </asp:Literal>
    <!--显示分页个数--> 
   <asp:Label ID="SetPageSize" runat="server">
        <a href="javascript:{AddParam('maxperpage','20')}"><img id="page20" runat="server" src="Images/page_20.gif" border="0" /></a>
        <a href="javascript:{AddParam('maxperpage','40')}"><img id="page40" runat="server" src="Images/page_40.gif" border="0"/></a>
        <a href="javascript:{AddParam('maxperpage','80')}"><img id="page80" runat="server" src="Images/page_80.gif" border="0"/></a>
   </asp:Label> 
   <!--显示排序选择下拉框--> 
<asp:DropDownList ID="setSortType" runat="server" Width="120px"
 AutoPostBack="true">
<asp:ListItem Text="选择排序方式" Value="-1"/>
<asp:ListItem Text="价格从低到高" Value="1" />
<asp:ListItem Text="价格从高到低" Value="2" />
<asp:ListItem Text="剩余时间从少到多" Value="3" />
<asp:ListItem Text="剩余时间从多到少" Value="4" />
<asp:ListItem Text="卖家信用从高到低" Value="5" />
<asp:ListItem Text="卖家信用从低到高" Value="6" />
<asp:ListItem Text="浏览量从高到低" Value="7" />
<asp:ListItem Text="浏览量从低到高" Value="8" />
</asp:DropDownList> 
   <!--商品列表-->
 <asp:Repeater ID="ProductList" runat="server">
           <HeaderTemplate>
               <div id="ListTop">
                    <div class="Item_Compare">
                         <img src="Images/Category_Compare_Left.gif" onclick="doCompare()" style="cursor:pointer" /><img alt="加入对比" onclick="doCompare()" src="Images/Category_Compare_Btn.gif" style="cursor:pointer" />
                    </div>
                    <div class="Item_Name">商品名称/卖家</div>
                    <div class="Item_Price">价格</div>
                    <div class="Item_Hits">浏览量</div>
                    <div class="Item_Place">所在地</div>
                    <div class="Item_TimeLeft">剩余时间</div>
                </div>
           </HeaderTemplate>
           <ItemTemplate> 
                <div class="Item" id="<%#((Container.ItemIndex%2)==0)?"AltrowStyle":"" %>" >
                    <div class="Item_Compare">
                       <input type="checkbox" name="cb_id" value="<%#Eval("ProductID") %>" />
                    </div> 
                    <div class="Item_Pic">
                       <a href="ShowProduct.aspx?ProductID=<%#Eval("ProductID") %>" target="_blank" onmouseover='showPreview(event);' onmouseout='hidePreview(event);'>
                       <img alt="" onerror="this.src='/images/nopicture.gif'" onload="return ResizeImage(this,80,80)" large_src="<%# Eval("ProductMidImageUrl") %>" src="<%# Eval("ProductSmallImageUrl") %>" />
                       </a>
                    </div> 
                    <div class="Item_Info">
                         <div class="Item_Name"><a href="ShowProduct.aspx?ProductID=<%#Eval("ProductID") %>" target="_blank"><%#Eval("ProductName") %></a></div>
                         <div class="Item_Seller"><a href="Shop/Index.aspx?ShopID=<%#Eval("ShopID") %>" target="_blank"><%#Eval("SalerName") %></a></div>
                         <div class="Item_Icon">&nbsp;<a href='Member/AddMyFav.aspx?ProductID=<%#Eval("ProductID") %>&tag=AddProFav'  target="_blank"  title="收藏商品"><img alt="收藏商品" src='Images/myfav_icon.gif' border="0"/></a>
                            <MZ:TextFormat ID="TextFormat3" runat="server" Text="OICQ" Value='<%#GetUserInfo("OICQ",Eval("SalerID").ToString())%>' />
                            <MZ:TextFormat ID="TextFormat4" runat="server" Text="Taobaowangwang" Value='<%#GetUserInfo("Taobaowangwang",Eval("SalerID").ToString())%>' />
                         </div>
                    </div>
                    <div class="Item_TimeLeft"><MZ:TextFormat runat="server" ID="TextFormat0" Text="LeftTime" Value='<%# Eval("EndDate")+"|"+Eval("NoLimitDate") %>' /></div>
                    <div class="Item_Place"><%#Eval("Province") +""+ Eval("City")%></div>
                    <div class="Item_Hits"><%#Eval("Hits")%></div> 
                    <div class="Item_Price">
                        <%# TextFormat.GetProductType(Eval("ProductType").ToString()) %><br/>
                        <MZ:TextFormat ID="TextFormat1" runat="server" Text="TeamMinPrice" ProductType='<%#Eval("ProductType") %>' Value='<%# Eval("CurrentPrice")%>' />
                        <MZ:TextFormat ID="TextFormat2" runat="server" Text="AuctionStartPrice" ProductType='<%#Eval("ProductType") %>' Value='<%# Eval("AuctionStartPrice")%>' /><span><b>￥<%#Eval("StandPrice")%></b></span></div>
                </div>
                <div class="HackBox"></div> 
           </ItemTemplate>
       </asp:Repeater>
<!--商品列表--> 
<!--分页导航-->
<div class="page">
<asp:Label ID="PagePanel" runat="server" />
<asp:Label ID="PagePanelDown" Visible="false" runat="server" />
</div>
<!--分页导航--> 
</form>
</body>
</html>