<%@ page language="C#" autoeventwireup="true" inherits="Shop_Search_Search_Shop, HoWaveVGO" title="店铺搜索" enableEventValidation="false" %>
<%@ Register Src="../UserControls/ShopDetailSearch.ascx" TagName="ShopDetailSearch"  TagPrefix="uc2" %>
<html>
<head>
<title></title>
</head>
<body>
<form id="form_1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"/>
<link type="text/css" href="../../skin/css/browse/ShopCategory.css" rel="stylesheet" />
<script language="javascript" type="text/javascript" src="../Js/howave_time.js"></script> 
<div id="Category_Content" style="left: 0px; top: 0px">

    <div id="Catergor_Navgitor">
      <hl:ClassMapPath id="ClassMapPath1" 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="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" OnItemDataBound="DataList1_ItemDataBound">
                       <ItemTemplate>
                         <div class="Product_Item">  
                          <!--店标-->                   
                          <div class="product_item_title" style="width:15%;">
                              <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"../Shop1/MyShop.aspx?ShopID="+ Eval("ShopID") %>' runat="server" >
                                 <asp:Image height="60px" width="100px"  ID="ShopImage" runat="server"  ImageUrl='<%#"../Shop/"+Eval("ShopImageUrl") %>'  />
                              </asp:HyperLink>
                          </div>
                          <!--店名--> 
                          <div class="product_item_title" style="width:35%;">                    
                               <asp:HyperLink ID="ShopName" Text='<%#Eval("ShopName") %>' NavigateUrl='<%#"../Shop1/MyShop.aspx?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='<%#"../Shop1/Shop_Review.aspx?UserID="+ Eval("ShopOwnerID") %>' runat="server" />
                                
                               <asp:HyperLink ID="QQLink" runat="server" NavigateUrl='<%# "http://wpa.qq.com/msgrd?V=1&Uin="+Eval("OICQ")+"&amp;Site="+Eval("ShopOwnerName")+"&amp;Menu=yes" %>' Target="_blank">
                                 <asp:Image  ID="QQImage" ImageUrl='<%# Eval("OICQ")%>' runat="server" />
                              </asp:HyperLink> 
                              <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:HyperLink ID="shop_saler_credit" runat="server"  Text='<%# Eval("SalerCrediet") %>'/></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="float:right; padding:10px;">
                  <asp:Literal ID="CurrentPage" runat="server" />
                  <asp:HyperLink ID="FirstPage" Text="首页" runat="server" />
                  <asp:HyperLink ID="PrevPage"  runat="server"><img alt="" src="../Images/pre_page.gif" /></asp:HyperLink>
                  <asp:HyperLink ID="NextPage"  runat="server"><img  alt="" src="../Images/next_page.gif" /></asp:HyperLink>
                  <asp:HyperLink ID="LastPage" Text="尾页" runat="server" />
                  到第<asp:TextBox ID="GoToPage" Width="20px" runat="server" />页<asp:Button ID="GoPageBtn" Text="确定" runat="server" OnClick="GoToPageBtn_Click" />
               </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">主&nbsp;&nbsp;&nbsp;&nbsp;营:</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_Click1" />
                        </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="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="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="Shop_Class"/>
</form>
</body>
</html>





