<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="GlobalSettingInfo.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Sys.GlobalSettingInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <dl class="ui-tabs">
        <dt><a href="?type=site" class="<%= type == "site" ? "on" : string.Empty %>">站点设置</a></dt>
        <dt><a href="?type=security" class="<%= type == "security" ? "on" : string.Empty %>">安全设置</a></dt>        
        <dt><a href="<% =FreeTip("短信/邮箱发送需开通第三方接口账号并在Web.config中配置，可以联系我公司协助开通。") %>">短信/邮箱发送设置</a></dt>
        <dt><a href="<% =FreeTip("如需集成QQ等第三方登录，请联系我公司客服。") %>">第三方集成登录</a></dt>
        <ruson:Space runat="server" ID="site" Visible="false">
            <dd>
                <form action="" method="post" class="auto">
                    <div class="m-content">
                        <table class="m-info" cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <th>站点名称 </th>
                                <td><input type="text" name="siteName" class="w250" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Site.SiteName).HtmlEncode() %>" /></td>
                            </tr>
                            <tr>
                                <th>网站网址</th>
                                <td>
                                    <input type="text" name="siteUrl" class="w250" data-vtype="url" data-vmsg="请输入正确的网站网址" data-vmust="false" value="<%=GlobalSetting.Get(GlobalSetting.Keys.Site.SiteUrl).HtmlEncode() %>" /><em>例：http://www.hjwis.com/，需包含最后的/</em>
                                </td>
                            </tr>
                            <tr>
                                <th>首页Title</th>
                                <td><input type="text" name="homeTitle" class="w500" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Site.HomeTitle).HtmlEncode() %>" /></td>
                            </tr>
                            <tr>
                                <th>首页Description</th>
                                <td>
                                    <textarea name="homeDescription" class="w500 h100"><% =GlobalSetting.Get(GlobalSetting.Keys.Site.HomeDescription).HtmlEncode() %></textarea>
                            </tr>
                            <tr>
                                <th>关闭站点信息</th>
                                <td>
                                    <textarea name="closeSiteMessage" class="w500 h100"><% =GlobalSetting.Get(GlobalSetting.Keys.Site.CloseSiteMessage).HtmlEncode() %></textarea>                                   
                                    <em>当此有值时，当前站点将关闭，仅超级管理员可以活动</em></td>
                            </tr>                            
                            <tr>
                                <th>过滤用户名</th>
                                <td><input type="text" name="userNameFilter" class="w250" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Site.UserNameFilter).HtmlEncode() %>" /><em>用户注册关键字过滤，多个以|号分隔</em></td>
                            </tr>                            
                            <tr>
                                <th>顶部Html</th>
                                <td><textarea name="topHtml" class="w500 h100"><% =GlobalSetting.Get(GlobalSetting.Keys.Site.TopHtml) %></textarea></td>
                            </tr>
                            <tr>
                                <th>底部Html</th>
                                <td><textarea name="footHtml" class="w500 h100"><% =GlobalSetting.Get(GlobalSetting.Keys.Site.FootHtml) %></textarea></td>
                            </tr>
                        </table>
                        <div class="g-fright pt10 pr5">
                            <input type="submit" class="btn-larger c-priority iconfont" value="&#xe684; 保存" />
                        </div>
                    </div>
                </form>
            </dd>
        </ruson:Space>

        <ruson:Space runat="server" ID="security" Visible="false">
            <dd>
                <form action="" method="post" class="auto">
                    <div class="m-content">
                        <table class="m-info" cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <th>帐户登录错误几次时锁定</th>
                                <td><input type="text" name="loginErrorLockN" class="w250 ui-int" data-vtype="number" data-vmsg="请输入正确的数字" data-vmust="false" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Security.LoginErrorLockN) %>" /></td>
                            </tr>
                            <tr>
                                <th>帐户登录错误时锁定时间（分钟）</th>
                                <td><input type="text" name="loginErrorLockTime" class="w250 ui-int" data-vtype="number" data-vmsg="请输入正确的数字" data-vmust="false" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Security.LoginErrorLockTime) %>" /></td>
                            </tr>
                            <tr>
                                <th>支付密码错误几次时锁定</th>
                                <td><input type="text" name="payErrorLockN" class="w250 ui-int" data-vtype="number" data-vmsg="请输入正确的数字" data-vmust="false" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Security.PayErrorLockN) %>" /></td>
                            </tr>
                            <tr>
                                <th>支付密码错误时锁定时间（分钟）</th>
                                <td><input type="text" name="payErrorLockTime" class="w250 ui-int" data-vtype="number" data-vmsg="请输入正确的数字" data-vmust="false" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Security.PayErrorLockTime) %>" /></td>
                            </tr>
                            <tr>
                                <th>登出帐户</th>
                                <td><input type="text" name="logoutTimeout" class="w250 ui-int" data-vtype="number" data-vmsg="请输入正确的数字" data-vmust="false" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Security.LogoutTimeout) %>" /><em>在指定时间内没有操作时登出帐户(分钟)</em></td>
                            </tr>
                            <tr>
                                <th>管理日志保留时间（月）</th>
                                <td><input type="text" name="adminLogSaveMonth" class="w250 ui-int" data-vtype="number" data-vmsg="请输入正确的数字" data-vmust="false" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Security.AdminLogSaveMonth) %>" /></td>
                            </tr>
                            <tr>
                                <th>图形验证码包含字符</th>
                                <td><input type="text" name="validCodeChars" class="w250" value="<% =GlobalSetting.Get(GlobalSetting.Keys.Security.ValidCodeChars) %>" /><em>生成图片验证码时可随机包含的字符</em></td>
                            </tr>
                        </table>
                        <div class="g-fright pt10 pr5">
                            <input type="submit" class="btn-larger c-priority iconfont" value="&#xe684; 保存" />
                        </div>
                    </div>
                </form>
            </dd>
        </ruson:Space>

    </dl>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">    
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
</asp:Content>
