<%@ Control Language="VB" Inherits="WanerSoft.UI.Web.Controls.Book.Search" %>
<%@ Import Namespace="WanerSoft" %>
<%@ Register TagPrefix="Ws" Namespace="WanerSoft.Common" Assembly="WanerSoft.Factory"%>
<%@Register TagPrefix="Webdiyer" Namespace="Wuqi.Webdiyer" Assembly="aspnetpager"%>
<%@ Register TagPrefix="Ws" TagName="Header" Src="../Common/Header.ascx" %>
<%@ Register TagPrefix="Ws" TagName="Menu" Src="../Common/Menu.ascx" %>
<%@ Register TagPrefix="Ws" TagName="Footer" Src="../Common/Footer.ascx" %>
<Ws:Header id="Header" PageTitle="书籍搜索" StyleSheet="Book/Search" Runat="Server" />
<Ws:Menu id="Menu" Runat="Server" />

<div id="Content">
  <div id="CrTitle">
      <div id="CrtLeft">检索关键字 [ <font color=red><%
	  Select Case Common.Request.Sift("SearchClass", "int", 0)
	      Case 0
		      Response.Write("书籍作者")
		  Case 1
		      Response.Write("书籍名称")  
		  Case 2
		      Response.Write("书籍主角") 
	   End Select  
	  %></font> - <font color=red><%=Common.Strings.Sql(Common.Request.Sift("SearchKey", "str", ""), "str", "")%></font> ] [ 按最新书籍排序 ]</div>
	  <div id="CrtRight">
	  <form action="/Book/Search.aspx" method="post" name="SearchFromB" Class="SearchCss" onSubmit="if(SearchKey.value=='' || SearchKey.value=='请输入关键字'){alert('请输入搜索内容!');return false;}">
	 <SELECT name="SearchClass" id="SearchClass" size="1">
                 <option value="0">按书籍作者</option>
                <option value="1" selected>按书籍名称</option>
                <option value="2">按书籍主角</option>
    </SELECT>&nbsp;
	   <input name="SearchKey" id="SearchKey" value="请输入关键字" type="text" size="15" class="inputout" onfocus="this.className='inputover';this.focus();if(this.value=='请输入关键字'){this.value='';}" onblur="this.className='inputout';if(this.value==''){this.value='请输入关键字';}" style="height:17px;" />&nbsp;<input name="SeaButton" type="image" ID="SeaButton" src="/Skin/Default/Images/Search.jpg" align="absmiddle" style="border:0;" />
	  </form>
	   </div>
   </div>
 <asp:Repeater id="ListData" runat="server" EnableViewState="false">
<ItemTemplate>
  <div id="CListTitle"><a href="<%#ReUrl(DataBinder.Eval(Container.DataItem, "id"),InfoUrl.BookUrlR,InfoUrl.BookUrl) %>" target="_blank"><b><%# DataBinder.Eval(Container.DataItem,"booktitle") %></b></a>  [ <%# IIF(DataBinder.Eval(Container.DataItem, "bookvip"),"<a href="""+ReUrl(DataBinder.Eval(Container.DataItem, "id"),InfoUrl.BookVipUrlR,InfoUrl.BookVipUrl) +"""><font color=red>vip作品</font></a> | ","")%><a href="<%#ReUrl(DataBinder.Eval(Container.DataItem, "id"),InfoUrl.AuthorBookIDUrlR,InfoUrl.AuthorBookIDUrl)%>"><%# DataBinder.Eval(Container.DataItem,"bookwriter") %></a> | <a href="<%#ReUrl(DataBinder.Eval(Container.DataItem,"tclassid"),InfoUrl.BookTclassUrlR,InfoUrl.BookTclassUrl)%>"><%# DataBinder.Eval(Container.DataItem,"tclass") %></a> <a href="<%#ReUrl(DataBinder.Eval(Container.DataItem,"nclassid"),InfoUrl.BookNclassUrlR,InfoUrl.BookNclassUrl)%>" target="_blank"><%# DataBinder.Eval(Container.DataItem,"nclass") %></a> | 最新章节 >>> <a href="<%#ChapterUrl(DataBinder.Eval(Container.DataItem,"bookhtml"),DataBinder.Eval(Container.DataItem,"id"),DataBinder.Eval(Container.DataItem,"bookupdateid"))%>" target="_blank"><%# DataBinder.Eval(Container.DataItem,"bookupdatetitle") %></a> | <%# DataBinder.Eval(Container.DataItem,"bookupdatetime","{0:M}") %> 更新 ]</div>
    <div id="CListText"><%#Common.Strings.StrLeft(Common.Strings.NoHtmlAll(Common.Strings.HtmlDecodeTxt(DataBinder.Eval(Container.DataItem,"booksum"))),430) %>...</div>
</ItemTemplate>
</asp:Repeater>
  <Ws:Form id="BookListPage" Runat="Server" CssClass="LoginCss">
    <div id="CrListPage">
  <input name="hidden" type="hidden" id="WsKeyWord" runat=server><Webdiyer:AspNetPager runat="server" id="pager" OnPageChanged="ChangePage" HorizontalAlign="right" PagingButtonSpacing="5" Height=30 SubmitButtonStyle="border:1px solid #000066;height:20px;width:30px" InputBoxStyle="border:1px #0000FF solid;text-align:center" SubmitButtonText="GO" NumericButtonCount="5" NumericButtonTextFormatString="[{0}]" ShowCustomInfoSection="left" ShowInputBox="Always" Width="760" CssClass="mypager" TextBeforeInputBox=" 转到第 " AlwaysShow="false" TextAfterInputBox=" 页 "/>
  </div>
    </Ws:Form>
</div>
<Ws:Footer id="Footer" Runat="Server" />