<%@ page language="C#" autoeventwireup="true" inherits="Shop_Search_Search_Shop, mallz" title="店铺搜索" enableEventValidation="false" %>
<%@ Register tagPrefix="MZ" TagName="TextFormat" Src="UserControls/ProductTextFormat.ascx" %>
<html id="html1" runat="server" xmlns="http://www.w3.org/1999/xhtml" visible="false" >
<head><title></title></head>
<body>
<form id="form_1" runat="server">

<MZ:ClassMapPath id="ClassMapPath" runat="server"/>

    <asp:DropDownList ID="ClassID" runat="server" DataSourceID="ObjectDataSource2" AppendDataBoundItems="true" DataTextField="ClassName" DataValueField="ClassID" onchange="javascript:{aspnetform.action='Search_Shop.aspx';aspnetform.submit();}" >
        <asp:ListItem Text="所有分类" Value=""/>
    </asp:DropDownList>

<!--商品列表栏-->
<asp:GridView ID="ShopList" runat="server" Width="100%" BorderStyle="Solid" CssClass="ProductList" DataKeyNames="ShopID" AutoGenerateColumns="false">
    <Columns>
    <asp:TemplateField HeaderText="店标" HeaderStyle-Width="25%" ItemStyle-HorizontalAlign="Center">
        <ItemTemplate>
            <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"Shop/index.aspx?ShopID="+ Eval("ShopID") %>' Target="_blank" runat="server" >
                <asp:Image height="100px" width="100px" ID="ShopImage" runat="server" onerror="this.src='/Images/NofinePic.gif'"  ImageUrl='<%# Eval("ShopImageUrl") %>'  />
            </asp:HyperLink>
        </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField HeaderText="店名" ItemStyle-HorizontalAlign="Left">
        <ItemTemplate>
           <asp:HyperLink ID="ShopName" Text='<%#Eval("ShopName") %>' Font-Bold="true" NavigateUrl='<%#"Shop/?ShopID="+ Eval("ShopID") %>' runat="server" /><br />
           <asp:Label runat="server" ID="Label2" Text='<%#"分类：" +Eval("ShopClassName") %>'/><br />
           <asp:HyperLink ID="HyperLink3" Text='<%# "店长：" + Eval("ShopOwnerName") %>' NavigateUrl='<%#"Shop/index.aspx?ShopID="+ Eval("ShopID") %>' runat="server" />
           <MZ:TextFormat ID="TextFormat3" runat="server" Text="OICQ" Value='<%# Eval("OICQ") %>' /><br />
           <asp:Label runat="server" ID="MainItem" Text='<%#"主营：" +Eval("ShopOperatorItem") %>'/>
        </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField  HeaderText="信用" HeaderStyle-Width="15%" ItemStyle-HorizontalAlign="Center">
        <ItemTemplate>
        <asp:Label ID="Label1" runat="server" Text='<%# "<script type=text/javascript>displayStar("+Eval("SalerCrediet")+")</script>"%>'></asp:Label>
      </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField  HeaderText="地区" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
        <ItemTemplate>
            <asp:Literal ID="ProductPlace" Text='<%# Eval("ShopAddress") %>' runat="server" />
            <asp:HiddenField ID="F_ShopID" Value='<%# Eval("ShopID") %>' runat="server" />
      </ItemTemplate>
    </asp:TemplateField>
    </Columns>
</asp:GridView>

<asp:Label ID="PagePanel" runat="server" />
                 
                 
               
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetRootClass"   TypeName="MallZ.Data.Shop_Class"/>
</form>
</body>
</html>