<%@ page language="C#" autoeventwireup="true" inherits="ims.web.sms, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="sms">
<head runat="server">
    <title>发送短信</title><meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm" runat="server" OnAsyncPostBackError="AsyncError" />    
    <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="false" UpdateMode="conditional" RenderMode="Inline">
    <ContentTemplate>
        <div runat="server" id="divMsg" class="hide"></div>
        <div runat="server" id="sendBox">
            手机号码：<br /><asp:TextBox runat="server" ID="nums" ToolTip="输入要发送到的手机号码，多个号码之间用空格或逗号或换行分隔" Rows="1" Width="98%"></asp:TextBox><div style="height:6px;overflow:hidden"></div>
            短信内容：<br /><asp:TextBox runat="server" ID="smsBody" Width="98%" onpaste="setCount();" oninput="setCount();" onkeyup="setCount();" TextMode="MultiLine" Rows="8"></asp:TextBox><br />
            <div id="divCount">还可输入<span id="count">250</span>字</div>
        </div>
        <div id="btnArea" runat="server"><asp:Button runat="server" ID="btnSend" OnClick="SendSms" OnClientClick="return sending();" Text="发 送" CssClass="btn big" /></div>
        <div runat="server" id="resultArea" visible="false">
            <div runat="server" id="resultMsg"></div>
            <input type="button" class="btn big" runat="server" id="btnContinue" value="继 续" onserverclick="SendSms" />
            <input type="button" class="btn big" id="btnClose" value="关 闭" onclick="back();" />
        </div>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnSend" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="btnContinue" EventName="serverclick" />
    </Triggers>
    </asp:UpdatePanel>
    <script src="js/comm.js"></script><script src="js/sms.js"></script>
    </form>
</body>
</html>
