<%@ page language="C#" autoeventwireup="true" inherits="Shop_Search_Search_Shop, WebApp_deploy" title="店铺搜索" enableEventValidation="false" %>
<%@ Register tagPrefix="hl" TagName="TextFormat" Src="UserControls/ProductTextFormat.ascx" %>
<html runat="server" xmlns="http://www.w3.org/1999/xhtml" visible="false" >
<head><title></title><script type="text/javascript" src="/Js/f_function.js"></script>
</head>
<body>
<form id="form_1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"/>

  <div id="Category_Content" style="left: 0px; top: 0px">

    <div id="Catergor_Navgitor">
      <hl:ClassMapPath id="ClassMapPath" runat="server"/>
   </div>

    <!--主栏目-->
    <div id="Main_Frame">
          <!--商品展示主栏-->
          <div id="Product_List">
          <div id="mainSarR">
             <!--商品显示按钮栏-->
             <!--商品显示方式选择栏-->
             <div id="Prodcut_Show_Type">            
                    <div class="show_num" style="padding-left:5px">排序方式：</div>
                    <div class="show_sel">
                       <asp:DropDownList ID="Sort_Type" runat="server" Width="120px" AutoPostBack="true" >
                          <asp:ListItem Text="商品数量从少到多" Value="1" />
                          <asp:ListItem Text="商品数量从多到少" Value="2" />
                          <asp:ListItem Text="卖家信用从高到低" Value="3" />
                          <asp:ListItem Text="卖家信用从低到高" Value="4" />
                       </asp:DropDownList>
                    </div>
             </div>
             
             <div id="Product_Compare_Top">
                <div class="product_item_title" style="width:15%;">
                    店标</div>
                <div class="product_item_title" style="width:35%">
                    店名</div>
                <div class="product_item_title">
                    店长</div>    
                <div class="product_item_title">
                    商品数量</div>
                <div class="product_item_title" style="width:10%;padding:2px">
                  <asp:DropDownList ID="F_ProductPlace" runat="server" AppendDataBoundItems="True" DataSourceID="ObjectDataSource4" DataTextField="City" DataValueField="City">
                     <asp:ListItem Text="所在地" Value="-1" />
                  </asp:DropDownList><asp:ObjectDataSource ID="ObjectDataSource4" runat="server" SelectMethod="GetImportantCityByFlag"
                      TypeName="HoWave.Web.Shop_City"></asp:ObjectDataSource>
                </div>
                <div class="product_item_title" style="width:15%">
                    卖家信用等级</div>
                
             </div>
             <!--商品列表栏-->
             <div id="Porduct_List_Main" style="clear:both;">
               <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                 <ContentTemplate>
                   <asp:DataList ID="DataList1" runat="server" Width="100%"  CssClass="ProductList"  DataKeyField="ShopID">
                       <ItemTemplate>
                         <div class="Product_Item">  
                          <!--店标-->                   
                          <div class="product_item_title" style="width:15%;">
                              <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"Shop/?ShopID="+ Eval("ShopID") %>' runat="server" >
                                 <asp:Image height="80px" width="100px" ID="ShopImage" runat="server" onerror="this.src='/Images/NofinePic.gif'"  ImageUrl='<%# Eval("ShopImageUrl") %>'  />
                              </asp:HyperLink>
                          </div>
                          <!--店名--> 
                          <div class="product_item_title" style="width:35%;">                    
                               <asp:HyperLink ID="ShopName" Text='<%#Eval("ShopName") %>' NavigateUrl='<%#"Shop/?ShopID="+ Eval("ShopID") %>' runat="server" /><br />
                               <asp:Label runat="server" ID="MainItem" Text='<%#"主营：" +Eval("ShopOperatorItem") %>'  CssClass="shop_main_item" />
                                                  
                          </div>
                          <!--店长--> 
                           
                          <div class="product_item_title">
                               <asp:HyperLink ID="HyperLink3" Text='<%#Eval("ShopOwnerName") %>' NavigateUrl='<%#"Shop/?ShopID="+ Eval("ShopID") %>' runat="server" />
                                <div>
                                <hl:TextFormat ID="TextFormat3" runat="server" Text="OICQ" Value='<%#GetUserInfo("OICQ",Eval("ShopOwnerID").ToString())%>' />
                                <hl:TextFormat ID="TextFormat5" runat="server" Text="Skype" Value='<%#GetUserInfo("ShopSkype",Eval("ShopOwnerID").ToString())%>' />
                                 <hl:TextFormat ID="TextFormat6" runat="server" Text="Msn" Value='<%#GetUserInfo("ShopMsn",Eval("ShopOwnerID").ToString())%>' />
                                 <hl:TextFormat ID="TextFormat7" runat="server" Text="Yahoo" Value='<%#GetUserInfo("ShopYahoo",Eval("ShopOwnerID").ToString())%>' />
                               </div>
                              
                              
                              <!--<asp:HyperLink ID="TaobaoLink" runat="server" NavigateUrl='<%# Eval("Taobaowangwang") %>' Target="_blank">
                                   <asp:Image ID="TaobaoImage" ImageUrl='<%# Eval("Taobaowangwang") %>' runat="server"  AlternateText="点击此可以直接和对方交流"/>
                               </asp:HyperLink>-->
                          </div>
                          <!--商品数量-->
                          <div class="product_item_title">
                               <asp:Label ID="ProductType" Text='<%#Eval("ShopProductNum") %>' runat="server" />
                          </div>
                          <!--所在地-->   
                          <div class="product_item_title">
                          <asp:Literal ID="ProductPlace" Text='<%#Eval("ShopAddress") %>' runat="server" /></div>
                          <asp:HiddenField ID="F_ShopID" Value='<%#Eval("ShopID") %>' runat="server" />
                          <!--卖家信用-->
                          
                             
                          <div class="product_item_title" style="width:15%;"><asp:Label ID="Label1" runat="server" Text='<%# "<script type=text/javascript>displayStar("+Eval("SalerCrediet")+")</script>"%>'></asp:Label></div>
                         </div>
                       </ItemTemplate>                   
                 </asp:DataList>
                 </ContentTemplate>    
                   <Triggers>
                       <asp:AsyncPostBackTrigger ControlID="Sort_Type" EventName="SelectedIndexChanged" />
                   </Triggers>
               </asp:UpdatePanel>
             </div>
             <!--商品比较下栏-->
             <div id="Product_Compare_Bottom"></div>
             <!--商品分页栏栏-->
             <div id="Product_Page">
               <div style="padding:10px;">
                  <asp:Label ID="PagePanel" runat="server" />
               </div> 
             </div>
             
          </div>
          </div>
          <!--侧栏-->
         <div id="Side_Bar">
             <div  class="SideBox">
                 <div class="title"><b>搜索店铺</b></div>
                    <ul style="list-style-type:none; padding:5px">
                        <li>
                            <label for="SideSearchShopName">
                                <span style="color: #222222">店铺名:</span></label>
                             <asp:TextBox ID="SearchShopName" runat="server" Width="60%" />
                        </li>
                        <li style="padding-top:3px">
                            <label for="SideSearchSellerName">
                                <span style="color: #222222">店长名:</span></label>
                            <asp:TextBox ID="SearchSalerName" runat="server" Width="60%" />
                        </li>
                        <li style="padding-top:3px">
                            <label for="SideSearchShopMajor">
                                <span style="color: #222222">主营:</span></label>
                            <asp:TextBox ID="SearchMainItem" runat="server" Width="60%" />
                        </li>
                        <li style="padding-top:3px">
                            <label for="SideSearchShopMajor">
                                <span style="color: #222222">所在地:</span></label>
                            <asp:TextBox ID="SearchShopPlace" runat="server" Width="60%" />
                        </li>
                        <li style="text-align:center;">
                            <asp:Button Text="搜索" ID="SearchShopButton" runat="server" OnClick="SearchShopButton_Click" />
                        </li>
                    </ul>
                 </div>
                 <div  class="SideBox">
                     <div class="title"><b>店铺类目</b></div>
                        <asp:Literal ID="ShowShopClassList_Literal" runat="server" />
                 </div> 
             </div>
         </div>
</div>

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetCategoryListByParentID" TypeName="HoWave.Web.Shop_Class">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="ParentID" QueryStringField="ParentID" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="H_SearchName" runat="server" />
    <asp:HiddenField ID="H_CurrentPage" runat="server" />   
    <asp:HiddenField ID="H_ClassID" runat="server" />
    
    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" SelectMethod="GetClassMapPathByParentID"
        TypeName="HoWave.Web.Shop_Class" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="ParentID" QueryStringField="classid"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetAllParentClass"   TypeName="HoWave.Web.Shop_Class"/>
</form>
</body>
</html>