<%@ Page Title="" Language="C#" MasterPageFile="~/kbase/kbase.Master" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="Kbase.kbase.search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

     <asp:HiddenField runat="server" ID="hf_key" ClientIDMode="Static" />


    <div class="cat">
                                    
<div  style="display:flex ; margin:10px;">
     
<input  type="text" id="txt_key2"    style="border-radius:0px; "  class="form-control" />  
 &nbsp;
    <a href="###"  onclick="_s();"  class="btn btn-default"  id="searchBtn" >搜索</a>
 
	 
   </div>


                     <script>
                         function _s()
                         {
                             var  _v=$('#txt_key2').val(); 
                             window.location='search.aspx?key='+_v;
                         } 

                         $(document).ready(function () {
                             $("body").keydown(function (e) {
                                 var curKey = e.which;
                                 if (curKey == 13) {
                                     document.getElementById("searchBtn").click();
                                     return false;
                                 }
                             });
                         });

                     </script>
    </div>



      <script>

          var key=$("#hf_key").val();
          $("#txt_key").val(key);
          $("#txt_key2").val(key);
   </script>



<div  style="border:solid 0px #ccc; margin:10px 10px 10px -10px; border-radius:0px;  " class="alert" >
    共搜索：<asp:Label runat="server" ID="lbl_count"></asp:Label>个 
  </div>


    

 
 



        <asp:ListView runat="server" ID="lv_lists" enableviewstate=false>

            <ItemTemplate>
         

       <p>
           <a href="default.aspx?id=-<%#Eval("id") %>&title=<%#Eval("title") %>"><%#Eval("title") %></a>
       </p>




        </ItemTemplate>

        </asp:ListView>

   
 
 
      




  <div style="clear:both"></div>

     

    

<div class=" text-center" style="margin:20px">
 <asp:DataPager ID="DataPager1"   class="btn-group btn-group-sm" EnableViewState="false"
      QueryStringField="Page" PagedControlID="lv_lists" runat="server" PageSize=20>
 <Fields>
           
     
            <asp:NextPreviousPagerField 
                PreviousPageText="<" 
                FirstPageText="|<" 
                ShowPreviousPageButton="true"
                ShowFirstPageButton="true" 
                ShowNextPageButton="false" 
                ShowLastPageButton="false"
                ButtonCssClass="btn btn-default" 
                RenderNonBreakingSpacesBetweenControls="false" 
                RenderDisabledButtonsAsLabels="false" />

            <asp:NumericPagerField 
                ButtonType="Link" 
                CurrentPageLabelCssClass="btn btn-primary disabled"  
                RenderNonBreakingSpacesBetweenControls="false"
                NumericButtonCssClass="btn btn-default" 
                ButtonCount="5" 
                NextPageText="..." 
                NextPreviousButtonCssClass="btn btn-default" />
            
           <asp:NextPreviousPagerField 
               NextPageText=">" 
               LastPageText=">|" 
               ShowNextPageButton="true"
               ShowLastPageButton="false" 
               ShowPreviousPageButton="false" 
               ShowFirstPageButton="false"
               ButtonCssClass="btn btn-default" 
               RenderNonBreakingSpacesBetweenControls="false" 
               RenderDisabledButtonsAsLabels="false"/>
      

  </Fields> 
</asp:DataPager> 
</div>


    

    

     


</asp:Content>
