<%@ Control Language="C#" AutoEventWireup="true" CodeFile="orderbook.ascx.cs" Inherits="usercontrol_orderbook" %>

<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  valign=top style="word-break:keep-all; width: 167px;">
                    【书名：】<asp:Label ID="Label1" runat="server" Text='<%# Eval("book_name") %>' style="color: #0033cc;" ></asp:Label><br />
                    【上架时间：】<asp:Label ID="Label2" runat="server" Text='<%# Eval("inTime") %>' style="color: #0033cc;"></asp:Label><br />
                    【原价：】<asp:Label ID="Label4" runat="server" Text='<%# Eval("oldprice") %>' style="color: #0033cc;"></asp:Label><br />
                    【现价：】<asp:Label ID="Label3" runat="server" Text='<%# Eval("nowprice") %>' style="color: #0033cc;"></asp:Label><br />
                    【库存：】<asp:Label ID="Label5" runat="server" Text='<%# Eval("book_number") %>' style="color: #0033cc; "></asp:Label></td>
            </tr>
            
            <tr>
               <td  valign=top colspan=2 style="word-break:break-all"> 
        <div style="width: 299px; height: 20px">
            <asp:HyperLink ID="ImageButton2" runat="server" NavigateUrl='<%#"~/ordercar.aspx?id="+Eval("book_ID")%>' ImageUrl="~/images/add-to-cart.gif" />
            &nbsp; &nbsp; &nbsp;&nbsp; <a href="#ping">评论本书</a></div>
    【本书简介：】<br /><%# Eval("book_introduce") %> </td>
            </tr>
        </table>
        .............................................................................
    </ItemTemplate>
</asp:FormView>

<asp:DataList ID="msg" runat="server" CellPadding="4" ForeColor="#333333">
    <ItemTemplate>
        <table style="width: 368px; height: 20px">
            <tr>
                <td  valign=top style="text-align: left;" background="images/firstlog.jpg">
                    <asp:Label ID="Label3" runat="server" Text="【评论时间：】" Width="118px" Height="1px"></asp:Label><asp:Label
                        ID="Label2" runat="server" Width="192px" Text='<%# Eval("bbsTime") %>' Height="19px"></asp:Label></td>
            </tr>
            <tr>
                <td  valign=top style="word-break:break-all">
                  【类容：】&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%# Eval("bbsText") %>
                  
                  
                    
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
    <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
</asp:DataList><table style="width: 315px; height: 69px">
    <tr>
        <td  valign=top align="center">
<a id="ping"></a>
    <textarea id="saymsg" runat="server" style="width: 319px; height: 58px"></textarea><br />
    <input id="Reset1" style="width: 65px" type="reset" value="重写" />
   <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提交"
        Width="69px" OnClientClick="return msg()" />
        </td>
    </tr>
</table>
<br />
    
<script type="text/javascript">
<!--
function msg()
{
if(document.getElementById("<%=saymsg.ClientID%>").value=="")
{
 alert("您还没有输入评论!");
 document.getElementById("<%=saymsg.ClientID%>").focus();
 return false;
}
if(document.getElementById("<%=saymsg.ClientID%>").value.length>100)
{
 alert("评论不能大于100个字！");
 document.getElementById("<%=saymsg.ClientID%>").focus();
 return false;
}

}
-->
</script>