<%@ page language="C#" masterpagefile="~/Manage/Main.master" autoeventwireup="true" inherits="manage_MessageList, App_Web_ch4l_m16" title="反馈列表" validaterequest="false" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" runat="Server">
    <div id="main">
        <asp:UpdatePanel ID="MsgUpdatePanel" UpdateMode="Conditional" runat="server">
            <ContentTemplate>
                <asp:Label ID="Msg" runat="server" Text="" CssClass="msg" Visible="False" EnableViewState="False"></asp:Label>
            </ContentTemplate>
        </asp:UpdatePanel>
        <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D7D7D7"
            id="mainTopTable">
            <tr>
                <td bgcolor="#ffffff" class="mainTitle" colspan="5">
                    "<asp:Label ID="MenuName" runat="server" ForeColor="Black"></asp:Label>" 反馈检索&nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" bgcolor="#ffffff">
                    是否回复
                </td>
                <td align="left" bgcolor="#ffffff">
                    <asp:DropDownList ID="IsAnswerList" runat="server">
                        <asp:ListItem Value="10">全部</asp:ListItem>
                        <asp:ListItem Value="1">已回复</asp:ListItem>
                        <asp:ListItem Value="0">未回复</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td bgcolor="#FFFFFF" align="right">
                    反馈标题/内容:
                </td>
                <td bgcolor="#FFFFFF">
                    &nbsp;<asp:TextBox ID="MessageTitleKey" runat="server" CssClass="inputText"></asp:TextBox>
                    <asp:HiddenField ID="IsSearch" runat="server" Value="0" />
                </td>
                <td bgcolor="#ffffff">
                    <asp:Button ID="SearchBt" runat="server" CssClass="inputBt" Text="反馈检索" OnClick="Search_Click"
                        ValidationGroup="MessageSearch" />
                </td>
            </tr>
        </table>
        <asp:UpdatePanel ID="MessageListUpdatePanel" UpdateMode="Conditional" runat="server"
            OnInit="MessageListUpdatePanel_Init">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="SearchBt" />
            </Triggers>
            <ContentTemplate>
                <asp:GridView ID="MessageList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    OnPageIndexChanging="MessageList_PageIndexChanging" DataKeyNames="MessageId"
                    OnRowCancelingEdit="MessageList_RowCancelingEdit" OnRowEditing="MessageList_RowEditing"
                    OnRowUpdating="MessageList_RowUpdating" PageSize="11" OnRowDeleting="MessageList_RowDeleting"
                    CellPadding="0" CssClass="gv" Width="100%" EmptyDataText="暂无任何反馈" OnRowDataBound="MessageList_RowDataBound"
                    OnRowCommand="MessageList_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="MessageId" HeaderText="ID">
                            <ControlStyle CssClass="gvOrderId" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Title" HeaderText="反馈标题" ReadOnly="True" SortExpression="Title" />
                        <asp:BoundField DataField="AddTime" HeaderText="提交时间" ReadOnly="True" SortExpression="AddTime" />
                        <asp:BoundField DataField="AddIp" HeaderText="提交IP" ReadOnly="True" />
                        <asp:CheckBoxField DataField="IsAnswer" HeaderText="是否回复">
                            <ControlStyle CssClass="checkBox" />
                        </asp:CheckBoxField>
                        <asp:CheckBoxField DataField="IsAuditing" HeaderText="是否审核">
                            <ControlStyle CssClass="checkBox" />
                        </asp:CheckBoxField>
                        <asp:TemplateField HeaderText="操作" ShowHeader="False">
                            <EditItemTemplate>
                                &nbsp;
                            </EditItemTemplate>
                            <ItemStyle CssClass="gvCommandField" />
                            <ItemTemplate>
                                &nbsp;<asp:Button ID="DelBt" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="删除" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="回复|审核">
                            <ItemStyle CssClass="gvBtAField" />
                            <ItemTemplate>
                                <asp:Button ID="EditBt" runat="server" CommandName="editMessage" CommandArgument='<%# Eval("MessageId").ToString().Trim() %>'
                                    Text="回复|审核" CssClass="addBt" CausesValidation="False" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="gvRow" />
                    <EditRowStyle CssClass="gvEditRow" />
                    <PagerStyle CssClass="gvPage" />
                    <HeaderStyle CssClass="gvHeader" />
                    <AlternatingRowStyle CssClass="gvAlternatingRow" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="MessageSaveUpdatePanel" UpdateMode="Conditional" runat="server">
            <ContentTemplate>
                <asp:Panel ID="MessageEditPanel" runat="server" CssClass="hide">
                    <asp:HiddenField ID="EditId" runat="server" />
                    <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D7D7D7"
                        id="mainBottTable">
                        <tr>
                            <td colspan="2" bgcolor="#FFFFFF" class="mainTitle">
                                "<asp:Label ID="MenuName1" runat="server" ForeColor="Black"></asp:Label>" 回复留言&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FFFFFF" class="mainContentLeftTd">
                                反馈ID:
                            </td>
                            <td bgcolor="#FFFFFF" class="mainContentRightTd">
                                <asp:Label ID="ShowMessageId" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff">
                                是否审核:
                            </td>
                            <td bgcolor="#ffffff">
                                <asp:Label ID="IsAuditingLabe" runat="server"></asp:Label>[<asp:LinkButton ID="AuditingLinkButton"
                                    runat="server" CausesValidation="False" OnClick="AuditingLinkButton_Click">审核</asp:LinkButton>,<asp:LinkButton
                                        ID="NoAuditingLinkButton" runat="server" CausesValidation="False" OnClick="NoAuditingLinkButton_Click">取消审核</asp:LinkButton>]
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff">
                                是否回复:
                            </td>
                            <td bgcolor="#ffffff">
                                <asp:Label ID="IsAnswerLabe" runat="server"></asp:Label>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FFFFFF">
                                反馈标题:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="MessageTitle" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr0">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName0" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field0" runat="server"></asp:Label>&nbsp;
                                <asp:HiddenField ID="FieldNum" runat="server" />
                                &nbsp;
                            </td>
                        </tr>
                        <tr id="attributeTr1">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName1" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field1" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr2">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName2" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field2" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr3">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName3" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field3" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr4">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName4" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field4" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr5">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName5" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field5" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr6">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName6" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field6" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr7">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName7" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field7" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr8">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName8" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field8" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr9">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName9" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field9" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr10">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName10" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field10" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr11">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName11" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field11" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr12">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName12" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field12" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr13">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName13" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field13" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr id="attributeTr14">
                            <td align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="FieldName14" runat="server"></asp:Label>:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="Field14" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff">
                                提交者:
                            </td>
                            <td bgcolor="#ffffff">
                                <asp:HyperLink ID="MemberHyperLink" runat="server" Target="_blank">HyperLink</asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FFFFFF">
                                提交IP:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="AddIp" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FFFFFF">
                                提交时间:
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Label ID="AddTime" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FFFFFF">
                                反馈内容
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left" bgcolor="#ffffff">
                                <div class="mainNoLeftTd">
                                    <FCKeditorV2:FCKeditor ID="MessageContent" runat="server" Height="400px" Width="100%"
                                        ToolbarStartExpanded="false" ToolbarCanCollapse="true">
                                    </FCKeditorV2:FCKeditor>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FFFFFF">
                                回复反馈
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left" bgcolor="#ffffff">
                                <div class="mainNoLeftTd">
                                    <FCKeditorV2:FCKeditor ID="Answer" runat="server" Height="400px" Width="100%">
                                    </FCKeditorV2:FCKeditor>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FFFFFF">
                            </td>
                            <td bgcolor="#FFFFFF">
                                &nbsp;<asp:Button ID="Edit" runat="server" Text="回复反馈" CssClass="inputBt" OnClick="Edit_Click" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
