<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="search.aspx.cs" Inherits="search" Title="星欣书城" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table>
        <tr>
            <td align="right">
    <asp:Label ID="Label1" runat="server" Text="输入书名查询图书" Width="119px"></asp:Label></td>
            <td style="width: 100px">
    <asp:TextBox ID="bkName" runat="server" BackColor="White"></asp:TextBox></td>
            <td style="width: 111px">
                <asp:ImageButton ID="ImageButton3" runat="server" Height="23px" ImageUrl="~/images/button.jpg"
                    Width="73px" OnClick="ImageButton3_Click"/></td>
        </tr>
    </table>
    <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServicePath="Search.asmx"
        TargetControlID="bkName" MinimumPrefixLength="1" ServiceMethod="SearchList" CompletionInterval="100" CompletionSetCount="3">
    </cc1:AutoCompleteExtender>
    <div style="width: 328px; height: 69px">
        <asp:FormView ID="fvOrder" runat="server">
            <ItemTemplate>
                <table style="width: 300px; height: 140px">
                    <tr align="left">
                        <td valign="top">
                            &nbsp;<asp:Image ID="ImageButton1" runat="server" ImageUrl='<%# Eval("book_image") %>' /></td>
                        <td style="word-break: keep-all; width: 167px;" valign="top">
                            【书名：】<asp:Label ID="Label1" runat="server" Style="color: #0033cc;" Text='<%# Eval("book_name") %>'></asp:Label><br />
                            【上架时间：】<asp:Label ID="Label2" runat="server" Style="color: #0033cc;" Text='<%# Eval("inTime") %>'></asp:Label><br />
                            【原价：】<asp:Label ID="Label4" runat="server" Style="color: #0033cc;" Text='<%# Eval("oldprice") %>'></asp:Label><br />
                            【现价：】<asp:Label ID="Label3" runat="server" Style="color: #0033cc;" Text='<%# Eval("nowprice") %>'></asp:Label><br />
                            【库存：】<asp:Label ID="Label5" runat="server" Style="color: #0033cc;" Text='<%# Eval("book_number") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="word-break: break-all" valign="top">
                            <div style="width: 299px; height: 20px">
                                <asp:HyperLink ID="ImageButton2" runat="server" ImageUrl="~/images/add-to-cart.gif"
                                    NavigateUrl='<%#"~/ordercar.aspx?id="+Eval("book_ID")%>'></asp:HyperLink>
                                &nbsp; &nbsp; &nbsp;&nbsp; <a href="orderbook.aspx?id=<%#Eval("book_ID")%> ">评论本书</a></div>
                            【本书简介：】<br />
                            <%# Eval("book_introduce") %>
                        </td>
                    </tr>
                </table>
                .............................................................................
            </ItemTemplate>
        </asp:FormView>
    </div>
    <div align="center" style="width: 360px; height: 12px">
        <asp:Label ID="res" runat="server" Width="256px"></asp:Label></div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
</asp:Content>

