<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_guestbook.aspx.cs" Inherits="Web.admin.login_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>无标题页</title>
    <link href="../css/admincss/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">留言管理</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  
  <tr>
    <td style ="background :url(../css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >
 
<!--  一组内容模块开始   --> 
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0" id="table_liuyan" runat ="server" >
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"   border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  留言列表</div><div style ="float :right;  padding-right :10px">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="tbNum" Display="Dynamic" ErrorMessage="行数不能为空。" 
                                                ValidationGroup="RowNum"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbNum" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ValidationGroup="RowNum"></asp:RegularExpressionValidator>
                                            每页显示行数：<asp:TextBox ID="tbNum" runat="server" 
                    Width="44px" MaxLength="4" ValidationGroup="RowNum"></asp:TextBox>
                &nbsp;
                <asp:Button ID="btnQuery" runat="server" onclick="btnQuery_Click" Text="确定" ValidationGroup="RowNum" /></div> 
                </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        <asp:GridView ID="GridView1" runat="server" onrowediting="GridView1_RowEditing" 
            onrowdatabound="GridView1_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" cellspacing="1" 
                AutoGenerateColumns="False" onrowcreated="GridView1_RowCreated">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
                                    <asp:TemplateField> 
               <HeaderTemplate>  <asp:CheckBox ID="CheckBox2" Text ="全选" runat="server" AutoPostBack="True" 
                OnCheckedChanged="CheckBox2_CheckedChanged"  />    </HeaderTemplate>        
               <ItemTemplate><asp:CheckBox ID="CheckBox1" runat="server" /></ItemTemplate>               
               </asp:TemplateField>
                <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 EditText="回复" HeaderText="回复" ShowEditButton="True" />
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
        </td>
      </tr>
      <tr><td  >
          <table cellpadding="0" cellspacing="0" style ="width :100%">
              <tr>
                  <td style =" padding-left :5px;  padding-top:5px; text-align :left  ">
                      <asp:Button ID="btDelAll" runat="server" onclick="btDelAll_Click" 
                              Text="批量删除" Visible="False" />
                      <asp:Label ID="lbSms" runat="server"></asp:Label>
                  </td>
                  <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
              </tr>
          </table>
          </td></tr>
    </table>
<!-- 一组内容模块结束 -->
        
<!--  一组内容模块开始   --> 
            <table class ="tablezong"  border="0"   cellpadding="0" cellspacing="0" id="table_EditLiuyan" runat ="server"  visible ="false" >
      <tr>
        <td style ="height :40px">
        <table class="tablebiaoti"   border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td ><div class ="biaotileft "> 回复留言</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td  ><div style ="text-align :left ">
            <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></td>
      </tr>
    </table>
<!-- 一组内容模块结束 --> 
   
    </td>
    <td  style =" background-image:url(../css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
    <td  class ="buttom_bg_left "></td>
    <td class ="buttom_bg_center " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
