<%@ page language="C#" autoeventwireup="true" inherits="GroupFlyProduce_ProduceAdmin_ProduceMessageBoard_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="China315" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<!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 rel="stylesheet" type="text/css" href="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" language="javascript" src="../../js/CommonJS.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnableScriptGlobalization="true" EnableScriptLocalization="true"
        runat="server">
    </asp:ScriptManager>
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTitle" runat="server" Text="会员留言列表"></asp:Label></div>
            <div class="query">
                <table width="100%" cellpadding="0" cellspacing="1" border="0">
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="Localize1" runat="server" Text="留言人："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxMemLoginID" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxMemLoginID"
                                runat="server" ControlToValidate="TextBoxMemLoginID" Display="Dynamic" ErrorMessage="最多50个字符"
                                ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td style="text-align: right;">
                            <asp:Localize ID="Localize2" runat="server" Text="留言标题："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTitle" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxTitle" runat="server"
                                ControlToValidate="TextBoxTitle" Display="Dynamic" ErrorMessage="最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="Localize3" runat="server" Text="留言类型："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListMessageType" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td style="text-align: right;">
                            <asp:Localize ID="Localize4" runat="server" Text="留言时间："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxSendTime1" runat="server" CssClass="allinput1"></asp:TextBox>
                            <img id="imgCalendarSReplyTime1" alt="" src="images/Calendar.png" style="width: 16px;
                                height:18px; position:relative; top:4px" /><asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxSendTime1"
                                    runat="server" ControlToValidate="TextBoxSendTime1" Display="Dynamic" ErrorMessage="时间格式不正确"
                                    ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                          <China315:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBoxSendTime1"
                                PopupButtonID="imgCalendarSReplyTime1" CssClass="ajax__calendar" />
                            -<asp:TextBox ID="TextBoxSendTime2" runat="server" CssClass="allinput1"></asp:TextBox>
                            <img id="imgCalendarSReplyTime2" alt="" src="images/Calendar.png" style="width: 16px;
                                height:18px; position:relative; top:4px" /><asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxSendTime2"
                                    runat="server" ControlToValidate="TextBoxSendTime2" Display="Dynamic" ErrorMessage="时间格式不正确"
                                    ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            &nbsp;<China315:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBoxSendTime2"
                                PopupButtonID="imgCalendarSReplyTime2" CssClass="ajax__calendar" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="Localize5" runat="server" Text="是否回复："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsReply" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td style="text-align: right;">
                            <asp:Localize ID="Localize7" runat="server" Text="回复时间："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxReplaytime1" runat="server" CssClass="allinput1"></asp:TextBox>
                            <img id="img1" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;position:relative; top:4px" /><asp:RegularExpressionValidator
                                ID="RegularExpressionValidatorTextBoxReplaytime1" runat="server" ControlToValidate="TextBoxReplaytime1"
                                Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                           <China315:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TextBoxReplaytime1"
                                PopupButtonID="img1" CssClass="ajax__calendar" />
                            -<asp:TextBox ID="TextBoxReplaytime2" runat="server" CssClass="allinput1"></asp:TextBox>
                            <img id="img2" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;position:relative; top:4px" /><asp:RegularExpressionValidator
                                ID="RegularExpressionValidatorTextBoxReplaytime2" runat="server" ControlToValidate="TextBoxReplaytime2"
                                Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            &nbsp;<China315:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="TextBoxReplaytime2"
                                PopupButtonID="img2" CssClass="ajax__calendar" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="Localize6" runat="server" Text="是否审核："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsAudit" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2">
                            <asp:Button ID="ButtonSearch" runat="server" Text="查询" CssClass="bnt1" />
                        </td>
                    </tr>
                </table></div>
                <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" runat="server" AddSequenceColumn="False"
                    AllowMultiColumnSorting="False" AutoGenerateColumns="False" BorderColor="#CCDDEF"
                    BorderStyle="Solid" BorderWidth="0px" CellPadding="0" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                    Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
                    TableName="" Width="100%" CellSpacing="1"  AllowSorting="True" DataSourceID="ObjectDataSourceData"
                    AllowPaging="True" RowStyle-HorizontalAlign="Center" 
                    style="margin-left: 0px; " GridLines="None">
                    <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                    </HeaderStyle>
                    <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="checkboxItem" value='<%# Eval("Guid") %>' type="checkbox" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="用户名" DataField="MemLoginID" />
                        <asp:BoundField HeaderText="留言标题" DataField="Title" />
                        <asp:TemplateField HeaderText="留言类型">
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# ShowMessageType( Eval("MessageType").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="留言时间" DataField="SendTime" />
                        <asp:TemplateField HeaderText="是否回复">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# ChangeIsReplay(DataBinder.Eval(Container, "DataItem(IsReply)","{0}")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="回复时间" DataField="ReplyTime" />
                        <asp:TemplateField HeaderText="是否审核">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# ChangeIsAudit(DataBinder.Eval(Container, "DataItem(IsAudit)","{0}")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>

<RowStyle HorizontalAlign="Center"></RowStyle>
                </cc1:GroupFlyGridView>
            
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" Text="删除" CssClass="bnt1 cancel"
            OnClientClick="return DeleteButton()" OnClick="ButtonDelete_Click" />
        <asp:Button ID="ButtonIsAudit" runat="server" CausesValidation="False" Text="审核"
            CssClass="bnt1 cancel" OnClientClick="return AuditButton()" OnClick="ButtonIsAudit_Click" />
        <asp:Button ID="ButtonCancel" runat="server" CausesValidation="False" Text="取消审核"
            CssClass="bt3 cancel" OnClientClick="return AuditButton()" OnClick="ButtonCancel_Click" />
        <asp:Button ID="ButtonEdite" runat="server" CausesValidation="False" Text="详细/回复"
            OnClientClick="return EditButton()" CssClass="bt3 cancel" OnClick="ButtonEdite_Click" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
        <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
            
            TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_MessageBoard_Action" 
            OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:ControlParameter ControlID="TextBoxMemLoginID" Name="memLoginID" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="TextBoxTitle" Name="title" PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="TextBoxSendTime1" Name="sendTime1" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="TextBoxSendTime2" Name="sendTime2" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="TextBoxReplaytime1" Name="replyTime1" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="TextBoxReplaytime2" Name="replyTime2" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="DropDownListMessageType" Name="messageType" PropertyName="SelectedValue"
                    Type="String" />
                <asp:ControlParameter ControlID="DropDownListIsReply" Name="isReply" PropertyName="SelectedValue"
                    Type="Int32" />
                <asp:ControlParameter ControlID="DropDownListIsAudit" Name="isAudit" PropertyName="SelectedValue"
                    Type="Int32" />
                <asp:Parameter Name="isDeleted" Type="Int32" DefaultValue="0" />
                <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" 
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
        <asp:HiddenField ID="ProduceMemLoginID" runat ="server" Value ="0" />
    </div>
    </form>
</body>
</html>
