<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Others_Msg_Operate, V5Shop.Shop.Others" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<!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/css.css" rel="stylesheet" type="text/css">
    <link href="css/css_list.css" rel="stylesheet" type="text/css">
    <link href="css/control.css" rel="stylesheet" type="text/css">
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="js/Common.js" type="text/javascript"></script>
    <script language="javascript" src="js/Control_Calendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="OperateTitle">
        <div>
            <asp:Label ID="lblTitleAdd" runat="server" Text="【 发送短信 】"></asp:Label> 
            <asp:Label ID="lblTitleEdit" runat="server" Text="【 查看短信 】" Visible="false"></asp:Label> 
            <a href="Others_Msg_Manage.aspx" title="返回短信收件箱">返回列表</a>
        </div>
    </div>
    
    <div>
        <table id="OperateTable" runat="server" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                    <asp:Label ID="lblName" runat="server" Text="短信标题："></asp:Label> 
                </td>
                <td bgcolor="#FFFFFF" align=left>
                    <asp:TextBox ID="txtTitle" runat="server" Width="300px"></asp:TextBox>
                    <span class="NeedMsg">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtTitle" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr id="AddSearchArea" runat="server">
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                    <asp:Label ID="Label1" runat="server" Text="搜索类型："></asp:Label> 
                </td>
                <td bgcolor="#FFFFFF" align=left>
                    <asp:RadioButtonList ID="rblSearchType" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="rblSearchType_SelectedIndexChanged">
                        <asp:ListItem Selected="True">按会员名搜索</asp:ListItem>
                        <asp:ListItem>按会员等级搜索</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr id="LevelArea" runat="server" visible="false">
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                    <asp:Label ID="Label2" runat="server" Text="会员等级："></asp:Label> 
                </td>
                <td bgcolor="#FFFFFF" align=left>
                    <asp:DropDownList ID="ddlUserGroup" runat="server"></asp:DropDownList>
                    <asp:Button ID="btnLevelSearch" runat="server" CssClass="button" Text="搜索" CausesValidation="false" OnClick="btnLevelSearch_Click" />
                </td>
            </tr>
            <tr id="KeyArea" runat="server">
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                    <asp:Label ID="Label4" runat="server" Text="会员名关键字："></asp:Label> 
                </td>
                <td bgcolor="#FFFFFF" align=left>
                    <asp:TextBox ID="txtSearchKey" runat="server" Width="300px"></asp:TextBox>
                    <asp:Button ID="btnNameSearch" runat="server" CssClass="button" Text="搜索" CausesValidation="false" OnClick="btnNameSearch_Click" />
                </td>
            </tr>
            <tr id="UserArea" runat="server">
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                    <asp:Label ID="Label3" runat="server" Text="选择会员："></asp:Label> 
                </td>
                <td bgcolor="#FFFFFF" align=left>
                    <div>
                        <div style="float:left;">
                            <asp:ListBox ID="lbUser" runat="server" Width="200px" Height="200px" SelectionMode="Multiple"></asp:ListBox>
                        </div>
                        <div style="float:left; padding:80px 0 0 5px;">
                            <input type="button" value="选择全部" class="button" onclick="SelectAllOption('lbUser')" />
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                    <asp:Label ID="lblContent" runat="server" Text="内容："></asp:Label> 
                </td>
                <td bgcolor="#FFFFFF" align=left>
                    <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Width="300px" Height="60px"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtContent" ErrorMessage="内容不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtContent"
                        Display="Dynamic" ErrorMessage="长度必须在200个字以内" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator></td>
            </tr>

            <tr>
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF"></td>
                <td bgcolor="#FFFFFF" align=left>
                    <asp:Button ID="btnAdd" runat="server" Text="确定" CssClass="button" OnClick="btnAdd_Click" />
                    <asp:Button ID="btnEdit" runat="server" Text="更新" CssClass="button" OnClick="btnEdit_Click" Visible="False" />
                    <!-- <input id="iptReset" runat="server" type="reset" class="button" value="重置" />    -->
                    <input id="Button1" runat="server" type="button" value="返回列表" onclick="window.location.href='Others_Msg_Manage.aspx'" class="button"/>
                </td>
            </tr>
        </table>
        <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
        </script> 
    </div>
    
    <uc1:PageBottom ID="PageBottom1" runat="server" />
    </form>
</body>
</html>
