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

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

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

</head>
<body style="font-size: 12px; padding: 0; background-image: url('images/Bg_right.gif');
    background-repeat: repeat">
    <form id="form1" runat="server">
    <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="True"
        EnableScriptLocalization="True" />
    <div class="navigator">
        <asp:Label ID="LabelPageTitle" runat="server" Text="【 线下团购评论管理 】"></asp:Label></div>
    <div>
        <table style="width: 100%">
            <tr>
                <td width="15%" align="right">
                    <asp:Label ID="LabelSMemLoginID" runat="server" Text="评论人："></asp:Label>
                </td>
                <td width="350">
                    <asp:TextBox ID="TextBoxSMemLoginID" runat="server" CssClass="input1"></asp:TextBox>
                </td>
                <td align="right" width="80">
                    <asp:Label ID="LabelSTitle" runat="server" Text="评论标题："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxSTitle" runat="server" CssClass="input1"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td style="width: 42px; height: 25px">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelActiveGuid" runat="server" Text="评论活动："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxActiveName" runat="server" CssClass="input1"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="LabelSIsAudit0" runat="server" Text="审核状态："></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropDownListSIsAudit" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td style="width: 42px; height: 25px">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelSIsReply0" runat="server" Text="发表IP："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxSIPAddress" runat="server" CssClass="input1"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="LabelSIsReply" runat="server" Text="回复状态："></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropDownListSIsReply" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td style="width: 42px; height: 25px">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelSSendTime" runat="server" Text="评论时间："></asp:Label>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="TextBoxSSendTime1" runat="server" CssClass="input1"></asp:TextBox>
                    <img id="imgSendTime1" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                        align="absmiddle" />
                    <ShopNum1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TextBoxSSendTime1"
                        PopupButtonID="imgSendTime1" CssClass="ajax__calendar">
                    </ShopNum1:CalendarExtender>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxSSendTime1"
                        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>
                    -<asp:TextBox ID="TextBoxSSendTime2" runat="server" CssClass="input1"></asp:TextBox>
                    <img id="imgSendTime2" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                        align="absmiddle" />
                    <ShopNum1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBoxSSendTime2"
                        PopupButtonID="imgSendTime2" CssClass="ajax__calendar">
                    </ShopNum1:CalendarExtender>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxSSendTime2"
                        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>
                </td>
                <td colspan="3">
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelSReplyTime" runat="server" Text="回复时间："></asp:Label>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="TextBoxSReplyTime1" runat="server" CssClass="input1"></asp:TextBox>
                    <img id="imgReplyTime1" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                        align="absmiddle" />
                    <ShopNum1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBoxSReplyTime1"
                        PopupButtonID="imgReplyTime1" CssClass="ajax__calendar">
                    </ShopNum1:CalendarExtender>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBoxSReplyTime1"
                        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>
                    -<asp:TextBox ID="TextBoxSReplyTime2" runat="server" CssClass="input1"></asp:TextBox>
                    <img id="imgReplyTime2" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                        align="absmiddle" />
                    <ShopNum1:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="TextBoxSReplyTime2"
                        PopupButtonID="imgReplyTime2" CssClass="ajax__calendar">
                    </ShopNum1:CalendarExtender>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBoxSReplyTime2"
                        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>
                </td>
                <td align="left" colspan="3">
                    <asp:Button ID="ButtonSearch" runat="server" class="bt2" OnClick="ButtonSearch_Click"
                        Text="查询" />
                </td>
            </tr>
        </table>
    </div>
    <table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td align="left">
                <cc1:Num1GridView ID="Num1GridiewShow" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" Width="100%" AscendingImageUrl="~/images/SortAsc.gif"
                    DescendingImageUrl="~/images/SortDesc.gif" Font-Size="Small" Font-Bold="False"
                    AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF"
                    BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                    Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
                    Style="margin-left: 2px;" TableName="" DataSourceID="ObjectDataSourceData">
                    <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" type="checkbox" value='<%# Eval("Guid") %>' />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Guid" HeaderText="Guid" Visible="False" />
                        <asp:BoundField DataField="Title" HeaderText="评论标题" SortExpression="Title" />
                        <asp:BoundField HeaderText="评论活动" DataField="ActiveTitle" SortExpression="ActiveTitle" />
                        <asp:BoundField DataField="SendTime" HeaderText="评论时间" SortExpression="SendTime">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MemLoginID" HeaderText="评论人" SortExpression="MemLoginID">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="回复时间" DataField="ReplyTime" SortExpression="ReplyTime">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="审核状态" SortExpression="IsAudit">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# ChangeIsAudit(DataBinder.Eval(Container, "DataItem(IsAudit)","{0}")) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="回复状态" SortExpression="IsReply">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# ChangeIsReply(DataBinder.Eval(Container, "DataItem(IsReply)","{0}")) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="IPAddress" HeaderText="发表IP" SortExpression="IPAddress">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                </cc1:Num1GridView>
            </td>
        </tr>
        <tr>
            <td align="left">
                <div class="vote">
                    <asp:Button ID="ButtonDelete" runat="server" OnClick="ButtonDelete_Click" OnClientClick="return DeleteButton()"
                        class="bt2" Text="删除" CausesValidation="False" />
                    <asp:Button ID="ButtonIsAudit1" runat="server" OnClientClick="return AuditButton()"
                        Text="审核" CssClass="bt2" OnClick="ButtonIsAudit1_Click" />
                    <asp:Button ID="ButtonIsAudit0" runat="server" OnClientClick="return AuditButton()"
                        Text="取消审核" CssClass="bt2" OnClick="ButtonIsAudit0_Click" />
                    <asp:Button ID="ButtonReply" runat="server" CausesValidation="False" OnClientClick="return EditButton()"
                        class="bt3" Text="查看|回复" OnClick="ButtonReply_Click" />
                    <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                </div>
            </td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="SearchDownLineActive"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_ActiveCommentByMember_Action" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="CheckGuid" Name="guid" PropertyName="Value" Type="String" />
            <asp:ControlParameter ControlID="TextBoxActiveName" Name="ActiveTitle" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxSMemLoginID" Name="memLoginID" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxSTitle" Name="title" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxSSendTime1" Name="sendTime1" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxSSendTime2" Name="sendTime2" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxSReplyTime1" Name="replyTime1" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxSReplyTime2" Name="replyTime2" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="DropDownListSIsReply" Name="isReply" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ControlParameter ControlID="DropDownListSIsAudit" Name="isAudit" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
