<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Contents.Single" ValidateRequest="false" Title="单页添加/修改"
    CodeBehind="Single.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">
        jQuery(function () {
            var checkObj = jQuery("#<%=FileCdefaultListTmeplate.ClientID %>");

            function CheckFile() {
                if ("<%=enableMobile%>" == "true") {
                var enablePhone = jQuery("#<%=RbtnlEnablePhone.ClientID %>").find("input[type='radio']:checked").val();
                var enablePad = jQuery("#<%=RbtnlEnablePad.ClientID %>").find("input[type='radio']:checked").val();
                var path = checkObj.val();
                if (enablePhone == "False" && enablePad == "False") {
                    jQuery("#err" + checkObj.attr("id")).remove();
                    return;
                }

                var xmlData = "<?xml version='1.0' encoding='utf-8'?><root><type>TemplateFileExits</type><enablePhone>" + enablePhone + "</enablePhone><enablePad>" + enablePad + "</enablePad><path>" + path + "</path></root>";
                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 errId = "err" + checkObj.attr("id");
                jQuery("#" + errId).remove();
                if (status == "ok" && exists == "False") {
                    checkObj.parent().append("<font color='red' id=\"" + errId + "\">移动设备指定的模板页不存在！</font>");
                }
            }

            checkObj.change(function (event) {
                CheckFile();
            });

            CheckFile();
        });

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


    var tID = 0;
    var arrTabTitle = new Array("TabTitle0", "TabTitle1", "TabTitle2");
    var arrTabs = new Array("Tabs0", "Tabs1", "Tabs2");
    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 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 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%>$$ueditor$$obj.setContent(txtvar);
        }

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

            (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");
        }
    </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;
        }
    </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)" style="<%= IsShow()%>">移动设备
            </td>
            <td>&nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border" style="margin: 0 auto;">
        <tbody id="Tabs0">
            <tr align="center">
                <td class="spacingtitle" colspan="2">
                    <asp:Label ID="LblTitle" runat="server" Text="添加单页节点" />
                </td>
            </tr>
            <tr id="TrNodeId" class="tdbg" runat="server" visible="false">
                <td class="tdbgleft">
                    <strong>节点ID：</strong>
                </td>
                <td>
                    <span style="color: Red">
                        <asp:Literal runat="server" ID="LitNodeId"></asp:Literal></span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>所属节点：</strong>
                </td>
                <td>
                    <asp:DropDownList ID="DropParentNode" DataValueField="NodeId" DataTextField="NodeName"
                        runat="server" AppendDataBoundItems="true">
                        <asp:ListItem Text="根节点" Value="0" />
                    </asp:DropDownList>
                    <asp:Label ID="LblNodeName" runat="server" Text="" />
                    <pe:ExtendedLabel ID="LblNodePermissions" runat="server" HtmlEncode="false"></pe:ExtendedLabel>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>单页名称：</strong>
                </td>
                <td>
                    <asp:TextBox ID="TxtNodeName" runat="server" />
                    <pe:RequiredFieldValidator ID="ValrNodeName" runat="server" ErrorMessage="单页名称不能为空！"
                        ControlToValidate="TxtNodeName" Display="Dynamic" SetFocusOnError="True" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>单页标识符：</strong><br />
                    用于前台调用时可以直接用标识符取代ID
                </td>
                <td>
                    <asp:TextBox ID="TxtNodeIdentifier" runat="server" />
                    <pe:RequiredFieldValidator ID="ValrNodeIdentifier" runat="server" ErrorMessage="标识符不能为空！"
                        ControlToValidate="TxtNodeIdentifier" Display="Dynamic" SetFocusOnError="True" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否生成HTML：</strong><br />
                </td>
                <td>
                    <asp:RadioButtonList ID="RadlIsCreate" 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>打开方式：</strong>
                </td>
                <td>
                    <asp:RadioButton ID="RadOpenType0" Checked="true" GroupName="OpenType" runat="server" />在原窗口打开
                <asp:RadioButton ID="RadOpenType1" GroupName="OpenType" runat="server" />在新窗口打开
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否在顶部菜单处显示：</strong><br />
                    此选项只对一级栏目有效。
                </td>
                <td>
                    <asp:RadioButtonList ID="RadlShowOnMenu" RepeatLayout="Flow" RepeatDirection="Horizontal"
                        runat="server">
                        <asp:ListItem Text="是" Selected="True" Value="True" />
                        <asp:ListItem Text="否" Value="False" />
                    </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="是" 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="是" Selected="True" Value="True"></asp:ListItem>
                        <asp:ListItem Text="否" Value="False"></asp:ListItem>
                    </asp:RadioButtonList>
                </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" runat="server">
                <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" id="trCultureName">
                <td class="tdbgleft">
                    <strong>语言设定：</strong>
                </td>
                <td>
                    <asp:DropDownList ID="DropCultureName" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <%--    <tr class="tdbg">
            <td class="tdbgleft">
                <strong>是否位置导航处显示：</strong></td>
            <td>
                <asp:RadioButtonList ID="RadlShowOnPath" RepeatLayout="Flow" RepeatDirection="Horizontal"
                    runat="server">
                    <asp:ListItem Text="是" Selected="True" Value="True" />
                    <asp:ListItem Text="否" Value="False" />
                </asp:RadioButtonList></td>
        </tr>--%>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong><span>栏目列表文件名及后缀：</span></strong><br />
                </td>
                <td align="left">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td>
                                <asp:Label ID="LblPageHtmlDir" runat="server" Text="" />
                            </td>
                            <td>
                                <asp:TextBox ID="TxtPageHtmlDir" runat="server" />
                            </td>
                            <td>.
                            </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>
                            <td>
                                <pe:RequiredFieldValidator ID="ValrPageHtmlDir" ControlToValidate="TxtPageHtmlDir"
                                    runat="server" ErrorMessage="单页名称不能为空" Display="Dynamic" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>指定单页模板：</strong>
                </td>
                <td align="left">
                    <pe:TemplateSelectControl ID="FileCdefaultListTmeplate" Width="300px" runat="server" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>单页图片地址：</strong><br />
                    用于在单页页显示指定的图片
                </td>
                <td>
                    <asp:TextBox ID="TxtNodePicUrl" MaxLength="255" runat="server" Width="360px" />
                    <pec:FloatingDialog ID="NodePicUrlFileFloatingDialog" runat="server" ShowType="1"
                        Width="550" Height="380" Name="选择" Skin="inputbutton" Title="选择文件" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>单页提示：</strong><br />
                    鼠标移至单页名称上时将显示设定的提示文字（不支持HTML）
                </td>
                <td>
                    <asp:TextBox ID="TxtTips" runat="server" Columns="60" Height="65px" Width="360px"
                        Rows="2" TextMode="MultiLine" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>单页说明：</strong><br />
                    用于在单页页详细介绍单页信息，支持HTML
                </td>
                <td>
                    <asp:TextBox ID="TxtDescription" runat="server" Columns="60" Height="65px" Width="360px"
                        Rows="2" TextMode="MultiLine" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>单页META关键词：</strong><br />
                    针对搜索引擎设置的关键词<br />
                </td>
                <td>
                    <asp:TextBox ID="TxtMetaKeywords" runat="server" Height="65px" Width="360px" Columns="60"
                        Rows="4" TextMode="MultiLine" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>单页META网页描述：</strong><br />
                    针对搜索引擎设置的网页描述<br />
                </td>
                <td>
                    <asp:TextBox ID="TxtMetaDescription" runat="server" Height="65px" Width="360px" Columns="60"
                        Rows="4" TextMode="MultiLine" />
                </td>
            </tr>
        </tbody>
        <tbody id="Tabs1" 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="Tabs2" style="display: none">
            <tr class="tdbg">
                <td style="width: 40%" class="tdbgleft">
                    <strong>是否启用手机端：</strong><br />
                </td>
                <td style="width: 60%">
                    <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: 40%" class="tdbgleft">
                    <strong>是否启用平板端：</strong><br />
                </td>
                <td style="width: 60%">
                    <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>
        <tbody>
            <tr class="tdbgbottom">
                <td colspan="2">
                    <asp:Button ID="EBtnSubmit" Text="保存" OnClick="EBtnSubmit_Click" OnClientClick="return checkExtensionName();" runat="server" />&nbsp;&nbsp;&nbsp;
                    <input name="Cancel" type="button" class="inputbutton" id="BtnCancel" value="取消"
                        onclick="Redirect('CategoryManage.aspx')" />&nbsp;&nbsp;&nbsp;
                    <pe:ExtendedLiteral ID="ElBrowseFront" HtmlEncode="false" runat="server"></pe:ExtendedLiteral>
                </td>
            </tr>
        </tbody>
    </table>
    <script language="JavaScript" type="text/javascript">
        function IsShowtrCultureName() {
            if (document.getElementById("<%=DropCultureName.ClientID %>").selectedIndex < 0) {
                document.getElementById("trCultureName").style.display = "none";
            }
        }
        IsShowtrCultureName();

        function BrowseFront(linkUrl) {
            window.open(linkUrl, "_blank");
        }
    </script>
    <div id="ly" style="position: absolute; top: 0px; filter: alpha(opacity=60); opacity: 0.5; background-color: #777; z-index: 5; 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:UEditor ID="ContentExplain" runat="server" Width="580px" Height="300px" Toolbar="Simple" ModuleName="SingleNode" FlashUpload="true" ImageUpload="true" LinkUpload="true">
            </pe:UEditor>
        </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";
        }

        //检查扩展名
        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;
            }
            return true;
        }

        function SetNeedCache() {
            if (document.getElementById('<%=ChkNeedCache.ClientID%>').checked) {
                document.getElementById('<%=TrSetCacheTime.ClientID%>').style.display = '';
            }
            else {
                document.getElementById('<%=TrSetCacheTime.ClientID%>').style.display = "none";
            }
        }
    </script>
</asp:Content>
