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

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="ShopNum1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" 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="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">
        【 短信订阅管理 】</div>
    <table style="width: 100%">
        <tr>
            <td style="width: 100%" align="left">
                <div class="query">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="10%" align="right">
                                订阅人手机号：
                            </td>
                            <td width="30%">
                                <asp:TextBox ID="TextBoxMemLoginID" runat="server" CssClass="input1"></asp:TextBox>
                            </td>
                            <td align="right" width="10%">
                                订阅状态：
                            </td>
                            <td width="15%">
                                <asp:DropDownList ID="DropDownListState" runat="server" CssClass="select1">
                                    <asp:ListItem Value="-1" Text="-请选择-"></asp:ListItem>
                                    <asp:ListItem Value="0" Text="未认证"></asp:ListItem>
                                    <asp:ListItem Value="1" Text="同意订阅"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="拒绝订阅"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="会员退订"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <td  width="10%" align="right">
                            订阅时间：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxCreateTime1" runat="server" CssClass="input1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TextBoxCreateTime1"
                                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>
                            <img id="imgCreateTime1" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender5" runat="server" TargetControlID="TextBoxCreateTime1"
                                PopupButtonID="imgCreateTime1" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                            -
                            <asp:TextBox ID="TextBoxCreateTime2" runat="server" CssClass="input1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="TextBoxCreateTime2"
                                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>
                            <img id="imgCreateTime2" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender6" runat="server" TargetControlID="TextBoxCreateTime2"
                                PopupButtonID="imgCreateTime2" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                            <br />
                        </td>
                        <td width="10%" align="right">
                            城市：
                        </td>
                        <td width="15%">
                            <asp:DropDownList ID="DropDownListCity" runat="server" CssClass="select1">
                            </asp:DropDownList>
                        </td>
                        <td width="10%">
                            <asp:Button ID="ButtonSearch" runat="server" OnClick="ButtonSearch_Click" Text="查询"
                                CssClass="bt2" />
                        </td>
                        <tr>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="left">
                <cc1:Num1GridView ID="Num1GridViewShow" 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>
                            <HeaderStyle HorizontalAlign="Center" Width="30px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Guid" HeaderText="GUID" SortExpression="Guid" Visible="False">
                            <ItemStyle Height="30px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MemLoginID" HeaderText="订阅人" SortExpression="MemLoginID">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MemberGroupName" HeaderText="所属组" SortExpression="MemberGroupName">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CityName" HeaderText="城市" SortExpression="CityName">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="订阅状态" SortExpression="Status">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# ChangeState(DataBinder.Eval(Container, "DataItem(Status)","{0}")) %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="CreateTime" HeaderText="时间" SortExpression="CreateTime">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                </cc1:Num1GridView>
            </td>
        </tr>
        <tr>
            <td>
                <div class="vote">
                    <asp:Button ID="ButtonRefuse" runat="server" Text="拒绝订阅" OnClick="ButtonRefuse_Click"
                        OnClientClick="return AuditButton()" CssClass="bt3" />
                    <asp:Button ID="ButtonAgree" runat="server" Text="同意订阅" OnClick="ButtonAgree_Click"
                        OnClientClick="return AuditButton()" CssClass="bt3" />
                    <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
                        OnClick="ButtonDelete_Click" CssClass="bt2" />
                    <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                </div>
            </td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_MMSGroupSend_Action">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxMemLoginID" Name="MemLoginID" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="DropDownListState" Name="state" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ControlParameter ControlID="DropDownListCity" Name="CityCode" PropertyName="SelectedValue"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxCreateTime1" Name="CreateTime1" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxCreateTime2" Name="CreateTime2" PropertyName="Text"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
