<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" MasterPageFile="../Global.Master" CodeBehind="Default.aspx.cs" Inherits="Web.AdminManager.Setting.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Common/UEditor/editor_config.js" type="text/javascript"></script>
    <script src="/Common/UEditor/editor_all_min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="/Common/UEditor/themes/default/ueditor.css" />
    <script src="../js/Setting.default.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form class="ui-form ui-form-vertical" runat="server" id="Form1">
        <fieldset>
            <legend>基础信息</legend>
            <div class="ui-form-group">
                <label class="ui-form-label">管理密码</label><div class="ui-form-ctrls">
                    <input type="password" name="AdminPWD" id="AdminPWD" class="ui-input-small" value="" />
                    <span class="AdminPWD ui-help-inline">系统管理员密码，不修改则放空</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">密码确认</label><div class="ui-form-ctrls">
                    <input type="password" name="ReAdminPWD" id="ReAdminPWD"
                        class="ui-input-small" value="" /><span class="ReAdminPWD ui-help-inline">再次输入以上密码，不修改则放空</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">网站名称</label><div class="ui-form-ctrls">
                    <input type="text" name="SiteName" id="SiteName"
                        class="ui-input-small" value="<%=ms.SiteName %>" /><span
                            class="SiteName ui-help-inline">您的网站名称</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">LOGO</label><div class="ui-form-ctrls">
                    <input type="file" name="SiteLogo" id="SiteLogo" />
                    <%=string.IsNullOrEmpty(ms.SiteLogo)?"":"<a target=\"_blank\" href=\""+ms.SiteLogo+"\">点击查看</a>" %><span
                        class="SiteName ui-help-inline">网站LOGO上传</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">客服电话</label><div class="ui-form-ctrls">
                    <input type="text" name="SiteTel" id="SiteTel"
                        class="ui-input-small" value="<%=ms.SiteTel %>" /><span
                            class="SiteTel ui-help-inline">网站的服务电话</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">网站标题</label><div class="ui-form-ctrls">
                    <input type="text" name="SiteTitle" id="SiteTitle"
                        class="" value="<%=ms.SiteTitle %>" /><span
                            class="SiteTitle ui-help-inline">网站首页Title设置</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">网站关键字</label><div class="ui-form-ctrls">
                    <input type="text" name="keywords" id="keywords"
                        class="" value="<%=ms.keywords %>" /><span
                            class="keywords ui-help-inline">网站关键字设置</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">网站描述</label><div class="ui-form-ctrls">
                    <textarea id="description" name="description"
                        rows="5" cols="47"><%=ms.description%></textarea><span class="description ui-help-inline">网站描述</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">底部内容</label><div class="ui-form-ctrls">
                    <textarea id="FootContact" name="FootContact"
                        rows="5" cols="47"><%=ms.FootContact%></textarea><span class="FootContact ui-help-inline">网站底部内容，支持HTML</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">模块开关</label><div class="ui-form-ctrls">
                    <div class="red">注：无勾选的模块在前台将不做任何显示</div>
                    <div>
                        <ul class="UI_FunctionSwitch">
                            <%=UIFunctionSwitch %>
                            <div class="clear"></div>
                        </ul>
                    </div>
                </div>
            </div>
            <legend>Mail信息设置</legend>
            <div class="ui-form-group">
                <label class="ui-form-label">SMTP服务器</label><div class="ui-form-ctrls">
                    <input type="text" name="SmtpServer" id="SmtpServer"
                        class="ui-input-small" value="<%=ms.SmtpServer %>" /><span
                            class="SmtpServer ui-help-inline">SMTP服务器地址</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">登录名</label><div class="ui-form-ctrls">
                    <input type="text" name="SmtpUserName" id="SmtpUserName"
                        class="ui-input-small" value="<%=ms.SmtpUserName %>" /><span
                            class="SmtpUserName ui-help-inline">SMTP服务器登录帐号</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">登录密码</label><div class="ui-form-ctrls">
                    <input type="password" name="SmtpPass" id="SmtpPass"
                        class="ui-input-small" /><span
                            class="SmtpPass ui-help-inline">SMTP服务器登录密码，不修改留空</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">发件人</label><div class="ui-form-ctrls">
                    <input type="text" name="SmtpSender" id="SmtpSender"
                        class="ui-input-small" value="<%=ms.SmtpSender %>" /><span
                            class="SmtpSender ui-help-inline">邮件发送人</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">开启邮件</label><div class="ui-form-ctrls">
                    <select size="1" name="OpenMail" id="OpenMail">
                        <option value="false" <%=ms.OpenMail?"":"selected" %>>关闭</option>
                        <option value="true" <%=ms.OpenMail?"selected":"" %>>开启</option>
                    </select><span
                        class="OpenMail ui-help-inline">是否开启邮件通知功能</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">管理员Mail</label><div class="ui-form-ctrls">
                    <input type="text" name="AdminMail" id="AdminMail"
                        class="ui-input-small" value="<%=ms.AdminMail %>" /><span
                            class="AdminMail ui-help-inline">邮件通知Mail接收地址，用于接收平台事件通知地址</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">邮件模版：</label><div class="ui-form-ctrls">
                    <div style="color: red; font-weight: bold;">注：标签<span style="color: green;">[Content]</span>表示具体邮件内容。</div>
                    <script id="MailTemplate" type="text/plain"><%=ms.MailTemplate %></script>
                    <script type="text/javascript">
                        var editor = new baidu.editor.ui.Editor({
                            textarea: 'MailTemplate'
                        });
                        editor.render("MailTemplate");
                    </script>
                </div>
            </div>

            <legend>其它设置</legend>
            <div class="ui-form-group">
                <label class="ui-form-label">在线支付</label><div class="ui-form-ctrls">
                    <select size="1" name="OpenPayOnline" id="OpenPayOnline">
                        <option value="false" <%=ms.OpenPayOnline?"":"selected" %>>关闭</option>
                        <option value="true" <%=ms.OpenPayOnline?"selected":"" %>>开启</option>
                    </select><span
                        class="OpenPayOnline ui-help-inline">是否开启在线支付功能</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">积分</label><div class="ui-form-ctrls">
                    <input type="text" name="vCurrency" id="vCurrency"
                        class="ui-input-mini" value="<%=ms.vCurrency %>" /><span
                            class="vCurrency ui-help-inline">消费1元RMB可获得积分数，只能为整数，0为不支持</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">返现比例</label><div class="ui-form-ctrls">
                    <input type="text" name="BackMoney" id="BackMoney"
                        class="ui-input-mini" value="<%=ms.BackMoney %>" />%<span
                            class="BackMoney ui-help-inline">例如这里设置返现比例为12%，那么用户充100元实际上用户入款可以入100元×（1+0.12），即入款112元，可用于举办各种优惠活动。</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">邮箱激活</label><div class="ui-form-ctrls">
                    <select size="1" name="UseActivation" id="UseActivation">
                        <option value="false" <%=ms.UseActivation?"":"selected" %>>关闭</option>
                        <option value="true" <%=ms.UseActivation?"selected":"" %>>开启</option>
                    </select><span
                        class="UseActivation ui-help-inline">是否开启账户需要邮件激活后才能使用功能</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">注册条款</label><div class="ui-form-ctrls">
                    <select size="1" name="RegUserAgreement" id="RegUserAgreement">
                        <option value="0">请选择</option>
                        <%=AgreementString%>
                    </select><span class="RegUserAgreement">选择帐号注册条款，<a href="Agreement.aspx" target="_blank">点击这里设置条款</a></span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label"></label>
                <div class="ui-form-ctrls">
                    <button type="submit" class="ui-btn ui-btn-primary">保存配置</button>
                </div>
            </div>
        </fieldset>
    </form>
</asp:Content>
