<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Admin_messageedit, App_Web_gqabgzwv" enableEventValidation="false" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!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 runat="server">
    <title>留言管理</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../Admin/css/Layer.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width:auto;">
                    <table width="100%" height="94" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="right" background="images/kehu1.jpg"><table width="671" height="94" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left" background="images/kehu.jpg"><table width="162" height="19" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td align="right" class="biaoti18">留言管理</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table>
                    <table width="100%" border="0" cellpadding="1" cellspacing="1">
                        <tr>
                            <td>
                                  <hr />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataList ID="DataList1" runat="server" Width="100%" CellPadding="0" CellSpacing="3" OnItemCommand="DataList1_ItemCommand">
                                    <ItemTemplate>
                                        <table width="100%" border="0" cellpadding="2" cellspacing="2">
                                            <tr>
                                                <td>
                                                    <asp:CheckBox ID="chkmsg" runat="server" Text=""  /><%# Eval("MsgName") %>：<%# Eval("MsgContent") %>
                                                    <asp:Label ID="lbmsg" runat="server" Visible="False" Text='<%# Eval("MessageID") %>'></asp:Label>
                                                </td>
                                            </tr>
                                            <tr style="display:none;">
                                                <td>
                                                    <asp:TextBox ID="tbxReplay" runat="server" Rows="4" TextMode="MultiLine" Width="100%" Text='<%# Eval("MsgReplayContent") %>'></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Button ID="btnReplay" runat="server" Visible="false" CommandArgument='<%# Eval("MessageID") %>' CommandName="replay" Text="提交回复" />
                                                    <asp:Button ID="btnDel" runat="server" CommandName="del" CommandArgument='<%# Eval("MessageID") %>' Text="删除" />
                                                </td>
                                            </tr>
                                          
                                        </table>
                                    </ItemTemplate>
                                    <SeparatorTemplate>
                                        <hr />
                                    </SeparatorTemplate>
                                </asp:DataList>
                                <webdiyer:aspnetpager id="AspNetPager1" runat="server" firstpagetext="首页" lastpagetext="尾页"
                                    nextpagetext="下一页" onpagechanged="AspNetPager1_PageChanged" prevpagetext="上一页"></webdiyer:aspnetpager>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnDelAll" runat="server" Text="删除当前页所有已选择项" OnClick="btnDelAll_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
