<%@ 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">
    <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" />
    <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="false" OnPreRender="MakeTabs" UpdateMode="Conditional">
    <ContentTemplate>
    <div id="tabs" class="ui-tabs">
        <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"></asp:TextBox>
            <span class="block480">
                账号：<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" />
            </span>
            <div class="zoneTitle"><img src="images/info.gif" align="absMiddle" /> 当前账户状态</div>
            <asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div runat="server" id="status"></div>
            </ContentTemplate>
            </asp:UpdatePanel>
            <div runat="server" id="crAbout">
            <div class="zoneTitle"><img src="images/info.gif" align="absMiddle" /> 提示</div>
            请访问<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 bigger">
        <input type="button" onclick="return toSend('sms');" value="发送短信" class="btn" />
        <input type="button" onclick="down('smslog.csv','短信日志', 'App_Data');" value="下载短信日志" class="btn" />
        <span class="block320">
            <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>