<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="SMSEmailSet.aspx.cs" Inherits="OAWeb.SMSGateway.SMSEmailSet" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../UserControls/SMSGatewayNav.ascx" TagName="SMSGatewayNav" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <script src="/js/jquery.form.js" type="text/javascript"></script>
    <style type="text/css">
        .tab_content
        {
            border: solid 1px #cccccc;
            border-top: none;
            padding: 10px;
        }
        .table_form .right
        {
            width: 60px;
        }
        
        .list .table_list th, .list .table_list td
        {
            text-align: left;
            line-height: 14px;
            height: 14px;
        }
    </style>
    <!--主体左侧-->
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:SMSGatewayNav ID="SMSGatewayNav1" runat="server" />
            </td>
            <td class="main_center">
                <!--主体-->
                <div class="page_main">
                    <div class="page_content">
                        <div class="tabs">
                            <div class="tab_handles">
                                <span type="0">触发型短信设置</span> <span type="1">推广型设置</span>
                            </div>
                            <div class="tab_contents">
                                <div class="tab_content">
                                    <table cellpadding="0" cellspacing="3" border="0" class="table_form">
                                        <tr>
                                            <td class="right">
                                                短信平台:
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlSmsServer" runat="server">
                                                    <asp:ListItem Value="志晴短信平台">志晴短信平台</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="right">
                                                账号:
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtUserName" runat="server" CssClass="text width200"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="right">
                                                密码:
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtPassword" runat="server" CssClass="text width200"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="right">
                                                时间段:
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtSmsStartDate" runat="server" CssClass="text_box width40" Text="9"></asp:TextBox>点-<asp:TextBox
                                                    ID="txtSmsEndDate" runat="server" CssClass="text_box width40" Text="20"></asp:TextBox>点之间发送
                                                <span class="tip01">[只能是数据9-20，设置为不填写默认凌晨9点-20之间发送]</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="right">
                                                发送限制:
                                            </td>
                                            <td>
                                                当天限制发送短信条数
                                                <asp:TextBox ID="txtSmsSendNum" runat="server" CssClass="text_box width40" Text="1000"></asp:TextBox>条
                                                <span class="tip01">[为0或不设置默认当天只能发送1000条]</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="right">
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkTimer" runat="server" Text="开启短信发送定时器" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="right">
                                            </td>
                                            <td>
                                                <input id="btnSave" type="button" value=" 保 存 " class="btn_77px" />
                                            </td>
                                        </tr>
                                    </table>
                                    <script type="text/javascript">
                                        $(document).ready(function () {
                                            $("#btnSave").click(function () { return FormPostAjax("/SMSGateway/SMSEmailSet.aspx?op=Save&type=<%=SetType %>", "ok", CloseReload); });
                                        })
                                    </script>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        $(document).ready(function () {
            var tabs = $(".tab_handles span");
            $.each(tabs, function () {
                if ($(this).attr("type") == "<%=SetType %>")
                    $(this).addClass("current");
            })
            $(".tab_handles span").click(function () {
                window.location.href = "SMSEmailSet.aspx?type=" + $(this).attr("type");
            })
        })
    </script>
</asp:Content>
