<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="guestbook.aspx.cs" Inherits="Web.yw.guestbook" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('/css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
            <td class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	留言管理
                </td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
            
<!--栏目开始 -->
<div id="GuestbookList" runat ="server" >

            <!--这里添加内容 -->
            <asp:GridView ID="GridView1" runat="server" 
            onrowdatabound="GridView1_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                onrowcreated="GridView1_RowCreated">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                        <Columns>
                         <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                         <asp:BoundField DataField="留言人" HeaderText="留言人姓名" ReadOnly="True" />
                         <asp:BoundField DataField="留言时间" HeaderText="留言时间" ReadOnly="True" />
                         <asp:BoundField DataField="留言内容" HeaderText="留言内容" ReadOnly="True" />
                         <asp:BoundField DataField="回复内容" HeaderText="回复内容" ReadOnly="True" />
                         <asp:BoundField DataField="回复时间" HeaderText="回复时间" ReadOnly="True" />
                         <asp:BoundField DataField="回复人" HeaderText="回复人姓名" ReadOnly="True" />
                        </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
            <table cellpadding="0" cellspacing="0" style ="width :100%">
              <tr>
                  <td style =" padding-left :5px; text-align :left  ">
                                   
                  </td>
                  <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
              </tr>
          </table>
</div>  

<!--栏目结束 -->
               
<!--栏目开始 -->

                    <div style =" margin-top :20px">    <!--这里添加内容 -->
                         <asp:TextBox ID="TextBox1" runat="server" Width="500px" Rows="5" TextMode="MultiLine"></asp:TextBox>
        &nbsp;
        <asp:Button ID="btAddGuestbook" runat="server" onclick="btAddGuestbook_Click" Text="发表留言" 
                ValidationGroup="AddJilu" />
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                              ControlToValidate="TextBox1" Display="Dynamic" 
                            ErrorMessage="留言内容不能为空。" ValidationGroup="AddJilu" 
                Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" 
                runat="server" ControlToValidate="TextBox1" Display="Dynamic" 
                ErrorMessage="不能超过300个字" Font-Size="Small" 
                ValidationExpression="^[\S\s]{0,300}$" ValidationGroup="AddJilu" 
                    ForeColor="Red"></asp:RegularExpressionValidator>
				  </div> 
                        
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>