<%@ 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 style ="width :720px; height :34px;  background-image: url('../css/images/atghtj.png');	background-repeat: no-repeat;
                	background-position: left top;"><div id="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	留言管理
                      	
                	</div></td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
            
<!--栏目开始 -->
<div id="GuestbookList" runat ="server" >
            <table style ="width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
               <tr>
                    <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); height :33px; padding-left :20px">
                    <!--这里添加栏目标题 -->
                    留言列表
                    
                     &gt;&gt;</td>
                    <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                    <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                    <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                </tr>
                <tr>
                    <td height="10" colspan="4" style="font-weight:bolder;"></td>
                </tr>
            </table>
            <!--这里添加内容 -->
            <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>