<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    EnableEventValidation="false" Inherits="PowerEasy.Module.General.WebSite.Admin.Contents.Category"
    ValidateRequest="false" Title="栏目添加/修改" CodeBehind="Category.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="Server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="Server">
    <asp:ScriptManager ID="SmCategory" ScriptMode="release" runat="server" EnablePartialRendering="true" EnablePageMethods="true">
        <Services>
            <asp:ServiceReference Path="~/WebServices/CategoryService.asmx" />
        </Services>
    </asp:ScriptManager>
    <script language="JavaScript" type="text/JavaScript">
        var tID = 0;
        var arrTabTitle = new Array("TabTitle0", "TabTitle1", "TabTitle2", "<%= TabTitle3.ClientID %>", "TabTitle4", "TabTitle5", "<%= TabTitle6.ClientID %>", "TabTitle7", "TabTitle8");
        var arrTabs = new Array("Tabs0", "Tabs1", "Tabs2", "Tabs3", "Tabs4", "Tabs5", "Tabs6", "Tabs7", "Tabs8");
        function ShowTabs(ID) {
            if (ID != tID) {
                document.getElementById(arrTabTitle[tID].toString()).className = "tabtitle";
                document.getElementById(arrTabTitle[ID].toString()).className = "titlemouseover";
                document.getElementById(arrTabs[tID].toString()).style.display = "none";
                document.getElementById(arrTabs[ID].toString()).style.display = "";
                tID = ID;
            }
        }
        function HideTabTitle(displayValue, tempType) {
            for (var i = 1; i < arrTabTitle.length; i++) {
                if (tempType == 0 && i == 2) {
                    document.getElementById(arrTabTitle[i].toString()).style.display = "none";
                }
                else {
                    document.getElementById(arrTabTitle[i].toString()).style.display = displayValue;
                }
            }
        }
        function setFileFileds(num) {
            var id = "<%=objFiles1.ClientID%>";
            id = id.replace("1", "");
            for (var i = 1, str = ''; i <= 20; i++) {
                document.getElementById(id + i.toString()).style.display = "none";
            }
            for (var i = 1, str = ''; i <= num; i++) {
                document.getElementById(id + i.toString()).style.display = "";
            }
        }

        function HidePermissionTitle(type) {
            if (type == 0) {
                document.getElementById(arrTabTitle[6].toString()).style.display = "none";
            }

            if (type == 1) {
                document.getElementById(arrTabTitle[6].toString()).style.display = "";
            }
        }

         function sub_Custom_Content(btnObj) {
            var btnID = btnObj.id;
            var idNum = btnID.substring(14, btnID.length);
            var txtID = "<%=Custom_Content1.ClientID%>";
            txtID = txtID.replace("1", "");
            thisID = txtID + idNum;
            var txtvar = (document.getElementById(thisID)).value;
            $("#ly").css("display", "block")
            .css("width", document.body.clientWidth)
            .css("height", document.body.clientHeight);
            var TopNum = 0;
            if (navigator.appName == "Netscape") {
                TopNum = document.documentElement.scrollTop;
            } else {
                TopNum = document.body.scrollTop + document.documentElement.scrollTop;
            }
            jQuery("#EditDiv").css("display", "block")
            .css("top",TopNum+25+"px")
            
            <%=ContentExplain.ClientID%>$$ckeditor$$obj.setData(txtvar);
        }

         function set_Custom_Content() {
            var txtvar = <%=ContentExplain.ClientID%>$$ckeditor$$obj.getData();

            (document.getElementById(thisID)).value = txtvar;
            jQuery("#ly").css("display", "none");
            jQuery("#EditDiv").css("display", "none");
           
        }

        function close_Custom_Content() {
            $("#ly").css("display", "none");
            $("#EditDiv").css("display", "none");
        }

    <!--
        function addItem(ItemList, Target) {
            for (var x = 0; x < ItemList.length; x++) {
                var opt = ItemList.options[x];
                if (opt.selected) {
                    flag = true;
                    for (var y = 0; y < Target.length; y++) {
                        var myopt = Target.options[y];
                        if (myopt.value == opt.value) {
                            flag = false;
                        }
                    }
                    if (flag) {
                        Target.options[Target.options.length] = new Option(opt.text, opt.value, 0, 0);
                    }
                }
            }
        }

        /**
        * move one selected option from a select.
        *
        * @author  Chunsheng Wang <wwccss@263.net>
        */
        function delItem(ItemList) {
            for (var x = ItemList.length - 1; x >= 0; x--) {
                var opt = ItemList.options[x];
                if (opt.selected) {
                    ItemList.options[x] = null;
                }
            }
        }

        function SelectedItem(ItemList) {
            var input = "";
            for (var x = ItemList.length - 1; x >= 0; x--) {
                var opt = ItemList.options[x];
                if (input == "") {
                    input = opt.value;
                }
                else {
                    input = input + "," + opt.value;
                }
            }
            document.getElementById("ListTemplateInput").value = input;
        }

        function ChangeElementValue(elementId, Value) {
            if (Value != "-1") {
                document.getElementById(elementId).value = Value;
            }
        }

        function ShowSelectRelation(type) {
            ShowControl("<%= SelectRelation.ClientID %>", type);
        }

        function ShowTrIsLockIP(type) {
            var listPageCreate = "<%= RadlIsListPageCreate.ClientID %>_" + "1";
            var contentPageCreate = "<%= RadlIsContentPageCreate.ClientID %>_" + "1";
            if ((document.getElementById(listPageCreate).checked) || (document.getElementById(contentPageCreate).checked)) {
                ShowControl("<%= TrIsLockIP.ClientID %>", 0);
                ShowTrLockIPWhiteAndBlack(0);
            }
            else {
                ShowControl("<%= TrIsLockIP.ClientID %>", type);
                var listIsLockIP = "<%= RadlIsListIsLockIP.ClientID %>_" + "1";
                if (document.getElementById(listIsLockIP).checked) {
                    ShowTrLockIPWhiteAndBlack(1);
                }
            }
        }

        function ShowTrLockIPWhiteAndBlack(type) {
            ShowControl("<%= TrIPLockWhite.ClientID %>", type);
        }

        function ShowControl(controlName, type) {
            if (type == "1") {
                document.getElementById(controlName).style.display = "";
            }
            else {
                document.getElementById(controlName).style.display = "none";
            }
        }

        function SelectAll(elementId) {
            for (var i = 0; i < document.getElementById(elementId).length; i++) {
                document.getElementById(elementId).options[i].selected = true;
            }
        }

        function UnSelectAll(elementId) {
            for (var i = 0; i < document.getElementById(elementId).length; i++) {
                document.getElementById(elementId).options[i].selected = false;
            }
        }
    //-->
    </script>
    <script language="javascript" type="text/javascript">
        function GetInitial() {
            if ($get("<%= TxtNodeName.ClientID %>").value != "") {
                PowerEasy.Module.General.WebSite.WebServices.CategoryService.GetInitial($get("<%= TxtNodeName.ClientID %>").value, onInitial);
            }
        }

        function onInitial(value) {
            $get("<%= TxtNodeIdentifier.ClientID %>").value = value;
            $get("<%= TxtNodeDir.ClientID %>").value = value;
        }


        function GetBatchInitial() {
            var nodeNames = $get("<%= TxtNodeNames.ClientID %>").value;
            if (nodeNames.value != "") {
                PowerEasy.Module.General.WebSite.WebServices.CategoryService.GetInitial(nodeNames, onBatchInitial);
            }
        }

        function onBatchInitial(value) {
            $get("<%= TxtNodeIdentifiers.ClientID %>").value = value;
            $get("<%= TxtNodeDirs.ClientID %>").value = value;
        }
    </script>
    <script language="JavaScript" type="text/javascript">
        jQuery(function () {
            function CheckFile(obj, allowEmpty, isContentTemplate) {
                checkObj = obj;
                var enablePhone = jQuery("#<%=RbtnlEnablePhone.ClientID %>").find("input[type='radio']:checked").val();
                var enablePad = jQuery("#<%=RbtnlEnablePad.ClientID %>").find("input[type='radio']:checked").val();
                if (enablePhone == "False" && enablePad == "False") {
                    jQuery("#err" + checkObj.attr("id")).remove();
                    return;
                }

                var id = checkObj.attr("id");
                var path = checkObj.val();
                var xmlData = "<?xml version='1.0' encoding='utf-8'?><root><type>TemplateFileExits</type><id>" + id + "</id><enablePhone>" + enablePhone + "</enablePhone><enablePad>" + enablePad + "</enablePad><path>" + path + "</path></root>";
                if (allowEmpty && checkObj.val() == "") {
                    jQuery("#err" + checkObj.attr("id")).remove();
                } else {
                    if (isContentTemplate) {
                        if (checkObj.parent().prev().find("input[type='checkbox']").attr("checked")) {
                            jQuery.post("<%=BasePath %>ajax.aspx?HandlerName=MobileAjaxHandler", xmlData, function (data) {
                                CheckResult(data);
                            });
                        } else {
                            jQuery("#err" + checkObj.attr("id")).remove();
                        }
                    } else {
                        jQuery.post("<%=BasePath %>ajax.aspx?HandlerName=MobileAjaxHandler", xmlData, function (data) {
                            CheckResult(data);
                        });
                    }
                }
            }

            function CheckResult(result) {
                var status = jQuery(result).find("status").text();
                var exists = jQuery(result).find("exists").text();
                var id = jQuery(result).find("id").text();
                var errId = "err" + id;
                jQuery("#" + errId).remove();
                if (status == "ok" && exists == "False") {
                    jQuery("#" + id).parent().append("<font color='red' id=\"" + errId + "\">移动设备指定的模板页不存在！</font>");
                }
            }

            function BindValueChange(obj, isNull, isContent) {
                if ("<%=enableMobile%>" == "true") {
                    obj.change(function() {
                        CheckFile(jQuery(this), isNull, isContent);
                    });
                }
            }

            BindValueChange(jQuery("#<%=FileContainChildTemplate.ClientID %>"), false, false);
            BindValueChange(jQuery("#<%=FileCdefaultListTmeplate.ClientID %>"), true, false);

            jQuery("#td_tempate").find("input[id$='FileCTemplate']").each(function () {
                BindValueChange(jQuery(this), false, true);
            });

            function InitTemplate() {
                if ("<%=enableMobile%>"=="true") {
                    CheckFile(jQuery("#<%=FileContainChildTemplate.ClientID %>"), false, false);
                    CheckFile(jQuery("#<%=FileCdefaultListTmeplate.ClientID %>"), true, false);
                    jQuery("#td_tempate").find("input[id$='FileCTemplate']").each(function() {
                        CheckFile(jQuery(this), false, true);
                    });
                }
            }

            InitTemplate();
        });
    </script>

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td id="TabTitle0" class="titlemouseover" onclick="ShowTabs(0)">
                基本信息
            </td>
            <td id="TabTitle1" class="tabtitle" onclick="ShowTabs(1)">
                栏目选项
            </td>
            <td id="TabTitle2" class="tabtitle" onclick="ShowTabs(2)">
                模板选项
            </td>
            <td id="TabTitle3" class="tabtitle" onclick="ShowTabs(3)" runat="server">
                收费设置
            </td>
            <td id="TabTitle4" class="tabtitle" onclick="ShowTabs(4)">
                前台样式
            </td>
            <td id="TabTitle5" class="tabtitle" onclick="ShowTabs(5)">
                生成选项
            </td>
            <td id="TabTitle6" class="tabtitle" runat="server" onclick="ShowTabs(6)">
                权限设置
            </td>
            <td id="TabTitle7" class="tabtitle" onclick="ShowTabs(7)">
                自设内容
            </td>
            <td id="TabTitle8" class="tabtitle" onclick="ShowTabs(8)" style="<%= IsShow()%>">
                移动设备
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="5" cellspacing="1" class="border">
        <tr class="tdbg">
            <td valign="top" style="margin-top: 0px; margin-left: 0px;">
                <table width="100%" cellpadding="2" cellspacing="1" style="background-color: white;">
                    <%-- 基本信息--%>
                    <tbody id="Tabs0">
                        <tr class="tdbg" runat="server" id="TrBIConfigType">
                            <td class="tdbgleft">
                                <strong>配置类型：</strong>
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlBIConfigType" RepeatDirection="Horizontal" RepeatLayout="Flow"
                                    runat="server" onclick="ShowInfoByConfigType()">
                                    <asp:ListItem Text="可添加所有信息" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="只添加内容信息" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="只添加商品信息" Value="2"></asp:ListItem>
                                </asp:RadioButtonList>
                                <br />
                                <span id="spanConfigTypeMessage" style="display: none; color: Blue;" />
                            </td>
                        </tr>
                        <tr id="TrNodeId" class="tdbg" runat="server" visible="false">
                            <td style="width: 300" class="tdbgleft">
                                <strong>栏目ID：</strong>
                            </td>
                            <td>
                                <%--<span style="color: Red">
                                    <asp:Literal runat="server" ID="LitNodeId"></asp:Literal></span>--%>
                                <asp:Label ID="LitNodeId" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>所属栏目：</strong>
                            </td>
                            <td>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <asp:DropDownList ID="DropParentNode" DataValueField="NodeId" DataTextField="NodeName"
                                            runat="server" AppendDataBoundItems="true" AutoPostBack="true" OnSelectedIndexChanged="DropParentNode_SelectedIndexChanged">
                                            <asp:ListItem Text="无" Value="0"></asp:ListItem>
                                        </asp:DropDownList>
                                        <pe:ExtendedLabel HtmlEncode="false" ID="LblNodePermissions" runat="server" Text=""></pe:ExtendedLabel>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <pe:ExtendedLabel HtmlEncode="false" ID="LblNodeName" runat="server" Text=""></pe:ExtendedLabel>
                                <asp:HiddenField ID="HdnNodeId" Value="0" runat="server" />
                            </td>
                        </tr>
                        <tr class="tdbg" runat="server" id="NodeName">
                            <td style="width: 300" class="tdbgleft">
                                <strong>栏目名称：</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="TxtNodeName" runat="server" Columns="30" MaxLength="200"></asp:TextBox>
                                <pe:RequiredFieldValidator ID="ValrNodeNameTab0" runat="server" ErrorMessage="栏目名称不能为空！"
                                    ControlToValidate="TxtNodeName" Display="Dynamic" SetFocusOnError="True"></pe:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr class="tdbg" runat="server" id="NodeIdentifier">
                            <td class="tdbgleft" style="width: 300">
                                <strong>栏目标识符：</strong><br />
                                用于前台调用时可以直接用标识符取代ID。
                            </td>
                            <td>
                                <asp:TextBox ID="TxtNodeIdentifier" runat="server" Columns="30"></asp:TextBox>
                                <pe:RequiredFieldValidator ID="ValrNodeIdentifierTab0" runat="server" ErrorMessage="标识符不能为空！"
                                    ControlToValidate="TxtNodeIdentifier" Display="Dynamic" SetFocusOnError="True"></pe:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr class="tdbg" runat="server" id="Tr1">
                            <td class="tdbgleft" style="width: 300">
                                <strong>是否启用子域名：</strong><br />
                                只能在一级节点上开启子域名功能
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadEnableSubDomain" RepeatDirection="Horizontal" RepeatLayout="Flow"
                                    runat="server">
                                    <asp:ListItem Text="不启用" Value="false" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="启用" Value="true"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg" runat="server" id="Tr2">
                            <td class="tdbgleft" style="width: 300">
                                <strong>子域名：</strong><br />
                                只能在一级节点上开启子域名功能，此处填写的<br />
                                主域名必须和网站信息配置的网站地址一样。
                            </td>
                            <td>
                                <asp:TextBox ID="TxtSubDomain" Width="360px" runat="server"></asp:TextBox><br />
                                例如：http://news.powereasy.net/
                            </td>
                        </tr>
                        <tr class="tdbg" runat="server" id="NodeDir">
                            <td style="width: 300" class="tdbgleft">
                                <strong>栏目的目录名：</strong><br />
                            </td>
                            <td>
                                <asp:TextBox ID="TxtNodeDir" MaxLength="20" runat="server" Columns="20"></asp:TextBox>
                                <span style="color: Blue">注意，目录名只能是字母、数字、下划线组成<pe:RequiredFieldValidator ID="Valr"
                                    ControlToValidate="TxtNodeDir" Display="Dynamic" ErrorMessage="栏目的目录名不能为空！" SetFocusOnError="True"
                                    runat="server"></pe:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegTxtNodeDir" runat="server" ControlToValidate="TxtNodeDir"
                                        Display="Dynamic" ValidationExpression="[_a-zA-Z0-9]*" ErrorMessage="目录名格式错误"
                                        SetFocusOnError="True"></asp:RegularExpressionValidator></span><br />
                            </td>
                        </tr>
                        <tr class="tdbg" runat="server" id="BatchCategory" visible="false">
                            <td style="width: 300" class="tdbgleft">
                                <strong>批量添加栏目：</strong><br />
                            </td>
                            <td>
                                <table>
                                    <tr>
                                        <td align="center">
                                            栏目名称
                                        </td>
                                        <td align="center">
                                            栏目标识符
                                        </td>
                                        <td align="center">
                                            栏目的目录名
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="TxtNodeNames" MaxLength="255" runat="server" Columns="50" Height="180px"
                                                TextMode="MultiLine" Width="135px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TxtNodeIdentifiers" MaxLength="255" runat="server" Columns="50"
                                                Height="180px" TextMode="MultiLine" Width="135px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TxtNodeDirs" MaxLength="255" runat="server" Columns="50" Height="180px"
                                                TextMode="MultiLine" Width="135px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                                <pe:RequiredFieldValidator ID="ValrNodeNameTab1" runat="server" ErrorMessage="栏目名称不能为空！"
                                    ControlToValidate="TxtNodeNames" Display="Dynamic" SetFocusOnError="True" RequiredText=""></pe:RequiredFieldValidator>
                                <pe:RequiredFieldValidator ID="ValrNodeIdentifierTab1" runat="server" ErrorMessage="标识符不能为空！"
                                    ControlToValidate="TxtNodeIdentifiers" Display="Dynamic" SetFocusOnError="True"
                                    RequiredText=""></pe:RequiredFieldValidator>
                                <pe:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="TxtNodeDirs"
                                    Display="Dynamic" ErrorMessage="栏目的目录名不能为空！" SetFocusOnError="True" runat="server"
                                    RequiredText=""></pe:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegTxtNodeDir1" runat="server" ControlToValidate="TxtNodeDirs"
                                    Display="Dynamic" ValidationExpression="[_a-zA-Z\r\n][_a-zA-Z0-9\r\n]*" ErrorMessage="目录名格式错误"
                                    SetFocusOnError="True"></asp:RegularExpressionValidator>
                                <span style="color: Blue">注：一行填写一个栏目信息，并且目录名只能是字母、数字、下划线组成，首字符不能是数字。</span>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>栏目图片地址：</strong><br />
                                用于在栏目页显示指定的图片
                            </td>
                            <td>
                                <asp:TextBox ID="TxtNodePicUrl" MaxLength="255" Width="360px" runat="server" Columns="50"></asp:TextBox>
                                <pec:FloatingDialog ID="NodePicUrlFileFloatingDialog" runat="server" ShowType="1"
                                    Width="550" Height="380" Name="选择" Skin="inputbutton" Title="选择文件" />
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>栏目提示：</strong><br />
                                鼠标移至栏目名称上时将显示设定的提示文字（不支持HTML）
                            </td>
                            <td>
                                <asp:TextBox ID="TxtTips" runat="server" Columns="60" Height="30" Width="500" Rows="2"
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>栏目说明：</strong><br />
                                用于在栏目页详细介绍栏目信息，支持HTML
                            </td>
                            <td>
                                <asp:TextBox ID="TxtDescription" runat="server" Columns="60" Height="30" Width="500"
                                    Rows="2" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>栏目META关键词：</strong><br />
                                针对搜索引擎设置的关键词<br />
                                多个关键词请用,号分隔
                            </td>
                            <td>
                                <asp:TextBox ID="TxtMetaKeywords" runat="server" Height="65" Width="500" Columns="60"
                                    Rows="4" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>栏目META网页描述：</strong><br />
                                针对搜索引擎设置的网页描述<br />
                                多个描述请用,号分隔
                            </td>
                            <td>
                                <asp:TextBox ID="TxtMetaDescription" runat="server" Height="65" Width="500" Columns="60"
                                    Rows="4" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                    </tbody>
                    <%--栏目选项--%>
                    <tbody id="Tabs1" style="display: none">
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>打开方式：</strong>
                            </td>
                            <td>
                                <asp:RadioButton ID="RadOpenType0" Checked="true" GroupName="OpenType" runat="server" />在原窗口打开&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:RadioButton ID="RadOpenType1" GroupName="OpenType" runat="server" />在新窗口打开
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300;" class="tdbgleft">
                                <strong>栏目类型：</strong><br />
                                <div style="color: Red; width: 300px;">
                                    栏目权限为继承关系。 例如：当父栏目设为“认证栏目”时，子栏目的权限设置将继承父栏目设置， 即使子栏目设为“开放栏目”也无效。相反，如果父栏目设为“开放栏目”，
                                    子栏目可以设为“半开放栏目”或“认证栏目”。<br />
                                    注意：归档栏目会将所有子栏目也归档。</div>
                            </td>
                            <td>
                                <asp:UpdatePanel ID="UpPurviewType" runat="server">
                                    <ContentTemplate>
                                        <table width="100%" border="0" cellpadding="2" cellspacing="1">
                                            <tr>
                                                <td style="width: 20%;" valign="top">
                                                    <asp:RadioButton ID="RadPurviewType0" AutoPostBack="true" GroupName="PurviewType"
                                                        runat="server" OnCheckedChanged="RadPurviewType_CheckedChanged" />开放栏目
                                                </td>
                                                <td>
                                                    任何人（包括游客）可以浏览和查看此栏目下的信息。
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 20%;" valign="top">
                                                    <asp:RadioButton ID="RadPurviewType1" AutoPostBack="true" GroupName="PurviewType"
                                                        runat="server" OnCheckedChanged="RadPurviewType_CheckedChanged" />半开放栏目
                                                </td>
                                                <td>
                                                    任何人（包括游客）都可以浏览。游客不可查看，其他会员根据会员组的栏目权限设置决定是否可以查看。
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 20%;" valign="top">
                                                    <asp:RadioButton ID="RadPurviewType2" AutoPostBack="true" GroupName="PurviewType"
                                                        runat="server" OnCheckedChanged="RadPurviewType_CheckedChanged" />认证栏目
                                                </td>
                                                <td>
                                                    游客不能浏览和查看，其他会员根据会员组的栏目权限设置决定是否可以浏览和查看。
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 20%;" valign="top">
                                                    <asp:RadioButton ID="RadPurviewType3" AutoPostBack="true" GroupName="PurviewType"
                                                        runat="server" OnCheckedChanged="RadPurviewType_CheckedChanged" />归档栏目
                                                </td>
                                                <td>
                                                    任何人（包括会员、管理员）都不可以在此栏目下添加信息。
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>评论权限：</strong>
                            </td>
                            <td>
                                <span onclick="javascript:SetEnableComment();" id="SetEnableComment">
                                    <asp:CheckBox ID="ChkEnableComment" runat="server" /></span>允许在此栏目发表评论&nbsp;&nbsp;<span
                                        onclick="javascript:SetEnableTouristsComment();" id="SetEnableTouristsComment"><asp:CheckBox
                                            ID="ChkEnableTouristsComment" runat="server" />允许游客在此栏目发表评论</span>
                                <br />
                                <asp:CheckBox ID="ChkCommentNeedCheck" runat="server" />评论需要审核
                            </td>
                        </tr>
                        <tr class="tdbg" id="TrWorkFlowTips">
                            <td style="width: 300" class="tdbgleft">
                                <strong>工作流：</strong>
                                <asp:PlaceHolder ID="WorkFlowTips" Visible="false" runat="server">
                                    <br />
                                    <span style="color: Blue">注：修改后只对新添加、新修改的内容启用新的工作流</span></asp:PlaceHolder>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropWorkFlow" DataTextField="FlowName" DataValueField="FlowId"
                                    runat="server" AppendDataBoundItems="true">
                                    <asp:ListItem Text="请选择" Value="-1"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="tdbg" id="trCultureName">
                            <td style="width: 300" class="tdbgleft">
                                <strong>语言设定：</strong>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropCultureName" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>是否启用此栏目的防止复制、防盗链功能：</strong>
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlEnableProtect" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Selected="True" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>是否启用此栏目的评论验证码功能：</strong>
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlEnableValidCode" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Selected="True" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>有子栏目时是否可以在此栏目添加内容：</strong>
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlEnableAddWhenHasChild" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False" Selected="True"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>是否启用会员访问记录统计：</strong>
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlEnableUserHitHistory" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Selected="True" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>本栏目热点的点击数最小值：</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="TxtHitsOfHot" runat="server" Columns="5"></asp:TextBox>
                                <asp:RangeValidator ID="ValgHitsOfHot" runat="server" ControlToValidate="TxtHitsOfHot"
                                    ErrorMessage="请输入整数" MinimumValue="0" MaximumValue="2147483647" Type="Integer"
                                    SetFocusOnError="True"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>本栏目推荐的推荐级最小值：</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="TxtLeastOfEliteLevel" runat="server" Columns="5"></asp:TextBox>
                                <asp:RangeValidator ID="ValgLeastOfEliteLevel" runat="server" ControlToValidate="TxtLeastOfEliteLevel"
                                    ErrorMessage="请输入整数" MinimumValue="0" MaximumValue="2147483647" Type="Integer"
                                    SetFocusOnError="True"></asp:RangeValidator>
                            </td>
                        </tr>
                    </tbody>
                    <%--模板选项--%>
                    <tbody id="Tabs2" style="display: none">
                        <tr class="tdbg">
                            <td align="left" colspan="2">
                                <table width="100%">
                                    <tr>
                                        <td align="left" class="tdbgleft" style="width: 35%">
                                            <strong>栏目列表页模板：</strong>
                                        </td>
                                        <td align="left" style="width: 65%">
                                            <pe:TemplateSelectControl ID="FileContainChildTemplate" Width="300px" runat="server"></pe:TemplateSelectControl>
                                            <pe:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
                                                SetFocusOnError="true" ErrorMessage="栏目列表页模板不能为空！" ControlToValidate="FileContainChildTemplate"></pe:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td align="left" colspan="2">
                                <table width="100%">
                                    <tr>
                                        <td align="left" class="tdbgleft" style="width: 35%">
                                            <strong>栏目首页模板：</strong>
                                            <br />
                                            当某个节点下既有子节点又有仅属于此节点的内容时，可以指定栏目首页模板用于显示一个分类列表一样的封面页，同时指定列表页模板用于显示只属于此节点的内容列表。而一般情况下，我们都只需要指定列表页模板即可。在开启生成静态页时，如果这个栏目下的数据不够分页的话，即使指定了两个模板，也只能生成一个封面页。<span
                                                style="color: Red">注意此模板不支持分页！</span>
                                        </td>
                                        <td align="left" style="width: 65%">
                                            <pe:TemplateSelectControl ID="FileCdefaultListTmeplate" Width="300px" runat="server"></pe:TemplateSelectControl>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td id="td_tempate" align="left" colspan="2">
                                <div id="divContentModelTemplate">
                                    <asp:Repeater ID="RepContentModelTemplate" runat="server" OnItemDataBound="RepModelTemplate_ItemDataBound">
                                        <HeaderTemplate>
                                            <table width="100%">
                                                <tr class="tdbg">
                                                    <td align="left">
                                                        <strong>选择内容模型</strong>
                                                    </td>
                                                    <td align="left">
                                                        <strong>选择内容模型对应的内容页模板</strong>
                                                    </td>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td class="tdbgleft">
                                                    <asp:CheckBox ID="ChkModel" Text='<%# Eval("ModelName") %>' runat="server" /><asp:HiddenField
                                                        ID="HdnModelId" runat="server" Value='<%# Eval("ModelId") %>' />
                                                </td>
                                                <td style="width: 65%" align="left">
                                                    <pe:TemplateSelectControl ID="FileCTemplate" Width="300px" runat="server"></pe:TemplateSelectControl>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table></FooterTemplate>
                                    </asp:Repeater>
                                </div>
                                <div id="divShopModelTemplate">
                                    <asp:Repeater ID="RepShopModelTemplate" runat="server" OnItemDataBound="RepModelTemplate_ItemDataBound">
                                        <HeaderTemplate>
                                            <table width="100%">
                                                <tr class="tdbg">
                                                    <td align="left">
                                                        <strong>选择商品模型：</strong>
                                                    </td>
                                                    <td align="left" style="width: 65%">
                                                        <strong>选择商品模型对应的商品页模板</strong>
                                                    </td>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td class="tdbgleft">
                                                    <asp:CheckBox ID="ChkModel" Text='<%# Eval("ModelName") %>' runat="server" /><asp:HiddenField
                                                        ID="HdnModelId" runat="server" Value='<%# Eval("ModelId") %>' />
                                                </td>
                                                <td style="width: 65%" align="left">
                                                    <pe:TemplateSelectControl ID="FileCTemplate" Width="300px" runat="server"></pe:TemplateSelectControl>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table></FooterTemplate>
                                    </asp:Repeater>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                    <%--收费设置--%>
                    <tbody id="Tabs3" style="display: none">
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>积分奖励：</strong><br />
                                <span style="color: Green;">注：</span> 会员在此栏目发表信息时可以得到的积分
                            </td>
                            <td>
                                会员在此栏目每发表一条信息，可以得到
                                <asp:TextBox ID="TxtPresentExp" runat="server" Columns="5"></asp:TextBox>分积分<asp:RangeValidator
                                    ID="ValgPresentExp" runat="server" ControlToValidate="TxtPresentExp" ErrorMessage="请输入整数"
                                    MaximumValue="2147483647" MinimumValue="-2147483647" SetFocusOnError="True" Type="Integer"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>
                                    <pe:ShowPointName ID="ShowPointName3" runat="server" />奖励：</strong><br />
                                <span style="color: Green;">注：</span> 会员在此栏目发表信息时可以得到的<pe:ShowPointName ID="ShowPointName4"
                                    runat="server" />数
                            </td>
                            <td>
                                会员在此栏目每发表一条信息，可以得到
                                <asp:TextBox ID="TxtPoint" runat="server" Columns="5"></asp:TextBox><pe:ShowPointName
                                    ID="ShowPointName6" runat="server" PointType="PointUnit" /><pe:ShowPointName ID="ShowPointName5"
                                        runat="server" /><asp:RangeValidator ID="ValgPoint" runat="server" ControlToValidate="TxtPoint"
                                            ErrorMessage="请输入整数" MaximumValue="2147483647" MinimumValue="-2147483647" SetFocusOnError="True"
                                            Type="Integer"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>默认消费<pe:ShowPointName ID="ShowPointName" runat="server" />数：</strong><br />
                                <span style="color: Green;">注：</span> 会员在此栏目下阅读内容时，该内容默认的收费<pe:ShowPointName ID="ShowPointName1"
                                    runat="server" />数
                            </td>
                            <td>
                                <asp:TextBox ID="TxtDefaultItemPoint" runat="server" Columns="5"></asp:TextBox><pe:ShowPointName
                                    ID="ShowPointName2" PointType="PointUnit" runat="server"></pe:ShowPointName><asp:RangeValidator
                                        ID="ValgDefaultItemPoint" runat="server" ControlToValidate="TxtDefaultItemPoint"
                                        ErrorMessage="请输入整数" MaximumValue="2147483647" MinimumValue="-2147483647" SetFocusOnError="True"
                                        Type="Integer"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>默认重复收费：</strong><br />
                                <span style="color: Green;">注：</span> 会员在此栏目下阅读内容时，该内容默认的重复收费方式
                            </td>
                            <td>
                                <pec:ShowChargeType ID="ShowChargeType" runat="server" />
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 300" class="tdbgleft">
                                <strong>默认分成比例：</strong><br />
                                <span style="color: Green;">注：</span> 会员在此栏目下添加内容时，该内容默认的分成比例
                            </td>
                            <td>
                                <asp:TextBox ID="TxtDefaultItemDividePercent" runat="server" Columns="5"></asp:TextBox>
                                %
                            </td>
                        </tr>
                    </tbody>
                    <%-- 前台样式--%>
                    <tbody id="Tabs4" style="display: none">
                        <tr class="tdbg">
                            <td colspan="2" class="tdbgleft">
                                <span style="color: Blue">注：前台样式配置需要根据前台模板调用的标签对应功能才能起到相应的实际效果。</span>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 50%" class="tdbgleft">
                                <strong>是否在顶部菜单处显示：</strong><br />
                                此选项只对一级栏目有效。
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlShowOnMenu" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Selected="True" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 50%" class="tdbgleft">
                                <strong>是否位置导航处显示：</strong>
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlShowOnPath" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Selected="True" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 50%" class="tdbgleft">
                                <strong>是否在网站地图（栏目导航）处显示：</strong>
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlShowOnMap" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Selected="True" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 50%" class="tdbgleft">
                                <strong>是否在首页的分类列表处显示：</strong><br />
                                此选项只对一级栏目有效。如果一级栏目比较多，但首页不想显示太多的分类列表，这个选项就非常有用。
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlShowOnListIndex" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Selected="True" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 50%" class="tdbgleft">
                                <strong>是否在父栏目的分类列表处显示：</strong><br />
                                如果某栏目下有几十个子栏目，但只想显示其中几个子栏目的文章列表，这个选项就非常有用。
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlShowOnListParent" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                    runat="server">
                                    <asp:ListItem Text="是&nbsp;&nbsp;&nbsp;&nbsp;" Selected="True" Value="True"></asp:ListItem>
                                    <asp:ListItem Text="否" Value="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 50%" class="tdbgleft">
                                <strong>每页显示的内容数：</strong><br />
                                当此栏目为最下一级栏目时，则会分页显示此栏目中的内容，这里指定的是每页显示的内容数。
                            </td>
                            <td>
                                <pe:ComboBox ID="CombItemPageSize" Value="20" runat="server">
                                    <Items>
                                        <asp:ListItem>10</asp:ListItem>
                                        <asp:ListItem>20</asp:ListItem>
                                        <asp:ListItem>30</asp:ListItem>
                                        <asp:ListItem>40</asp:ListItem>
                                        <asp:ListItem>50</asp:ListItem>
                                    </Items>
                                </pe:ComboBox>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 50%" class="tdbgleft">
                                <strong>此栏目下的内容列表的排序方式<font style="color: Red">（推荐选择有索引的字段）</font>：</strong>
                            </td>
                            <td>
                                <asp:DropDownList ID="DrpItemListOrderType" runat="server">
                                    <asp:ListItem Value="1" Selected="True" Text="按ID降序"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="按ID升序"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="按更新时间降序"></asp:ListItem>
                                    <asp:ListItem Value="4" Text="按更新时间升序"></asp:ListItem>
                                    <asp:ListItem Value="5" Text="按点击数降序"></asp:ListItem>
                                    <asp:ListItem Value="6" Text="按点击数升序"></asp:ListItem>
                                    <asp:ListItem Value="7" Text="按评论数降序"></asp:ListItem>
                                    <asp:ListItem Value="8" Text="按评论数升序"></asp:ListItem>
                                    <asp:ListItem Value="9" Text="日点击数降序"></asp:ListItem>
                                    <asp:ListItem Value="10" Text="日点击数升序"></asp:ListItem>
                                    <asp:ListItem Value="11" Text="周点击数降序"></asp:ListItem>
                                    <asp:ListItem Value="12" Text="周点击数升序"></asp:ListItem>
                                    <asp:ListItem Value="13" Text="月点击数降序"></asp:ListItem>
                                    <asp:ListItem Value="14" Text="月点击数升序"></asp:ListItem>
                                    <asp:ListItem Value="15" Text="推荐级降序"></asp:ListItem>
                                    <asp:ListItem Value="16" Text="推荐级升序"></asp:ListItem>
                                    <asp:ListItem Value="17" Text="优先级降序"></asp:ListItem>
                                    <asp:ListItem Value="18" Text="优先级升序"></asp:ListItem>
                                    <asp:ListItem Value="19" Text="点击数降序/更新时间降序"></asp:ListItem>
                                    <asp:ListItem Value="20" Text="推荐级降序/更新时间降序"></asp:ListItem>
                                    <asp:ListItem Value="21" Text="优先级降序/更新时间降序"></asp:ListItem>
                                    <asp:ListItem Value="22" Text="评论数降序/更新时间降序"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 50%" class="tdbgleft">
                                <strong>此栏目下的内容打开方式：</strong>
                            </td>
                            <td>
                                <asp:DropDownList ID="DrpItemOpenType" runat="server">
                                    <asp:ListItem Text="在新窗口打开" Value="1" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="在原窗口打开" Value="0"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </tbody>
                    <%--生成选项--%>
                    <tbody id="Tabs5" style="display: none">
                        <tr class="tdbg">
                            <td class="tdbgleft">
                                <strong>列表页生成HTML：</strong><br />
                                <br />
                                <span style="color: Blue">注意：</span>请谨慎选择！以后在每一次更改生成方式前， 你最好先删除所有以前生成的文件， 然后在保存参数后再重新生成所有文件。
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlIsListPageCreate" RepeatDirection="Vertical" runat="server">
                                    <asp:ListItem Value="false" Selected="True">不生成HTML，使用动态页方式</asp:ListItem>
                                    <asp:ListItem Value="true">生成HTML</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbgleft">
                                <strong>增量更新HTML页数：</strong><br />
                                <span style="color: Blue">注意：</span>此页数为添加内容时自动更新的列表页数，如果设置为0则生成全部列表页。
                            </td>
                            <td>
                                <pe:NumericBox ID="TxtIncrementalUpdatePages" PositiveNumber="true" RealNumber="false"
                                    MaxLength="5" Text="5" Columns="10" runat="server"></pe:NumericBox>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 260px" class="tdbgleft">
                                <strong>动态页缓存：</strong>
                            </td>
                            <td>
                                <span onclick="javascript:SetNeedCache();" id="SetNeedCache">
                                    <asp:CheckBox ID="ChkNeedCache" runat="server" />当节点页为动态方式时，缓存本节点的首页内容</span>
                            </td>
                        </tr>
                        <tr id="TrSetCacheTime" class="tdbg" style="display: none">
                            <td style="width: 260px" class="tdbgleft">
                                <strong>设置缓存更新时间为：</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="TxtCacheTime" runat="server" Columns="5"></asp:TextBox>分钟
                                <asp:RangeValidator ID="ValgCacheTime" runat="server" ControlToValidate="TxtCacheTime"
                                    ErrorMessage="请输入有效实数" MinimumValue="0" MaximumValue="2147483647" Type="Double"
                                    SetFocusOnError="True"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbgleft">
                                <strong>栏目列表文件的存放位置：</strong><br />
                                <br />
                                <span style="color: Blue">注意：</span>当栏目列表页只有一页时，就不生成栏目列表第一页
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlListPageHtmlDirType" runat="server">
                                    <asp:ListItem Selected="true" Value="NodePath">列表文件分目录保存在所属栏目的文件夹中<br/><span id="ListPage1" style="color: blue"></span></asp:ListItem>
                                    <asp:ListItem Value="ListPath">列表文件统一保存在指定的“List”文件夹中<br/><span id="ListPage2" style="color: blue"></span></asp:ListItem>
                                    <asp:ListItem Value="RootPath">列表文件统一保存在一级栏目文件夹中<br/><span id="ListPage3" style="color: blue"></span></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbgleft">
                                <strong>栏目列表文件的文件扩展名：</strong><br />
                            </td>
                            <td>
                                <pe:ComboBox ID="PagePostfix" runat="server">
                                    <Items>
                                        <asp:ListItem>html</asp:ListItem>
                                        <asp:ListItem>htm</asp:ListItem>
                                        <asp:ListItem>shtml</asp:ListItem>
                                        <asp:ListItem>shtm</asp:ListItem>
                                    </Items>
                                </pe:ComboBox>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbgleft">
                                <strong>内容页生成HTML：</strong>
                                <br />
                                <br />
                                <span style="color: Blue">注意：</span>请谨慎选择！以后在每一次更改生成方式前，你最好先删除所有以前生成的文件，然后在保存参数后再重新生成所有文件。
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlIsContentPageCreate" RepeatDirection="horizontal" runat="server">
                                    <asp:ListItem Value="false" Selected="True">不生成</asp:ListItem>
                                    <asp:ListItem Value="true">生成</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbgleft">
                                <strong>内容页的文件名规则：</strong><br />
                                <span style="color: Blue">注意：</span> 可用标签为 {$CategoryDir}、{$Year}、<br />
                                {$Month}、{$Day}、{$InfoID}、{$pinyinOfTitle}、<br />
                                {$CategoryID}、{$CategoryIdentifier}
                            </td>
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td colspan="5">
                                            生成路径示例： <span id="ContentHtmlDir" style="color: Blue;"></span><span id="ContentHtmlFile"
                                                style="color: Blue;"></span><span id="ContentHtmlExt" style="color: Blue;"></span>
                                            <input id="ExampleRule" type="hidden" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <pe:ComboBox ID="TxtContentHtmlDir" Attribute="ShowContentHtmlDir(this.value);" Width="250px"
                                                runat="server">
                                                <Items>
                                                    <asp:ListItem>{$CategoryDir}/{$Year}/{$Month}/{$Day}</asp:ListItem>
                                                    <asp:ListItem>{$Year}/{$Month}/{$Day}</asp:ListItem>
                                                    <asp:ListItem>{$CategoryIdentifier}</asp:ListItem>
                                                    <asp:ListItem>{$CategoryID}</asp:ListItem>
                                                </Items>
                                            </pe:ComboBox>
                                        </td>
                                        <td>
                                            /
                                        </td>
                                        <td>
                                            <pe:ComboBox ID="TxtContentHtmlFile" Attribute="ShowContentHtmlFile(this.value);"
                                                Width="150px" runat="server">
                                                <Items>
                                                    <asp:ListItem>{$Time}{$InfoId}</asp:ListItem>
                                                    <asp:ListItem>{$InfoId}</asp:ListItem>
                                                    <asp:ListItem>{$pinyinOfTitle}</asp:ListItem>
                                                </Items>
                                            </pe:ComboBox>
                                        </td>
                                        <td>
                                            .
                                        </td>
                                        <td>
                                            <pe:ComboBox ID="TxtContentHtmlExt" Attribute="ShowContentHtmlExt(this.value);" runat="server">
                                                <Items>
                                                    <asp:ListItem>html</asp:ListItem>
                                                    <asp:ListItem>htm</asp:ListItem>
                                                    <asp:ListItem>shtml</asp:ListItem>
                                                    <asp:ListItem>shtm</asp:ListItem>
                                                </Items>
                                            </pe:ComboBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbgleft">
                                <strong>自动生成关联页面的方式：</strong><br />
                                <br />
                                添加/修改信息时，系统可以自动生成有关页面文件， 请在这里选择自动生成时的方式。
                            </td>
                            <td>
                                <asp:RadioButtonList ID="RadlAutoCreateHtmlType" runat="server">
                                    <asp:ListItem Value="None" Selected="True">手动生成，由管理员在生成管理手动生成全部所需的页面</asp:ListItem>
                                    <asp:ListItem Value="Content">只自动生成内容页</asp:ListItem>
                                    <asp:ListItem Value="ContentAndNode">自动生成内容页和所属栏目的列表页</asp:ListItem>
                                    <asp:ListItem Value="ContentAndNodeAndParentNode">自动生成内容页和所属栏目及父栏目的列表页</asp:ListItem>
                                    <asp:ListItem Value="ContentAndNodeAndParentNodeAndSpecial">自动生成内容页和所属栏目及父栏目的列表页以及自动关联的专题页</asp:ListItem>
                                    <asp:ListItem Value="ContentAndRelatedNode">自动生成所有关联的页（在发表、更新文章时，除了自动生成内容页和所属栏目及父栏目的列表页以外，还会自动会生成指定栏目的列表页）。</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg" runat="server" id="SelectRelation" style="display: none">
                            <td class="tdbgleft" style="width: 200px">
                                <strong>关联</strong>
                            </td>
                            <td>
                                <div style="float: right">
                                    关联专题<br />
                                    <asp:ListBox SelectionMode="Multiple" ID="LstRelationSpecial" DataTextField="SpecialName"
                                        DataValueField="SpecialId" runat="server" Height="251px" Width="200px"></asp:ListBox>
                                    <br />
                                    <input type="button" class="inputbutton" onclick="SelectAll('<%= LstRelationSpecial.ClientID %>')"
                                        value="选择所有" />
                                    <input type="button" class="inputbutton" onclick="UnSelectAll('<%= LstRelationSpecial.ClientID %>')"
                                        value="取消选择" /></div>
                                <div style="float: left">
                                    关联栏目<br />
                                    <asp:ListBox SelectionMode="Multiple" ID="LstRelationNodes" DataTextField="NodeName"
                                        DataValueField="NodeId" runat="server" Height="251px" Width="200px"></asp:ListBox>
                                    <br />
                                    <input type="button" class="inputbutton" onclick="SelectAll('<%= LstRelationNodes.ClientID %>')"
                                        value="选择所有" />
                                    <input type="button" class="inputbutton" onclick="UnSelectAll('<%= LstRelationNodes.ClientID %>')"
                                        value="取消选择" /></div>
                            </td>
                        </tr>
                    </tbody>
                    <tbody id="Tabs6" style="display: none">
                        <tr class="tdbg">
                            <td colspan="2">
                                <table width="100%" border="0" cellspacing="1">
                                    <tr class="tdbg">
                                        <td class="tdbgleft" style="width: 200px">
                                            <strong>会员组权限： </strong>
                                        </td>
                                        <td id="TdGroupPermissions" runat="server">
                                            <asp:UpdatePanel ID="UpPermissions" runat="server">
                                                <ContentTemplate>
                                                    <pe:ExtendedGridView ID="EgvPermissions" runat="server" AutoGenerateColumns="False"
                                                        DataKeyNames="GroupId" OnRowDataBound="EgvPermissions_RowDataBound">
                                                        <Columns>
                                                            <pe:BoundField HeaderText="会员组名" DataField="GroupName" />
                                                            <pe:TemplateField HeaderText="浏览">
                                                                <HeaderStyle Width="15%" />
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="ChkNodeSkim" runat="server"></asp:CheckBox>
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                            </pe:TemplateField>
                                                            <pe:TemplateField HeaderText="查看">
                                                                <HeaderStyle Width="15%" />
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="ChkNodeShow" runat="server" />
                                                                </ItemTemplate>
                                                            </pe:TemplateField>
                                                            <pe:TemplateField HeaderText="录入">
                                                                <HeaderStyle Width="15%" />
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="ChkNodeInput" runat="server" />
                                                                </ItemTemplate>
                                                            </pe:TemplateField>
                                                            <pe:TemplateField HeaderText="投稿终审通过">
                                                                <HeaderStyle Width="15%" />
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="ChkNodeNoNeedCheck" runat="server"></asp:CheckBox>
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                            </pe:TemplateField>
                                                            <pe:TemplateField HeaderText="修改和删除终审通过的信息">
                                                                <HeaderStyle Width="15%" />
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="ChkNodeManageSelfInfo" runat="server" />
                                                                </ItemTemplate>
                                                            </pe:TemplateField>
                                                        </Columns>
                                                    </pe:ExtendedGridView>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr class="tdbg">
                                        <td class="tdbgleft">
                                            <strong>角色权限： </strong>
                                        </td>
                                        <td id="TdRolePermissions" runat="server">
                                            <pe:ExtendedGridView ID="EgvRoleView" runat="server" AutoGenerateColumns="False"
                                                DataKeyNames="RoleId" OnRowDataBound="EgvRoleView_RowDataBound">
                                                <Columns>
                                                    <pe:BoundField HeaderText="角色名" DataField="RoleName" />
                                                    <pe:TemplateField HeaderText="查看">
                                                        <HeaderStyle Width="10%" />
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkNodePreview" runat="server" />
                                                        </ItemTemplate>
                                                    </pe:TemplateField>
                                                    <pe:TemplateField HeaderText="录入">
                                                        <HeaderStyle Width="10%" />
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkNodeInput" runat="server" />
                                                        </ItemTemplate>
                                                    </pe:TemplateField>
                                                    <pe:TemplateField HeaderText="修改终审通过的信息">
                                                        <HeaderStyle Width="10%" />
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkNodeModify" runat="server" />
                                                        </ItemTemplate>
                                                    </pe:TemplateField>
                                                    <pe:TemplateField HeaderText="审核">
                                                        <HeaderStyle Width="10%" />
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkNodeCheck" runat="server"></asp:CheckBox>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </pe:TemplateField>
                                                    <pe:TemplateField HeaderText="信息管理">
                                                        <HeaderStyle Width="15%" />
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkContentManage" runat="server"></asp:CheckBox>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </pe:TemplateField>
                                                    <pe:TemplateField HeaderText="当前栏目管理">
                                                        <HeaderStyle Width="15%" />
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkNodeManage" runat="server"></asp:CheckBox>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </pe:TemplateField>
                                                    <pe:TemplateField HeaderText="评论管理">
                                                        <HeaderStyle Width="15%" />
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkCommentManage" runat="server"></asp:CheckBox>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </pe:TemplateField>
                                                </Columns>
                                            </pe:ExtendedGridView>
                                        </td>
                                    </tr>
                                    <tr class="tdbg" runat="server" id="TrIsLockIP">
                                        <td class="tdbgleft">
                                            <strong>是否启用IP白名单： </strong>
                                            <br />
                                            <span style="color: Green;">注：</span> 此功能只对动态页起作用
                                        </td>
                                        <td>
                                            <asp:RadioButtonList ID="RadlIsListIsLockIP" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem Selected="True" Value="false">不启用</asp:ListItem>
                                                <asp:ListItem Value="true">启用</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr class="tdbg" runat="server" id="TrIPLockWhite" style="display: none">
                                        <td class="tdbgleft">
                                            <strong>节点IP白名单： </strong>
                                        </td>
                                        <td>
                                            &nbsp;<pec:IPLock ID="IPLockWhite" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                    <%--自设内容--%>
                    <tbody id="Tabs7" style="display: none">
                        <asp:Panel ID="PnlCustomFileds" runat="server">
                            <tr class="tdbg">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容项目数：</strong>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropCustomNum" runat="server" Style="z-index: 500;">
                                        <asp:ListItem Value="1">1</asp:ListItem>
                                        <asp:ListItem Value="2">2</asp:ListItem>
                                        <asp:ListItem Value="3">3</asp:ListItem>
                                        <asp:ListItem Value="4">4</asp:ListItem>
                                        <asp:ListItem Value="5">5</asp:ListItem>
                                        <asp:ListItem Value="6">6</asp:ListItem>
                                        <asp:ListItem Value="7">7</asp:ListItem>
                                        <asp:ListItem Value="8">8</asp:ListItem>
                                        <asp:ListItem Value="9">9</asp:ListItem>
                                        <asp:ListItem Value="10">10</asp:ListItem>
                                        <asp:ListItem Value="11">11</asp:ListItem>
                                        <asp:ListItem Value="12">12</asp:ListItem>
                                        <asp:ListItem Value="13">13</asp:ListItem>
                                        <asp:ListItem Value="14">14</asp:ListItem>
                                        <asp:ListItem Value="15">15</asp:ListItem>
                                        <asp:ListItem Value="16">16</asp:ListItem>
                                        <asp:ListItem Value="17">17</asp:ListItem>
                                        <asp:ListItem Value="18">18</asp:ListItem>
                                        <asp:ListItem Value="19">19</asp:ListItem>
                                        <asp:ListItem Value="20">20</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles1" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容1：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="1"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content1" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit1" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles2" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容2：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="2"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content2" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit2" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles3" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容3：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="3"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content3" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit3" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles4" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容4：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="4"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content4" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit4" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles5" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容5：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="5"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content5" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit5" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles6" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容6：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="6"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content6" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit6" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles7" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容7：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="7"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content7" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit7" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles8" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容8：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="8"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content8" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit8" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles9" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容9：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="9"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content9" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit9" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles10" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容10：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="10"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content10" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit10" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles11" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容11：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="11"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content11" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit11" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles12" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容12：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="12"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content12" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit12" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles13" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容13：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="13"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content13" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit13" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles14" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容14：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="14"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content14" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit14" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles15" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容15：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="15"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content15" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit15" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles16" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容16：</strong>
                                    <br />
                                    &nbsp;&nbsp;在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id"
                                        num="16" /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content16" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit16" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles17" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容17：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="17"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content17" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit17" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles18" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容18：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="18"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content18" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit18" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles19" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容19：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="19"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content19" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit19" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                            <tr class="tdbg" id="objFiles20" style="display: none" runat="server">
                                <td style="width: 150" class="tdbgleft">
                                    <strong>自设内容20：</strong>
                                    <br />
                                    在列表模板页面插入<span style="color: Blue">{PE.Label id="自设内容" nodeid="@Request_id" num="20"
                                        /} </span>
                                </td>
                                <td>
                                    <asp:TextBox ID="Custom_Content20" Style="width: 500px; height: 100px" TextMode="MultiLine"
                                        runat="server"></asp:TextBox>
                                    <div>
                                        <input id="Intricacy_Edit20" type="button" onclick="sub_Custom_Content(this)" value="可视化编辑" /></div>
                                </td>
                            </tr>
                        </asp:Panel>
                    </tbody>
                    <%--移动设备--%>
                    <tbody id="Tabs8" style="display: none">
                        <tr class="tdbg">
                            <td style="width: 30%" class="tdbgleft">
                                <strong>是否启用手机端：</strong><br />
                            </td>
                            <td style="width: 70%" >
                                <asp:RadioButtonList ID="RbtnlEnablePhone" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="True">是</asp:ListItem>
                                    <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td style="width: 30%" class="tdbgleft">
                                <strong>是否启用平板端：</strong><br />
                            </td>
                            <td style="width: 70%">
                                <asp:RadioButtonList ID="RbtnlEnablePad" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="True">是</asp:ListItem>
                                    <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </table>
    <br />
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td align="center">
                <pe:ExtendedButton ID="EBtnAdd" Text="添加" IsChecked="false" OnClick="EBtnAdd_Click"
                    runat="server" IsShowTabs="true" Visible="false" OnClientClick="return checkExtensionName();" />&nbsp;&nbsp;
                <pe:ExtendedButton ID="EBtnModify" Text="修改" IsChecked="false" OnClick="EBtnModify_Click"
                    runat="server" Visible="false" IsShowTabs="true" OnClientClick="return checkExtensionName();" />
                <input name="Cancel" type="button" class="inputbutton" id="BtnCancel" value="取消"
                    onclick="Redirect('CategoryManage.aspx')" />
                <asp:Button ID="EbtnDelete" Text="删除" OnClick="EBtnDelete_Click" OnClientClick="if(!this.disabled) return confirm('确实要删除此栏目吗？')"
                    runat="server" ValidationGroup="Delete" Visible="false" />
                <pe:ExtendedLiteral ID="ElBrowseFront" HtmlEncode="false" runat="server"></pe:ExtendedLiteral>
            </td>
        </tr>
    </table>
    <div id="ly" style="position: absolute; top: 0px; filter: alpha(opacity=60); opacity: 0.5;
        background-color: #777; z-index: 1000; left: 0px; display: none;">
    </div>
    <div id="EditDiv" class="EditDiv">
        <div id="EditTitle" class="EditTitle">
            <a href="javascript:" onclick="javascript:close_Custom_Content();" title="关闭" class="Edit_close">
            </a><span>编辑</span>
        </div>
        <div>
            <pe:CKeditor ID="ContentExplain" runat="server" Width="580px" Height="300px" Toolbar="Simple"
                ModuleName="SingleNode" FlashUpload="true" ImageUpload="true" LinkUpload="true">
            </pe:CKeditor>
        </div>
        <div align="center" class="EditTitle">
            <input type="button" onclick="set_Custom_Content();" value="确定" />
            <input type="button" onclick="close_Custom_Content();" value="取消" />
        </div>
    </div>
    <script language="JavaScript" type="text/javascript">
        //移动窗口部份
        var posX, posY, fdiv;

        document.getElementById("EditTitle").onmousedown = moveFloatingDiv;
        function moveFloatingDiv(e) {
            if (!e) e = window.event;  //如果是IE
            fdiv = this.parentNode;
            posX = e.clientX - (fdiv.offsetLeft);
            posY = e.clientY - (fdiv.offsetTop);
            document.onmousemove = mousemove;
        }

        document.onmouseup = function () {
            document.onmousemove = null;
        }

        function mousemove(ev) {
            if (ev == null) ev = window.event; //如果是IE
            fdiv.style.left = (ev.clientX - posX) + "px";
            fdiv.style.top = (ev.clientY - posY) + "px";
        } 
	<!--
	    var enableComment = document.getElementById('<%=ChkEnableComment.ClientID%>');
	    var enableTouristsComment = document.getElementById('<%=ChkEnableTouristsComment.ClientID%>');
	    var setEnableTouristsComment = document.getElementById('SetEnableTouristsComment');
	    function SetEnableComment(){
	        if (!enableComment.checked) {
	            enableTouristsComment.checked = false;
	            setEnableTouristsComment.style.display = "none";
	        }
	        else
	        {
	            setEnableTouristsComment.style.display = "";
	        }
		}
	    
	    function SetEnableTouristsComment(){
	        if (enableTouristsComment.checked) {
	            enableComment.checked = true;
	        } 
		}
		
		function ShowNodeDir(value)
		{
		    if( $get("<%=Tr1.ClientID %>")!=null)
		    {
		        PowerEasy.Module.General.WebSite.WebServices.CategoryService.EnableSubDomian(value,EnableSubDomain);
		    }
		    PowerEasy.Module.General.WebSite.WebServices.CategoryService.CategoryDir(value,ShowRule);
		}
		function EnableSubDomain(enableSubdomian)
		{
		 if(enableSubdomian)
		 {
		    $get("<%=Tr1.ClientID %>").style.display="none";
		    $get("<%=Tr2.ClientID %>").style.display="none";
		 }else{
		    $get("<%=Tr1.ClientID %>").style.display="";
		    $get("<%=Tr2.ClientID %>").style.display="";
		 } 
		 
		}
		
		function ShowContentHtmlDir(value)
		{
		   var nodeId = 0;
		    var nodeIdentifier;
		   if($get("<%=LitNodeId.ClientID %>")!=null&&$get("<%=TxtNodeIdentifier.ClientID %>")!=null)
		    {
		    nodeId = $get("<%=LitNodeId.ClientID %>").innerText;
		    nodeIdentifier = $get("<%=TxtNodeIdentifier.ClientID %>").value;
		    }
		   value=value.replace("{$CategoryID}",nodeId);
		   value=value.replace("{$CategoryIdentifier}",nodeIdentifier);
		   var dir=$get("ExampleRule").value;
		   value=value.replace("{$CategoryDir}",dir);
		   var d= new Date();
		   value=value.replace("{$Year}",d.getFullYear());
		   value=value.replace("{$Month}",d.getMonth());
		   value=value.replace("{$Day}",d.getDay());		   
		   $get("ContentHtmlDir").innerHTML=value;
		}
		function ShowContentHtmlFile(value)
		{		   
		    var d=new Date();
		    value=value.replace("{$Time}", String(d.getHours())+String(d.getMinutes())+String(d.getSeconds()));
		    value=value.replace("{$InfoId}",1);
		    var nodeId=1
		    if($get("<%=LitNodeId.ClientID %>")!=null)
		    {
		     nodeId = $get("<%=LitNodeId.ClientID %>").innerText;
		    }
		    var nodeIdentifier = $get("<%=TxtNodeIdentifier.ClientID %>").value;
		    value=value.replace("{$CategoryID}",nodeId);
		    value=value.replace("{$CategoryIdentifier}",nodeIdentifier);
		    $get("ContentHtmlFile").innerHTML="/"+value
		}
		function ShowContentHtmlExt(value)
		{
		    $get("ContentHtmlExt").innerHTML="."+value;
		}
		function GetRootPath(parentDir)
		{
		 if(parentDir!=""||parentDir!=null)
		 {
		    var tempDir=parentDir;
            var tempArray=tempDir.split("/");
            if(tempArray.length>2)
            {
                tempDir="/"+tempArray[1]+"/";
            }
            return tempDir;
          }else
          {
          return "";
          }
		}
		function ShowRule(value)
	    {
		    $get("ExampleRule").value=value
		    if($get("ContentHtmlDir")!="")
		    {
		   
		        ShowContentHtmlDir('<%=TxtContentHtmlDir.Value%>');
		        $get("ListPage1").innerHTML="例："+value+"Index.html（栏目首页）<br />"+value+"List_1.html（栏目列表第一页）";
		        $get("ListPage2").innerHTML="例："+GetRootPath(value)+"List/List_236.html（栏目首页）<br />"+GetRootPath(value)+"List/List_236_1.html（栏目列表第一页）";
		        $get("ListPage3").innerHTML="例："+GetRootPath(value)+"List_236.html（栏目首页）<br />"+GetRootPath(value)+"List_236_1.html（栏目列表第一页）";
		    }
		}
		
		function InitCategoryDir()
		{
		
		    ShowNodeDir(<%=RequestInt32("NodeID") %>);
		    if($get("<%=TxtContentHtmlFile.ClientID %>_Text").value!="")
		    {
		        ShowContentHtmlFile($get("<%=TxtContentHtmlFile.ClientID %>_Text").value);
		    }
		    if($get("<%=TxtContentHtmlExt.ClientID %>_Text").value!="")
		    {
		        ShowContentHtmlExt($get("<%=TxtContentHtmlExt.ClientID %>_Text").value);
		    }
		}
		InitCategoryDir();
		function SetNeedCache(){
		    if(document.getElementById('<%=ChkNeedCache.ClientID%>').checked)
		    {
               document.getElementById("TrSetCacheTime").style.display='';
            }
            else
            {
               document.getElementById("TrSetCacheTime").style.display="none";
            }
        }
        function IsShowtrCultureName()
        {
            if(document.getElementById("<%=DropCultureName.ClientID %>").selectedIndex < 0)
            {
                document.getElementById("trCultureName").style.display = "none";   
            }
        }
        IsShowtrCultureName();
        
        function BrowseFront(linkUrl)
        {
            window.open(linkUrl,"_blank");
        }
	//-->
	    
	    function ShowInfoByConfigType(){
	        var configType = jQuery("#<%=RadlBIConfigType.ClientID %> input[type='radio']:checked").val();
	        var productShowidlist = '#divShopModelTemplate';
	        var contentShowIdList = '#divContentModelTemplate,#TrWorkFlowTips,#<%=TabTitle3.ClientID %>,#<%=EgvPermissions.ClientID %> tr *:nth-child(n+5),#<%=EgvRoleView.ClientID %> tr *:nth-child(4)';
	        switch(configType){
	            case "0"://all
                    jQuery(productShowidlist).show();
                    jQuery(contentShowIdList).show();
	                jQuery("#spanConfigTypeMessage").hide();
	                break;
	            case "1"://only content
	                jQuery(productShowidlist).hide();
                    jQuery(contentShowIdList).show();
	                jQuery("#spanConfigTypeMessage").html("注意：选择此项将不会保存<b>商品模型</b>有关的参数！").show();
	                break;
	            case "2"://only product
	                jQuery(productShowidlist).show();
                    jQuery(contentShowIdList).hide();
  	                jQuery("#spanConfigTypeMessage").html("注意：选择此项将不会保存<b>内容模型</b>有关的参数！").show();
	                break;
	            default:
	                break;
	        
	        }
	    }
	    
        function pageLoad(target,args){
            ShowInfoByConfigType();
        }	

        //检查扩展名
        function checkExtensionName()
        {
            var pagePostfix=document.getElementById("<%=PagePostfix.ClientID%>");
            if(pagePostfix.value!="html"&&pagePostfix.value!="htm"&&pagePostfix.value!="shtml"&&pagePostfix.value!="shtm"&&pagePostfix.value!="")
            {
                pagePostfix.value="";
                alert("栏目列表文件的文件扩展名不是html、htm、shtml、shtm其中一种，请重新选择！");
                return false;
            }
            var txtContentHtmlExt=document.getElementById("<%=TxtContentHtmlExt.ClientID%>");
            if(txtContentHtmlExt.value!="html"&&txtContentHtmlExt.value!="htm"&&txtContentHtmlExt.value!="shtml"&&txtContentHtmlExt.value!="shtm"&&txtContentHtmlExt.value!="")
            {
                pagePostfix.value="";
                alert("内容页的文件扩展名不是html、htm、shtml、shtm其中一种，请重新选择！");
                return false;
            }
            return true;
        }
	    
    </script>
    <asp:ValidationSummary ID="ValSum" runat="server" ShowMessageBox="true" ShowSummary="false" />
</asp:Content>
