<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Guestbook.aspx.cs" Inherits="Guestbook" %>

<%@ Register Src="control/serviceBottom.ascx" TagName="serviceBottom" TagPrefix="uc6" %>
<%@ Register Src="control/service.ascx" TagName="service" TagPrefix="uc5" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="control/mainTop.ascx" TagName="mainTop" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>网络在中国--提供专业网站建设、网站推广、域名注册、多媒体开发、软件开发，专业协同OA供应商"</title>
    <style type="text/css">
<!--
.form-bd {
	font-family: "Tahoma";
	font-size: 11px;
}
-->
</style>
    <link href="css/body.css" rel="stylesheet" type="text/css">
    <link href="css/Index.css" rel="stylesheet" type="text/css">
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <link href="css/guestbook.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <!-- ImageReady Slices (Default.jpg) -->
            <table id="__01" border="0" cellpadding="0" cellspacing="0" align="center">
                <tr>
                    <td valign="top">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top" style="width: 850px">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td colspan="2" style="height: 226px">
                                    <uc3:mainTop ID="MainTop1" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" align="center">
                                    <table border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
                                        style="width: 845px;">
                                        <tr>
                                            <td align="left" valign="top" style="height: 468px; width: 662px;">
                                                <table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" class="b-g-t-2"
                                                    width="100%">
                                                    <tr>
                                                        <td class="td1" valign="top">
                                                            <table width="800" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td align="right" class="fontgray21" style="height: 26px; width: 800px;">
                                                                        <a href="Default.aspx" class="lgray-1">首页</a>&nbsp;<span class="f10">&gt;</span>&nbsp;<a
                                                                            href="guestbook.aspx" class="lgray-1">客户留言</a></td>
                                                                </tr>
                                                            </table>
                                                            <table class="ntb" cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
                                                                <tbody>
                                                                    <tr>
                                                                        <td nowrap width="50%" style="height: 26px" align="left">
                                                                            <font color="#FFFFFF">|&nbsp;<span style="color: #000000"> &gt; 主题列表 </span></font>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                <ContentTemplate>
                                                                    <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" height="20" width="80%">
                                                                        <tbody>
                                                                            <tr>
                                                                                <td class="pad10L" style="width: 480px">
                                                                                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                                                                        CellPadding="4" DataKeyNames="Ariticleid" Font-Names="Verdana" Font-Size="Small"
                                                                                        ForeColor="#333333" GridLines="None" OnPageIndexChanging="GridView1_OnPageIndexChanged"
                                                                                        PageSize="8" ShowFooter="True" Width="690px">
                                                                                        <Columns>
                                                                                            <asp:BoundField DataField="hits" HeaderText="点击">
                                                                                                <HeaderStyle HorizontalAlign="Left" Width="5%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:BoundField DataField="recallhits" HeaderText="回复">
                                                                                                <HeaderStyle HorizontalAlign="Left" Width="5%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:TemplateField HeaderText="标题">
                                                                                                <HeaderStyle HorizontalAlign="Left" Width="55%" />
                                                                                                <ItemTemplate>
                                                                                                    <a href='BookDetails.aspx?id=<%# Eval("Ariticleid") %>'>
                                                                                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("title") %>'></asp:Label>
                                                                                                    </a>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                            <asp:BoundField DataField="username" HeaderText="作者">
                                                                                                <HeaderStyle HorizontalAlign="Left" Width="10%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:TemplateField HeaderText="最后回复">
                                                                                                <HeaderStyle HorizontalAlign="Left" Width="25%" />
                                                                                                <ItemTemplate>
                                                                                                    <%# Eval("lasttime")%>
                                                                                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("lastuser") %>'></asp:Label>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                        </Columns>
                                                                                        <RowStyle BackColor="#EFF3FB" />
                                                                                        <EditRowStyle BackColor="#2461BF" />
                                                                                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                                                        <AlternatingRowStyle BackColor="White" />
                                                                                        <PagerSettings FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页" />
                                                                                    </asp:GridView>
                                                                                    <table align="center" border="0" cellpadding="3" cellspacing="1" class="f9" width="750">
                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td class="td-tit-blue-1" nowap="" valign="top" style="width: 68px" >
                                                                                                    标 题:</td>
                                                                                                <td  class="td-tit-blue-1">                                                                                                 
                                                                                                        <asp:TextBox ID="txtTitle" runat="server" Width="390px"></asp:TextBox>
                                                                                                        <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ErrorMessage="不能为空" ControlToValidate="txtTitle"
                                                                                                            Display="Dynamic"></asp:RequiredFieldValidator><a name="sub"></a></label></td>
                                                                                            </tr>
                                                                                            <tr style="color: #000000">
                                                                                                <td class="td-tit-blue-1" nowap="" valign="top" style="width: 68px">
                                                                                                    内 容:</td>
                                                                                                <td class="td-tit-blue-1">
                                                                                                    <asp:TextBox ID="txtContent" runat="server" Rows="6" TextMode="MultiLine" Width="390px"></asp:TextBox>
                                                                                                    <asp:RequiredFieldValidator ID="rfvContent" runat="server" ControlToValidate="txtContent"
                                                                                                        Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                                                                                            </tr>                                                                                          
                                                                                            <tr>
                                                                                                <td class="td-tit-blue-1" nowap="" style="width: 68px">
                                                                                                    用户名:</td>
                                                                                                <td class="td-tit-blue-1">
                                                                                                    <asp:TextBox ID="txtUserName" runat="server" Width="240px">匿名</asp:TextBox>
                                                                                                    <asp:RequiredFieldValidator ID="rfvUserName" runat="server" ControlToValidate="txtUserName"
                                                                                                        Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td class="td-tit-blue-1" nowap="" style="width: 68px">
                                                                                                    联系方式:</td>
                                                                                                <td class="td-tit-blue-1">
                                                                                                    <asp:TextBox ID="txtPhone" runat="server" Width="240px"></asp:TextBox>
                                                                                                    <asp:RequiredFieldValidator ID="rfvPhone" runat="server" ControlToValidate="txtPhone"
                                                                                                        Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td class="td-tit-blue-1" nowap="" style="width: 68px; height: 31px;">
                                                                                                    电子邮箱:</td>
                                                                                                <td class="td-tit-blue-1" style="height: 31px">
                                                                                                    <asp:TextBox ID="txtEmail" runat="server" Width="240px"></asp:TextBox>
                                                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                                                                                        Display="Dynamic" ErrorMessage="邮箱格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td class="td-tit-blue-1" align="left" colspan="3" valign="center">
                                                                                                    <div id="yzm">
                                                                                                    </div>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td class="td-tit-blue-1" valign="top" style="width: 68px">
                                                                                                </td>
                                                                                                <td class="td-tit-blue-1">
                                                                                                    &nbsp;
                                                                                                    <asp:Button ID="ButTure" runat="server" OnClick="ButTure_Click" Text="发表评论" />
                                                                                                    <asp:Label ID="lblMessage" runat="server"></asp:Label></td>
                                                                                                <td class="td-tit-blue-1">
                                                                                                    &nbsp;</td>
                                                                                            </tr>
                                                                                            <tr align="left">
                                                                                                <td class="td-tit-blue-1" colspan="3" valign="top" style="height: 24px">
                                                                                                </td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                    </tr>
                                                </table>
                                                &nbsp;<br>
                                                <br>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td align="right">
                        &nbsp;</td>
                </tr>
            </table>
        </div>
        <uc6:serviceBottom ID="ServiceBottom1" runat="server" />
    </form>
</body>
</html>
