<%@ page language="C#" autoeventwireup="true" inherits="ims.web.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" />
    <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" Width="80"></asp:TextBox>
            &nbsp;账号：<asp:TextBox runat="server" ID="tbUserID" Width="80"></asp:TextBox>
            &nbsp;密码：<asp:TextBox runat="server" ID="tbPass" TextMode="Password" Width="80"></asp:TextBox>&nbsp;<asp:Button runat="server" ID="btnSave" OnClick="Save" Text="保存" CssClass="btn" />
            <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='http://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" />
        <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" />
    </div>
    </form>
</body>
</html>