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

<html xmlns="http://www.w3.org/1999/xhtml"  runat="server" visible="false">
<head runat="Server"><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" style=" font-size:12px;" RepeatColumns="5" Width="100%" >
        <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">
    var allLi=document.getElementById('allLi');
    if(allLi!=null) 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:DataList ID="ProductList" runat="server" RepeatColumns="4" RepeatLayout="flow">
  <HeaderTemplate>
    <div id="ListTop">
            <div class="Item_Compare">
                 <img alt="" 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,this.href);' onmouseout='hidePreview(event);'><img alt="" onerror="this.src='/images/nopicture.gif'" onload="return ResizeImage(this,80,80)" src="<%# Eval("ProductSmallImageUrl") %>"  large_src="<%# Eval("ProductImageUrl") %>"></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">
             <% if(ShowShop) %>
             <%{ %>
             <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>
                <hl:TextFormat ID="TextFormat3" runat="server" Text="OICQ" Value='<%#GetUserInfo("OICQ",Eval("SalerID").ToString())%>' />
                <hl:TextFormat ID="TextFormat5" runat="server" Text="Skype" Value='<%#GetUserInfo("ShopSkype",Eval("SalerID").ToString())%>' />
                 <hl:TextFormat ID="TextFormat6" runat="server" Text="Msn" Value='<%#GetUserInfo("ShopMsn",Eval("SalerID").ToString())%>' />
                 <hl:TextFormat ID="TextFormat7" runat="server" Text="Yahoo" Value='<%#GetUserInfo("ShopYahoo",Eval("SalerID").ToString())%>' />
                <hl:TextFormat ID="TextFormat4" runat="server" Text="Taobaowangwang" Value='<%#GetUserInfo("Taobaowangwang",Eval("SalerID").ToString())%>' />
             </div>
        </div>
        <div class="Item_TimeLeft"><hl:TextFormat runat="server" ID="TextFormat0" Text="LeftTime" Value='<%# Eval("LeftTime")%>' /></div>
        <div class="Item_Place"><%#Eval("ProductPlace") %></div>
        <div class="Item_Hits"><%#Eval("Hits")%></div> 
        <div class="Item_Price">
            <%# TextFormat.GetProductType(Eval("ProductType").ToString()) %><br/>
            <hl:TextFormat ID="TextFormat1" runat="server" Text="TeamMinPrice" ProductType='<%#Eval("ProductType") %>' Value='<%# Eval("CurrentPrice")%>' />
            <hl:TextFormat ID="TextFormat2" runat="server" Text="AuctionStartPrice" ProductType='<%#Eval("ProductType") %>' Value='<%# Eval("AuctionStartPrice")%>' /><span><b>￥<%#Eval("Price") %></b></span></div>
    </div>
  </ItemTemplate>
</asp:DataList>
  
<!--商品列表--> 
<!--分页导航-->
<asp:Label ID="PagePanel" runat="server" />
<asp:Label ID="PagePanelDown" Visible="false" runat="server" />
<!--分页导航--> 
</form>
</body>
</html>