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

<!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>无标题页</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 runat ="server" id ="table_GuestbookList">
            <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>
            <!--这里添加内容 -->
            <div>  <asp:Label ID="lbSms" runat="server"></asp:Label></div>
            				    <asp:GridView ID="GridView1" runat="server" 
            onrowdatabound="GridView1_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                            onrowediting="GridView1_RowEditing" 
                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="industry" HeaderText="主管部门" ReadOnly="True" />
                         <asp:BoundField DataField="department" 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" />
                            <asp:CommandField EditText="回复" HeaderText="操作" ShowEditButton="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  ">
                                          &nbsp;</td>
                  <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
              </tr>
          </table>
</div> 
<!--栏目结束 -->
               
<!--栏目开始 -->
<div runat ="server" id ="table_EditLiuyan" visible="False">
                <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'); width :497px; 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>
                        <!--这里添加内容 -->
                        <table  style =" width :700px" border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                <tr>
                    <td class ="tabletd_right ">
                        证件号：</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbZhengjian" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        留言人：</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbName" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        主管部门：</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbIndustry" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        单位：</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbDepartment" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        留言时间：</td>
                    <td class ="tabletd_left ">
                        <asp:Label ID="lbLiuyanTime" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        留言内容：</td>
                    <td class ="tabletd_left ">
                        <asp:Label ID="lbLiuyanNeirong" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
        <asp:Label ID="Label3" runat="server" Text="回复内容："></asp:Label>
                    </td>
                    <td class ="tabletd_left">
        <asp:TextBox ID="tbEditNeirong" runat="server" Width="500px" Rows="5" TextMode="MultiLine"></asp:TextBox>
                          <span  style =" color :Red ">（必填）</span><div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                              ControlToValidate="tbEditNeirong" Display="Dynamic" 
                            ErrorMessage="内容不能为空。" ValidationGroup="EditJilu" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="tbEditNeirong" Display="Dynamic" ErrorMessage="不能超过300个字" 
                            ValidationExpression="^[^%&gt;&lt;&amp;=]{0,300}$" ValidationGroup="EditJilu" 
                                ForeColor="Red"></asp:RegularExpressionValidator></div> 
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
        <asp:Label ID="lbEditId" runat="server" Visible="False"></asp:Label>
                    </td>
                    <td class ="tabletd_left ">
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="提交回复" 
                            ValidationGroup="EditJilu" />
                        <asp:CheckBox ID="cbSms" runat="server" Text="短信通知" Visible="False" />
                    </td>
                </tr>
            </table>
                     </div>    
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>

