<%@ Control Language="C#"  %>
<%@ Import Namespace="ShopNum1.Common"%>
 
<div class="list">
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
            <tr>
                <td>                        
    <div class="title clearfix " style="border:1px solid #cfcfcf">
    <div class="left"></div>
    <span class="ProductName" style="float:left;padding-left:10px;">商品列表</span>
        
      <font style="position:relative;top:-3px">显示方式：</font>
      
      <asp:ImageButton ID="ImageButtonList" runat="server" 
                        ImageUrl="../Images/productDisplayList.gif" />&nbsp;<asp:ImageButton ID="ImageButtonGrid" runat="server" 
                        ImageUrl="../Images/productDisplayGrid.gif" />&nbsp;<asp:ImageButton ID="ImageButtontext" runat="server" 
                        ImageUrl="../Images/productDisplayListText.gif" />&nbsp;
                        <asp:DropDownList ID="DropDownListSort1" runat="server" style="position:relative;top:1px">
                        <asp:ListItem Value="ModifyTime">按上架时间排序</asp:ListItem>
                        <asp:ListItem Value="ShopPrice">按价格排序</asp:ListItem>
                        <asp:ListItem Value="ModifyTime">更新时间</asp:ListItem>
                    	</asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="DropDownListSort2" runat="server" style="position:relative;top:1px">
                        <asp:ListItem Value="DESC">倒序</asp:ListItem>
                        <asp:ListItem Value="ASC">正序</asp:ListItem>
                    	</asp:DropDownList>
     <asp:ImageButton ID="ImageButtonSearch" runat="server" 
                        ImageUrl="../Images/Search.gif"  style="position:relative;top:3px"/>
                        <asp:Button ID="ButtonCompare" runat="server" Text=""  CssClass="bt_betwin" style="position:relative;top:0"/>
                        
                        </div>
</td>
            </tr>
</table>
 <br />
<!--  缩略图显示方式 -->
<asp:DataList ID="DataListProductGrid" runat="server" RepeatDirection="Horizontal" 
                RepeatColumns="4" Width="100%"><ItemTemplate>
      <table id="Grid"   width="100%" border="0" cellpadding="0" cellspacing="0">      
     
           <tr>
                        <td align="center">
                                    <a href='ProductDetail.aspx?guid=<%# Eval("guid") %>'   target="_blank"> 
                                    <asp:Image ID="ImageProduct" runat="server" Height="100px" 
                  ImageUrl= '<%# Globals.ImagePath+Eval("OriginalImge") %>'
                    Width="100px" />
                                     </a> 
                               
                            </td>
              </tr>
                  <tr>
                            <td align="center">
                                <asp:CheckBox ID="CheckBoxCompare"  runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span><a href='ProductDetail.aspx?guid=<%# Eval("guid") %>'   target="_blank"> 
                                <%# Eval("Name")%></a></td>
                                
                        </tr>
                <tr>
                            <td align="center">                            
                                市场价格：<font class="Price"><%# Globals.MoneySymbol%><%# Eval("MarketPrice")%></font>
                            </td>
                        </tr>
           <tr>
                            <td align="center">
                                本店售价：<font class="StorePrice"><%# Globals.MoneySymbol%><%# Eval("ShopPrice")%></font>
                            </td>
                        </tr>
                        <tr>
                                    <td align="center">
                                <asp:HyperLink ID="Buy" runat="server"  ImageUrl="../Images/buy.jpg" Target="_blank"  NavigateUrl=<%# "~/ProductDetail.aspx?guid="+Eval("guid") %>/>
                               <asp:HyperLink ID="CollectAction" runat="server"  ImageUrl="../Images/coll.jpg" Target="_blank"  NavigateUrl=<%# "~/CollectAction.aspx?guid="+Eval("guid") %>/>
                                    </td>
                        </tr>
           
    </table>
    </ItemTemplate>
</asp:DataList>
<!--  列表显示方式 -->
<asp:DataList ID="DataListProductList" runat="server" 
                RepeatColumns="1" Width="100%">
 <ItemTemplate>
    <table  width="100%" border="0" cellpadding="0" cellspacing="0" style="border-bottom:1px solid #f1f1f1">      
           <tr>
                        <td align="left" class="vote" width="10%">
                                <div class="ProductImg">
                                   <a href='ProductDetail.aspx?guid=<%# Eval("guid") %>'   target="_blank"> 
                                    <asp:Image ID="ImageProduct" runat="server" Height="52px" 
                    ImageUrl= '<%# Globals.ImagePath+Eval("OriginalImge") %>'
                    Width="52px" />
                                </a>
                           </div>
                            </td>
                            <td width="20%"  align="left">
                                 
                                  <asp:CheckBox ID="CheckBoxCompare"  runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span><a href='ProductDetail.aspx?guid=<%# Eval("guid") %>'   target="_blank"> 
                                 <%# Eval("Name")%></a> </td>
                            <td width="20%" >
                            	市场价格：<font class="Price"><%# Globals.MoneySymbol%><%# Eval("MarketPrice")%></font>
                          
                            </td>
                            <td width="20%" >      本店售价：<font class="StorePrice"><%# Globals.MoneySymbol%><%# Eval("ShopPrice")%></font></td>
                             <td align="right" width="25%" >
                             <asp:HyperLink ID="Buy" runat="server"  ImageUrl="../Images/buy.jpg" Target="_blank"  NavigateUrl=<%# "~/ProductDetail.aspx?guid="+Eval("guid") %>/>
                             <asp:HyperLink ID="CollectAction" runat="server"  ImageUrl="../Images/coll.jpg" Target="_blank"  NavigateUrl=<%# "~/CollectAction.aspx?guid="+Eval("guid") %>/></td>
         
    </table>
    </ItemTemplate>
    <%--<FooterTemplate>
    </FooterTemplate>--%>
</asp:DataList>
 <!--  文字显示方式 -->
<asp:DataList ID="DataListProductText" runat="server" 
                RepeatColumns="1" Width="100%">
    <%--<HeaderTemplate>    
    </HeaderTemplate>--%><ItemTemplate>
    <table  width="100%" border="0" cellpadding="0" cellspacing="0" style="border-bottom:1px solid #f1f1f1" >      
           <tr>
                        <td align="left" width="25%" >
                          <div style="margin:5px;padding:5px" >
                                <asp:CheckBox ID="CheckBoxCompare"  runat="server" /><span runat="server" visible="false" id="guid"><%# Eval("Guid") %></span><a href='ProductDetail.aspx?guid=<%# Eval("guid") %>'   target="_blank"> 
                                <%# Eval("Name")%></a> </div>
                            </td>
                            <td width="25%"  >市场价格：<font class="Price"><%# Globals.MoneySymbol%><%# Eval("MarketPrice")%></font> 
                              
                            </td>
                            <td width="25%" >  本店售价：<font class="StorePrice"><%# Globals.MoneySymbol%><%# Eval("ShopPrice")%></font></td>
                             <td align="right"   >
                             <asp:HyperLink ID="Buy" runat="server"  ImageUrl="../Images/buy.jpg" Target="_blank"  NavigateUrl=<%# "~/ProductDetail.aspx?guid="+Eval("guid") %>/>
                             <asp:HyperLink ID="CollectAction" runat="server"  ImageUrl="../Images/coll.jpg" Target="_blank"  NavigateUrl=<%# "~/CollectAction.aspx?guid="+Eval("guid") %>/></td>
        
    </table>
    </ItemTemplate>
    <%--<FooterTemplate>
    </FooterTemplate>--%>
</asp:DataList>
<!-- 分页部分-->
    <div class="pager" >
<asp:Label ID="LabelPageMessage" runat="server"></asp:Label>

&nbsp;<asp:HyperLink ID="lnkFirst" runat="server"><span class="fpager">[ 首页</span></asp:HyperLink>
<asp:HyperLink ID="lnkPrev" runat="server"><span class="fpager">| 上一页</span></asp:HyperLink>
<asp:HyperLink ID="lnkNext" runat="server"><span class="fpager">| 下一页</span></asp:HyperLink>
<asp:HyperLink ID="lnkLast" runat="server"><span class="fpager">| 末页 ]</span></asp:HyperLink>
&nbsp;<span class="fpager">转到 <asp:Literal ID="lnkTo" runat="server" /> 页</span>

</div>
