<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ShowBookDetail.aspx.cs" Inherits="ShowBookDetail" Title="Untitled Page" %>

<%@ Register Src="Controls/BooksVisited.ascx" TagName="BooksVisited" TagPrefix="uc2" %>

<%@ Register Src="Controls/OtherBooksBoughtByTheBuyer.ascx" TagName="OtherBooksBoughtByTheBuyer"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" Runat="Server">
<div style="float:left;">
    <uc1:OtherBooksBoughtByTheBuyer ID="OtherBooksBoughtByTheBuyer1" runat="server"/>

    <uc2:BooksVisited ID="BooksVisited1" runat="server" />
    </div>
    <asp:FormView ID="fvBookDetail" runat="server">
        <ItemTemplate>
        <div id="BookDetail"><h5><%#Eval("BookName") %></h5> 
        <img class="ShorterBookImg" style="float:left" alt='<%#Eval("BookName") %>' src='<%#Eval("ImgPath") %>' />
        <p class="BookInfo"> 
<span class="title">作者：</span><%#Eval("Author") %><br />
<span class="title">出版社：</span><%#Eval("Press") %><br />
<span class="title">ISBN：</span><%#Eval("ISBN") %> <br />
<span class="title">出版日期：</span><%#Eval("DatePressed") %><br />
<span class="title">分类：</span><%#Eval("BookTypeName") %><br />
<span class="title">人气:</span><%#Eval("VisitedCount") %> <br />
<span class="title">上架时间:</span><%#WebTool.GetShortDate(Eval("DateAdded").ToString())%> <br />
<span class="title">市场价：</span><span class="OriginalPrice"><%# WebTool.FormatMoney(Eval("OriginalPrice")) %></span>  <span class="title"> 会员价：</span><span class="SellPrice"><%#WebTool.FormatMoney(Eval("SellPrice")) %>(<%#Eval("SellOff") %>折)</span><br />
           <a href='AddToShoppingCart.aspx?BookID=<%#Eval("BookID") %>' target="shoppingCart"><asp:Image ID="imgBuy" runat="server" ImageUrl="~/Images/buy.jpg" /></a>
           <a href='Addtofavorites.aspx?BookID=<%#Eval("BookID") %>' target="favorites"> <img src="Images/collect.jpg" /></a>
            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/nobook.gif" Visible='<%#Convert.ToBoolean(Eval("IsNotEnoughStorage"))%>'/>
           </p>
                     
           <hr style="border:dashed 1px Black;height:1px;"/>
            <h5>内容简介</h5>
           <p class="BookDescription" style="margin:10px;">
            <%#Eval("Description") %>
            </p>
        </div>
        <div >
        
        </div>
        
        </ItemTemplate>
    </asp:FormView>
    
    <asp:Label ID="lblMsg" runat="server" Visible="false" Text="您查找的图书不存在！"></asp:Label>
</asp:Content>

