<%@ Page Language="c#" Inherits="Web.Wpdcc.manageSiteOtherProperty" CodeBehind="manageSiteOtherProperty.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>

    <title>网站其它属性设置</title>
    <!--#include file="../Css/head.htm"-->
</head>
<body>
    <div class="main-content-inner">
        <form id="form1" method="post" runat="server">
            <!-- #section:basics/content.breadcrumbs -->
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
                </script>
                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa  fa-desktop"></i>
                        <a href="../welcome.aspx">主页</a>
                    </li>
                    <li>网站设置
                    </li>
                    <li class="active">网站其它属性设置</li>
                </ul>
            </div>
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="edit-func-box func-box">
                            <div class="tabbable">
                                <!-- #section:elements.tab.option -->
                                <ul class="nav nav-tabs" id="myTab4">
                                    <li>
                                        <a aria-expanded="false" href="manageSiteBasicProperty.aspx" data-toggle="tab">网站基本属性设置</a>
                                    </li>
                                    <li class="active">
                                        <a aria-expanded="false" href="manageSiteOtherProperty.aspx" data-toggle="tab">网站其它属性设置</a>
                                    </li>
                                </ul>
                            </div>
                            <!-- /section:elements.tab.option -->
                            <div class="bd tab-content">
                                <div id="AspInfo" runat="server">
                                    <%--把原来的<tr id=Aspinfo> 替换为div，减少table层次，施健 2012-8-20 --%>
                                    <table class="edit-table">
                                        <tr>
                                            <th>评论显示分页条数：
                                            </th>
                                            <td>
                                                <asp:TextBox ID="reviewPage" runat="server" CssClass="input-md" notNull="true" dataType="integer"
                                                    minvalue="0" maxvalue="9999" MaxLength="4" msgname="评论显示分页条数"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>评论发表时间间隔：
                                            </th>
                                            <td>
                                                <asp:TextBox ID="reviewAlternation" class="input-md" runat="server" notNull="true"
                                                    dataType="integer" minvalue="0" maxvalue="9999" MaxLength="4" msgname="评论发表时间间隔"></asp:TextBox>
                                                <span class="tip">(秒)[参数为0则无限制]</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>导航页浏览权限设置：
                                            </th>
                                            <td>
                                                <asp:DropDownList ID="navGate" runat="server" class="input-md">
                                                    <asp:ListItem Value="0">无限制</asp:ListItem>
                                                    <asp:ListItem Value="1">仅内网可见</asp:ListItem>
                                                    <asp:ListItem Value="2">仅登录可见</asp:ListItem>
                                                    <asp:ListItem Value="3">内网或登录可见</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>导航页文件名：
                                            </th>
                                            <td>
                                                <asp:TextBox ID="navPage" class="input-md" runat="server"></asp:TextBox>&nbsp;
                        <input id="btnNavpage" runat="server" type="button" value="编辑导航页" class="btn btn-sm btn-primary" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>网站全局分页数量：
                                            </th>
                                            <td>
                                                <asp:TextBox ID="PageSize" class="input-md" runat="server" notNull="true" dataType="integer"
                                                    minvalue="1" maxvalue="50" MaxLength="2" msgname="翻页数量"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>主管单位网址：
                                            </th>
                                            <td>
                                                <asp:TextBox ID="shareNewsUrl" class="input-md" runat="server"></asp:TextBox>
                                                <span class="tip">(为获取共享新闻)(未启用)</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>主管单位共享新闻模板：
                                            </th>
                                            <td>
                                                <asp:DropDownList ID="shareNewsLayoutTemplateID" runat="server" CssClass="input-md" DataValueField="pkId"
                                                    DataTextField="name">
                                                </asp:DropDownList>
                                                <span class="tip">(仅在使用主管单位信息共享栏目时为新闻指定新闻页模板用)</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>网站页面缓存时间：
                                            </th>
                                            <td>
                                                <asp:TextBox ID="outputCacheTime" class="input-md" runat="server" notNull="true"
                                                    dataType="integer" minvalue="0" maxvalue="1000" MaxLength="4" msgname="网站页面缓存时间">6</asp:TextBox>
                                                <span class="tip">(秒)</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>是否新窗口打开：
                                            </th>
                                            <td>
                                                <label>
                                                    <input id="NewsOpenModeRButton" name="switch-field-1" class="ace ace-switch ace-switch-5" type="checkbox" runat="server" />
                                                    <span class="lbl"></span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>是否使用右键功能：
                                            </th>
                                            <td>
                                                <label>
                                                    <input id="rdoIsAllowCopy" name="switch-field-1" class="ace ace-switch ace-switch-5" type="checkbox" runat="server" />
                                                    <span class="lbl"></span>
                                                </label>
                                                &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<span class="tip">(如设置为否，则网站所有前台页面将屏蔽右键功能)</span>
                                            </td>
                                        </tr>
                                        <tr id="UserStrongPasswordTR" runat="server">
                                            <th>用户密码等级设置：
                                            </th>
                                            <td>
                                                <asp:DropDownList ID="UserStrongPasswordRank" runat="server" CssClass="input-md">
                                                    <asp:ListItem Text="弱密码" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="普通密码" Value="2"></asp:ListItem>
                                                    <asp:ListItem Text="强密码" Value="3"></asp:ListItem>
                                                </asp:DropDownList>
                                                <span class="tip">[弱密码:任意字符；普通密码:数字或字母的组合；强密码:数字,字母和特殊字符的组合]</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>是否允许用户修改新闻发布时间：
                                            </th>
                                            <td>
                                                <label>
                                                    <input id="rbnAllowNewsUpdtime" runat="server" name="switch-field-1" class="ace ace-switch ace-switch-5" type="checkbox" />
                                                    <span class="lbl"></span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>是否开启前台敏感词过滤：
                                            </th>
                                            <td>
                                                <label>
                                                    <input id="IsSensitiveWords" runat="server" name="switch-field-1" class="ace ace-switch ace-switch-5" type="checkbox" />
                                                    <span class="lbl"></span>
                                                </label>
                                            </td>
                                        </tr>
                                        <tr style="display: none">
                                            <th>是否允许敏感词监控发送至运营平台：
                                            </th>
                                            <td>
                                                <asp:DropDownList ID="SWMrPostPlatform" runat="server" class="input-md">
                                                    <asp:ListItem Text="不允许" Value="0"></asp:ListItem>
                                                    <asp:ListItem Text="允许" Value="1"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr style="display: none">
                                            <th>敏感词监控运营平台服务地址：
                                            </th>
                                            <td>
                                                <asp:TextBox ID="SensitiveWordMonitorPostPlatformServiceUrl" runat="server" class="input-md"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <!--/edit-table-->
                                <div class="ft">
                                    <div class="action-field btn-pl">
                                        <asp:Button ID="btnSave" class="btn btn-sm btn-primary" runat="server" Text="保 存" OnClientClick="return checkAllValidate();" OnClick="btn_Click"></asp:Button>
                                        &nbsp;
                    <asp:Button ID="btnReset" class="btn btn-sm btn-primary" runat="server" Text="重 载" OnClick="btn_Click"></asp:Button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div>
                </div>
            </div>
        </form>
    </div>

    <!--#include file = "../Css/foot.htm" -->
     <script type="text/javascript">
         $(document).ready(function () {

             $("#btnSensitiveWords").click(function () {
             }).fancybox({
                 'width': 1100,
                 'height': 775,
                 'type': 'iframe',
                 'padding': '0',
                 'href': 'manageSensitiveWord.aspx'
             })

             //编辑导航页（改为fancybox形式）
             $("#btnNavpage").click(function () {
                 var filename = $("#navPage").val().trim();
                 if (filename == "" || !(checkfileExt(filename))) {
                     alert('请输入扩展名为htm或者html的文件名');
                     $.fancybox.cancle();
                     return false;
                 }
                 var src = "../creatNavpage.aspx?name=" + filename;
                 $(this).removeAttr('href').attr('href', src);

             }).fancybox({
                 'width': 790,
                 'height': 630,
                 'type': 'iframe',
                 'padding': '0'
             });


             //保存前验证（改用统一验证js）
             function editCheck() {
                 if (checkAllValidate()) {
                     return true;
                 }
                 else {
                     return false;
                 }
             }
             //验证文件扩展名
             function checkfileExt(filename) {
                 var point = filename.lastIndexOf(".");
                 var type = filename.substr(point).toLowerCase();
                 if (type == ".htm" || type == ".html") {
                     return true;
                 }
             }
         })

         function returnNavigation(name) {
             document.all.navPage.value = "name";
         }
    </script>
</body>
</html>
