<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="smsconfig.aspx.cs" Inherits="FangPage.Admin.smsconfig" %>

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="UserControls/TextareaResize.ascx" %>
<!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 id="Head1" runat="server">
    <title>站点短信服务器配置</title>

    <script type="text/javascript" src="js/common.js"></script>

    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet" />
    <link href="styles/modelpopup.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" src="js/modalpopup.js"></script>

</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <div class="ManagerForm">
        <form id="Form1" method="post" runat="server" name="Form1">
        <fieldset>
            <legend style="background: url(images/icons/smsserver.gif) no-repeat 3px;padding-left:40px;">站点短信服务器配置</legend>
            <table class="table1" cellspacing="0" cellpadding="8" width="100%" align="center">
                <tr>
                    <td class="td1" width="20%" align="right">
                        启用短信发送：
                    </td>
                    <td class="td1" width="30%">
                        <cc1:RadioButtonList ID="smsstatus" runat="server" RepeatLayout="flow" HintTitle="提示"
                            HintInfo="是否开启站点的短信发送功能" HintPosOffSet="80">
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                        </cc1:RadioButtonList>
                    </td>
                    <td class="td1" width="20%" align="right">
                        管理员手机号码：
                    </td>
                    <td class="td1" width="30%">
                        <cc1:TextBox ID="adminphone" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填"
                            Width="150"></cc1:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td1" width="20%" align="right">
                        短信发送帐号：
                    </td>
                    <td class="td1" width="30%">
                        <cc1:TextBox ID="userName" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填"
                            Width="150"></cc1:TextBox>
                    </td>
                    <td class="td1" width="20%" align="right">
                        短信发送密码：
                    </td>
                    <td class="td1" width="30%">
                        <cc1:TextBox ID="_password" runat="server" TextMode="password" RequiredFieldType="暂无校验"
                            CanBeNull="必填" Width="150"></cc1:TextBox>
                        <input type="hidden" id="hiddpassword" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td height="20" colspan="4">
                    </td>
                </tr>
            </table>
            <div align="center">
                <cc1:Button ID="SaveInfo" runat="server" Text="保 存" OnClick="SaveInfo_Click"></cc1:Button>&nbsp;&nbsp;
                <button class="ManagerButton" type="button" onclick="javascript:window.location.href='smssystem.aspx';">
                    <img src="images/arrow_undo.gif" />返 回</button>
            </div>
        </fieldset>
        <fieldset>
            <legend style="background: url(images/icons/SendMail.gif) no-repeat 3px;padding-left:40px;">测试短信发送</legend>
            <table id="Table2" class="table1" cellspacing="0" cellpadding="4" width="100%" border="0">
                <tr>
                    <td class="td2" width="20%" align="right">
                        测试接收手机号码：
                    </td>
                    <td class="td2">
                        <cc1:TextBox ID="testPhone" runat="server" RequiredFieldType="暂无校验" CanBeNull="可为空"
                            Width="250"></cc1:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <cc1:Button ID="sendTestEmail" ButtonImgUrl="images/msgsend.gif" 
                            runat="server" Text=" 发送测试短信" onclick="sendTestEmail_Click">
                        </cc1:Button>
                    </td>
                </tr>
            </table>
        </fieldset>
        <cc1:Hint ID="Hint1" runat="server" HintImageUrl="images"></cc1:Hint>
        </form>
    </div>

    <script type="text/javascript">document.getElementById("_password").value = document.getElementById("hiddpassword").value;</script>

</body>
</html>
