<%@ page language="C#" autoeventwireup="true" inherits="ims.smsadmin, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="smsadmin">
<head runat="server">
    <title>短信功能设置</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <script src="js/comm.js"></script><script src="js/smsadmin.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="s1" runat="server" OnAsyncPostBackError="AsyncError">
        <CompositeScript Path="js/msajax.js" ScriptMode="Release">
            <Scripts>
                <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
            </Scripts>
        </CompositeScript>
    </asp:ScriptManager>
    <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="false" OnPreRender="MakeTabs" UpdateMode="Conditional">
    <ContentTemplate>
    <div id="tabs" class="ui-tabs simple">
        <ul>
            <li><a href="#account">短信账户</a></li>
            <li runat="server" id="liPwd" visible="false"><a href="#chgpwd">修改密码</a></li>
        </ul>
        <div id="account">
            <span class="hide">短信平台：<asp:DropDownList runat="server" ID="ddlPlat"></asp:DropDownList></span>
            企业代码：<asp:TextBox runat="server" ID="tbCorpCode" CssClass="textbox" ToolTip="没有企业代码的不用填"></asp:TextBox>
            <span id="upwd">
                账号：<asp:TextBox runat="server" ID="tbUserID" CssClass="textbox"></asp:TextBox>
                密码：<asp:TextBox runat="server" ID="tbPass" TextMode="Password" CssClass="textbox"></asp:TextBox><asp:Button runat="server" ID="btnSave" OnClick="Save" Text="保存" CssClass="btn sec small" />
            </span>
            <div class="lightarea mtop_l">
                <div class="btitle bold">账户状态</div>
                <asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <div runat="server" id="status"></div>
                </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div class="mtop_m infoico" runat="server" id="crAbout">请访问<a href='https://landian.cc' target='_blank'>蓝点官网</a>联系客服了解账号注册和充值相关问题。</div>
            <asp:Button runat="server" ID="btnStatus" OnClick="ShowStatus" CssClass="hide" />
        </div>    
        <div runat="server" id="chgpwd" visible="false">
            　　原密码：<asp:TextBox runat="server" ID="tbOldPwd" TextMode="Password"></asp:TextBox><br />
            　　新密码：<asp:TextBox runat="server" ID="tbNewPwd" TextMode="Password"></asp:TextBox><br />
            确认新密码：<asp:TextBox runat="server" ID="tbVerify" TextMode="Password"></asp:TextBox>
            <asp:UpdatePanel ID="up2" runat="server" RenderMode="Inline">
            <ContentTemplate>
                <asp:Button runat="server" ID="btnChangePwd" OnClick="ChangePwd" CssClass="btn" OnClientClick="return checkPwd();" Text="确定修改" />
            </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div> 
    </ContentTemplate>
    </asp:UpdatePanel>
    
    <div class="footBtnArea">
        <input type="button" onclick="return toSend('sms');" value="发送短信" class="btn" />
        <input type="button" onclick="down('smslog.csv','短信日志', 'App_Data');" value="下载短信日志" class="btn" />
        <span class="pconly">
            <asp:Button id="btnDelLog" OnClick="DelSmsLog" OnClientClick="return confirm('确定要删除短信日志吗？');" runat="server" Text="删除短信日志" class="btn" ToolTip="定期删除日志记录，可以加快短信发送速度"></asp:Button>
            <input type="button" onclick="back();" value="返回" class="btn" />
        </span>
    </div>
    </form>
</body>
</html>