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

<!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>                        选择部门：<asp:DropDownList 
                            ID="ddlDepartment" runat="server" AutoPostBack="True" 
                            ontextchanged="ddlDepartment_TextChanged">
                        </asp:DropDownList>
                      <asp:Label ID="lbSms" runat="server"></asp:Label>
                  </div>
<div id="GuestbookList" runat ="server" >
                        
		<div>	    <asp:GridView ID="GridView1" runat="server" 
            onrowdatabound="GridView1_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                onrowcreated="GridView1_RowCreated" 
                onselectedindexchanging="GridView1_SelectedIndexChanging">
            <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="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 HeaderText="回复" SelectText="回复" ShowSelectButton="True" />
                        </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView></div>	
  <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 id ="EditLiuyan" runat ="server" visible ="false" style =" margin-top :20px">
                        <!--这里添加内容 -->
                        <table  style =" width :700px" border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                <tr>
                    <td style ="width:80px"  class ="tabletd_right ">
                        人员编号</td>
                    <td class ="tabletd_left ">
                        <asp:Label ID="lbZhengjian" runat="server"></asp:Label>
                                                    </td>
                    <td    class ="tabletd_right ">
                        姓名</td>
                    <td class ="tabletd_left ">
                        <asp:Label ID="lbName" runat="server"></asp:Label>
                                </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        部门</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbDepartment" runat="server"></asp:Label>
                                                    </td>
                    <td    class ="tabletd_right ">
                        留言时间</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbLiuyanTime" runat="server"></asp:Label>
                                </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        留言内容</td>
                    <td class ="tabletd_left " colspan="3">
                        <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" colspan="3">
        <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"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="tbEditNeirong" Display="Dynamic" ErrorMessage="不能超过300个字" 
                            ValidationExpression="^[\S\s]{0,300}$" ValidationGroup="EditJilu"></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 " colspan="3">
        <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>
