<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manageMenuEditor.aspx.cs" Inherits="Web.Wpdcc.manageMenuEditor" %>
<!DOCTYPE html>

<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>网站布局设置</title>
    <!--#include file = "../Css/head.htm" -->
    <style type="text/css">
        .module
        {
            position: relative;
            border: 1px solid #D2D2D2;
            margin-top: 10px;
        }
        .module input
        {
            vertical-align: middle;
            margin-right: 4px;
            _margin-right: 0;
        }
        .module img
        {
            vertical-align: middle;
            max-height: 16px;
        }
        .module .hd
        {
            height: 30px;
            line-height: 30px;
            border-bottom: 1px solid #D2D2D2;
            background: url(Images/hd_bg.png) left bottom repeat-x;
        }
        .hd .module-title
        {
            font-size: 16px;
            font-family: "微软雅黑";
            color: #333;
            margin-top:5px;
        }
        .module .bd
        {
            padding: 10px 10px 0 10px;
        }
        .module a, .module span
        {
            vertical-align: middle;
        }
        .module a:hover
        {
            text-decoration: none;
            color: #666;
        }
        .module-more
        {
            display: none;
            position: absolute;
            right: 10px;
            top: 0;
            height: 30px;
        }
        .example
        {
            margin-bottom: 8px;
        }
        .example, .setting
        {
            position: relative;
        }
        .e-click
        {
            color: red;
        }
        .e-time, .s-time
        {
            position: absolute;
            top: 2px;
            right: 0;
            font-family: "微软雅黑";
        }
        .e-time
        {
            color: #999;
        }
        .example img, .example span
        {
            display: none;
        }
        .example .e-time
        {
            display: inline;
        }
        .setting
        {
            height: 40px;
            line-height:40px;
        }
        .setting img, .setting a, .setting span
        {
            position: relative;
            vertical-align: middle;
        }
       .setting  .show
        {
            display: none !important;
            position: absolute;
            top: 30px;
            left: 0;
            padding: 0 10px;
            border: 1px solid #358FC4;
            background-color: #fff;
            border-radius: 2px;
        }
        .on .show
        {
            display: block !important;
        }
        .show img
        {
            margin: 10px;
        }
        .show img:hover, .show span:hover
        {
            background-color: #f1f1f1;
        }
        .arrow
        {
            position: absolute;
            left: 12px;
            top: -6px;
            width: 8px;
            height: 6px;
            background: url(Images/arrow.png) no-repeat;
        }
        .module-more .arrow
        {
            display: block;
            top: auto;
            left: auto;
            right: 12px;
            bottom: -10px;
            background: url(Images/arrow_down.png) no-repeat;
        }
        .set-hot .arrow
        {
            left: 150px;
        }
        .set-new .arrow
        {
            left: 100px;
        }
        .set-top .arrow
        {
            left: 200px;
        }
        .set-more .arrow
        {
            left: 370px;
            clear: both;
        }
        .set-more span
        {
            display: inline-block;
            _display: inline;
            margin-right: 10px;
            cursor: default;
        }
        .set
        {
            float: left;
            height: 30px;
            margin-right: 12px;
        }
        .se-more
        {
            position: absolute;
            top: 2px;
            right: 130px;
            font-family: "微软雅黑";
        }
        .set-drop-txt
        {
            font-size:14px;
            font-family: "微软雅黑";
            border:1px solid #C2C2C4;
            height:25px;
        }
    </style>
    <script type="text/javascript">
        //列表模式关闭弹出层
        function delayClose(parentid, istype) {
            parent.$.fancybox.close();
            //关闭后刷新布局列表
            parent.location = "manageMenu.aspx?parentid=" + parentid + "&istype=" + istype;
        }
        //树模式关闭弹出层
        function treeDelayClose(parentid) {
            parent.$.fancybox.close();
            //关闭后刷新布局列表
            parent.location = "manageMenuTree.aspx";
        }
        //树模式关闭弹出层 --栏目列表
        function BCDelayClose(parentid) {
            parent.$.fancybox.close();
            //关闭后刷新布局列表
            //parent.location="manageMenuTree.aspx?parentId="+parentid;
            parent.location = "manageMenuItem.aspx?parentId=" + parentid;
        }
    </script>
</head>
<body>
    <div>
        <form id="form1" runat="server">
        <div class="edit-func-box func-box">
            <div class="hd b">
                网站布局设置</div>
            <div class="space-4"></div>
            <div class="container">
                <asp:Panel ID="commonPanel" runat="server">
                    <table class="edit-table">
                        <tr>
                            <td>
                                <asp:Label ID="lblParent" runat="server" Text="所属布局："></asp:Label>
                                <asp:DropDownList ID="ddlParentMenu" runat="server" CssClass="input-md">
                                </asp:DropDownList>
                            </td>
                            <td>
                                生成模式：<asp:DropDownList ID="mode" runat="server" AutoPostBack="True" OnSelectedIndexChanged="mode_SelectedIndexChanged"
                                    CssClass="input-md">
                                    <asp:ListItem Value="1" Text="频道" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="菜单"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="链接"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                布局名称：
                                <asp:TextBox ID="name" runat="server" CssClass="input-md" max-length="10" msgname="布局名称"></asp:TextBox>
                            </td>
                            <td>
                                布局备注：<asp:TextBox ID="remark" runat="server" CssClass="input-md"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                    分级限制：
                                    <asp:DropDownList ID="grade" runat="server" DataValueField="pkId" DataTextField="name" CssClass="input-md">
                                    </asp:DropDownList>
                            </td>
                            <td>
                                浏览权限：<asp:DropDownList ID="gate" runat="server" CssClass="input-md">
                                    <asp:ListItem Value="0">无限制</asp:ListItem>
                                    <asp:ListItem Value="1">仅内网可见</asp:ListItem>
                                    <asp:ListItem Value="2">仅登录可见</asp:ListItem>
                                    <asp:ListItem Value="3">内网或登录可见</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr runat="server" id="trMore" visible="false">
                            <td style="min-width:249px;">
                                <div style="float: left">
                                    <asp:Label ID="lblrecordNum" runat="server" Text="显示条数：" Visible="false"></asp:Label>
                                    <asp:TextBox ID="recordNum" runat="server" CssClass="input-mini" notNull="true"
                                        dataType="integer" minvalue="0" maxvalue="9999" msgname="显示条数" MaxLength="4" Visible="false">7</asp:TextBox>
                                    <asp:Label ID="lblCssName" runat="server" Text="&nbsp;扩展样式：" Visible="false"></asp:Label>
                                    <asp:TextBox ID="txtCssName" runat="server" CssClass="input-md" Width="100px" Visible="false"></asp:TextBox>
                                    <asp:DropDownList ID="ddlCssName" runat="server" Visible="false" CssClass="input">
                                    </asp:DropDownList>
                                    <asp:DropDownList ID="ddlContributeSortType" runat="server" Visible="false" CssClass="input">
                                    </asp:DropDownList>
                                    &nbsp;
                                </div>
                            </td>
                            <td>
                                <asp:Panel ID="itemSetPanel" runat="server" Visible="false" Style="float: left">
                                    <asp:CheckBox ID="userIntercept" runat="server" Text=" " TextAlign="Left" Visible="false" />
                                    <asp:Label ID="lnums" runat="server" Text="自定义标题长度：" Visible="false"></asp:Label>
                                    <asp:TextBox ID="interceptNums" runat="server" CssClass="input-mini" Visible="false"
                                        notNull="true" dataType="integer" minvalue="0" maxvalue="9999" msgname="自定义标题长度"
                                        MaxLength="4"></asp:TextBox>
                                    <asp:Button ID="btnSelectBigClass" runat="server" Text="栏目选择" CssClass="btn btn-sm btn-primary" Visible="false" />
                                    <asp:Button ID="contributeSelect" runat="server" Text="栏目选择" CssClass="btn btn-sm btn-primary" Visible="false" />
                                    <asp:CheckBox ID="gundong" runat="server" Text=" " TextAlign="Left" Visible="false" />
                                    <asp:Label ID="labgundong" runat="server" Text="是否滚动" Visible="false"></asp:Label>
                                    <asp:DropDownList ID="ddlReleaseTop" runat="server" Visible="false" CssClass="input">
                                    </asp:DropDownList>
                                    <asp:Label ID="lblHeight" runat="server" Text="&nbsp;高度(px)：" Visible="false"></asp:Label>
                                    <asp:TextBox ID="txtHeight" runat="server" Visible="false" CssClass="input-mini"
                                        notNull="true" dataType="integer" minvalue="0" maxvalue="9999" msgname="高度" MaxLength="4">170</asp:TextBox>
                                    <asp:Label ID="lblLength" runat="server" Text="&nbsp;简介长度：" Visible="false"></asp:Label>
                                    <asp:TextBox ID="txtLength" runat="server" Visible="false" CssClass="input-mini"
                                        notNull="true" dataType="integer" minvalue="0" maxvalue="500" msgname="简介长度"
                                        MaxLength="3">0</asp:TextBox>
                                    <div>
                                    <asp:CheckBox runat="server" ID="ckbLastNews" Text=" " Visible="false" Checked="false" />
                                    <asp:Label ID="lbLastNews" runat="server" Text=" 不显示栏目名" Visible="false"></asp:Label>
                                    <asp:Label ID="lbListLink" runat="server" Text=" 不显示链接组名" Visible="false"></asp:Label>
                                    <asp:DropDownList ID="ddlLastNewsTop" runat="server" Visible="false" CssClass="input-md">
                                    </asp:DropDownList>
                                    </div>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr id="pnlImgVar" runat="server" visible="false">
                            <td>
                                图片宽度：<asp:TextBox ID="txtImgWidth" runat="server" CssClass="input-mini"
                                    notNull="true" dataType="integer" minvalue="0" maxvalue="9999" msgname="图片宽度"
                                    MaxLength="4">100</asp:TextBox>&nbsp; 图片高度：<asp:TextBox ID="txtImgHeight" runat="server"
                                        CssClass="input-mini" notNull="true" dataType="integer" minvalue="0"
                                        maxvalue="9999" msgname="图片高度" MaxLength="4">100</asp:TextBox>
                            </td>
                            <td>
                                <div runat="server" id="divRandom" visible="false">
                                    <asp:RadioButtonList ID="rbRandom" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                        <asp:ListItem Value="0" Selected="True">显示最新</asp:ListItem>
                                        <asp:ListItem Value="-1">全表随机</asp:ListItem>
                                        <asp:ListItem Value="1">取最新的</asp:ListItem>
                                    </asp:RadioButtonList>
                                    <asp:TextBox ID="txtRandNum" runat="server" CssClass="input-mini" notNull="true"
                                        dataType="integer" minvalue="0" maxvalue="9999" msgname="取最新的随机显示"></asp:TextBox>
                                    条随机显示</div>
                            </td>
                        </tr>
                        <tr id="trTemp" runat="server">
                            <td colspan="2">
                                <asp:Panel ID="itemPagePanel" runat="server" Visible="False">
                                    频道模板：
                                    <asp:DropDownList ID="layoutTemplate" runat="server" DataValueField="pkId" DataTextField="name" CssClass="input-md">
                                    </asp:DropDownList>
                                    &nbsp;
                                    <input onclick="previewSelect()" type="button" value="预览" name="button" class="btn btn-sm btn-primary" />
                                    <input onclick="TemplateEdit()" type="button" value="编辑" name="button" class="btn btn-sm btn-primary" />
                                    &nbsp;&nbsp;
                                    <span id="ddlBigclassSpan" runat="server" visible="false">频道指向：</span>
                                    <asp:DropDownList ID="ddlBigclass" runat="server" Visible="false"></asp:DropDownList>
                                </asp:Panel>
                                <asp:Panel ID="linkPanel" runat="server" Visible="false">
                                    链接地址：<asp:TextBox ID="ipAddress" runat="server" CssClass="input-mini" Width="345">http://</asp:TextBox>&nbsp;
                                    链接方式：
                                    <asp:DropDownList ID="target" runat="server" CssClass="set-input-md">
                                        <asp:ListItem Value="_self" Selected="True">原窗口</asp:ListItem>
                                        <asp:ListItem Value="_blank">新开窗口</asp:ListItem>
                                    </asp:DropDownList>
                                </asp:Panel>
                                <asp:Panel ID="pnlTemp" runat="server" Visible="false">
                                    <div class="module">
                                        <div class="hd">
                                            <h2 class="module-title">
                                                栏目名称</h2>
                                            <a class="module-more e-more"></a>
                                        </div>
                                        <div class="bd">
                                            <div class="example">
                                                <img class="e-listStyle" src="../Images/artdesign/itemImage/system_flag.png" alt="listStyle" />
                                                <a href="javascript:void">新华社：中国教育新闻网开通将成为教育新闻的集散地</a>
                                                <img class="e-new" src="../Images/artdesign/newImage/system_new.gif" alt="new">
                                                <img class="e-hot" src="../Images/artdesign/hotImage/system_hot.gif" alt="hot" />
                                                <img class="e-top" src="../Images/artdesign/topImage/system_top.gif" alt="top">
                                                <span class="e-click">64</span> <span class="e-dept">校长办</span> <span class="e-time">
                                                </span>
                                            </div>
                                            <div class="setting">
                                                <!--list-style-->
                                                <div class="set set-listStyle" data-class="listStyle">
                                                    <asp:CheckBox ID="chkFlag" runat="server" Text=" " />
                                                    <img class="s-listStyle" src="../Images/artdesign/itemImage/system_flag.png" alt="listStyle"
                                                        runat="server" id="imgFlag" />
                                                    <div class="show show-more">
                                                        <img class="cur" src="../Images/artdesign/itemImage/system_flag.png" /><img src="../Images/artdesign/itemImage/flag_1.png">
                                                        <img src="../Images/artdesign/itemImage/flag_2.png" style="background-color: #0099EE"><img
                                                            src="../Images/artdesign/itemImage/flag_3.png"><img src="../Images/artdesign/itemImage/flag_4.png"><img
                                                                src="../Images/artdesign/itemImage/flag_5.png"><img src="../Images/artdesign/itemImage/flag_6.png"><img
                                                                    src="../Images/artdesign/itemImage/flag_7.png">
                                                        <img src="../Images/artdesign/itemImage/flag_8.png"><img src="../Images/artdesign/itemImage/flag_9.png">
                                                        <img src="../Images/artdesign/itemImage/flag_10.png"><img src="../Images/artdesign/itemImage/flag_11.png">
                                                        <img src="../Images/artdesign/itemImage/flag_12.png"><img src="../Images/artdesign/itemImage/flag_13.png">
                                                        <img src="../Images/artdesign/itemImage/flag_15.png"><img src="../Images/artdesign/itemImage/flag_16.png">
                                                        <img src="../Images/artdesign/itemImage/flag_17.png"><img src="../Images/artdesign/itemImage/flag_18.png"><div
                                                            class="arrow">
                                                        </div>
                                                    </div>
                                                    <a href="javascript:void">新闻标题</a>
                                                </div>
                                                <!--new-->
                                                <div class="set set-new" data-class="new">
                                                    <asp:CheckBox ID="chkNew" runat="server" Text=" " /><img class="s-new" src="../Images/artdesign/newImage/system_new.gif"
                                                        runat="server" id="imgNew" alt="new">
                                                    <div class="show show-more">
                                                        <img class="cur" src="../Images/artdesign/newImage/system_new.gif"><img src="../Images/artdesign/newImage/new_1.png"><img
                                                            src="../Images/artdesign/newImage/new_2.png"><img src="../Images/artdesign/newImage/new_3.png"><img
                                                                src="../Images/artdesign/newImage/new_4.png"><img src="../Images/artdesign/newImage/new_5.png">
                                                        <img src="../Images/artdesign/newImage/new_6.gif">
                                                        <img src="../Images/artdesign/newImage/new_7.png"><img src="../Images/artdesign/newImage/new_8.png">
                                                        <img src="../Images/artdesign/newImage/new_9.gif"><img src="../Images/artdesign/newImage/new_10.gif">
                                                        <img src="../Images/artdesign/newImage/new_11.png"><div class="arrow">
                                                        </div>
                                                    </div>
                                                </div>
                                                <!--hot-->
                                                <div class="set set-hot" data-class="hot">
                                                    <asp:CheckBox ID="chkHot" runat="server" Text=" " /><img class="s-hot" src="../Images/artdesign/hotImage/system_hot.gif"
                                                        runat="server" id="imgHot" alt="hot" />
                                                    <div class="show show-more">
                                                        <img class="cur" src="../Images/artdesign/hotImage/system_hot.gif"><img src="../Images/artdesign/hotImage/hot_1.png"><img
                                                            src="../Images/artdesign/hotImage/hot_2.png"><img src="../Images/artdesign/hotImage/hot_3.png"><img
                                                                src="../Images/artdesign/hotImage/hot_4.png">
                                                        <img src="../Images/artdesign/hotImage/hot_5.png"><img src="../Images/artdesign/hotImage/hot_6.png"><img
                                                            src="../Images/artdesign/hotImage/hot_7.png">
                                                        <img src="../Images/artdesign/hotImage/hot_8.png"><img src="../Images/artdesign/hotImage/hot_9.png"><div
                                                            class="arrow">
                                                        </div>
                                                    </div>
                                                </div>
                                                <!--top-->
                                                <div class="set set-top" data-class="top">
                                                    <asp:CheckBox ID="chkTop" runat="server" Text=" " /><img class="s-top" src="../Images/artdesign/topImage/system_top.gif"
                                                        runat="server" id="imgTop" alt="top">
                                                    <div class="show show-more">
                                                        <img class="cur" src="../Images/artdesign/topImage/system_top.gif"><img src="../Images/artdesign/topImage/top_1.gif"><img
                                                            src="../Images/artdesign/topImage/top_2.png"><img src="../Images/artdesign/topImage/top_3.png"><img
                                                                src="../Images/artdesign/topImage/top_4.png"><img src="../Images/artdesign/topImage/top_5.png">
                                                        <img src="../Images/artdesign/topImage/top_6.png"><img src="../Images/artdesign/topImage/top_7.png">
                                                        <img src="../Images/artdesign/topImage/top_8.png"><img src="../Images/artdesign/topImage/top_9.png"><img
                                                            src="../Images/artdesign/topImage/top_10.png">
                                                        <img src="../Images/artdesign/topImage/top_11.png"><div class="arrow">
                                                        </div>
                                                    </div>
                                                </div>
                                                <!--点击量-->
                                                <label class="set" data-class="click">
                                                    <asp:CheckBox ID="chkClick" runat="server" Text=" " /><span class="s-click">点击量</span></label>
                                                <!--部门-->
                                                <label class="set" data-class="dept">
                                                    <asp:CheckBox ID="chkDept" runat="server" Text=" " /><span class="s-dept">部门</span>
                                                </label>
                                                <!--更多-->
                                                <asp:DropDownList ID="ddlMore" runat="server" CssClass="input-sm">
                                                    <asp:ListItem Value="0" Selected="True">不显示</asp:ListItem>
                                                    <asp:ListItem Value="1">右上</asp:ListItem>
                                                    <asp:ListItem Value="2">右下</asp:ListItem>
                                                </asp:DropDownList>
                                                <div class="set set-more" data-class="more">
                                                    <%--  <asp:CheckBox ID="chkMore" runat="server" />--%>
                                                    <a href="javascript:void" class="s-more" runat="server" id="moreVar">更多&gt;&gt;</a>
                                                    <div class="show show-setMore">
                                                        <span class="cur">更多&gt;&gt;</span><span>更多<b>&gt;</b></span><span>more</span><span>
                                                            <img src="../Images/artdesign/topMoreInfoImage/more_1.gif"></span><span><img src="../Images/artdesign/topMoreInfoImage/more_2.png"></span><span><img
                                                                src="../Images/artdesign/topMoreInfoImage/more_3.png"></span><span><img src="../Images/artdesign/topMoreInfoImage/more_4.png"></span>
                                                        <span>
                                                            <img src="../Images/artdesign/topMoreInfoImage/more_5.png"></span><span><img src="../Images/artdesign/topMoreInfoImage/more_6.png"></span>
                                                        <div class="arrow">
                                                        </div>
                                                    </div>
                                                </div>
                                                <asp:DropDownList ID="ddlIsTime" runat="server" CssClass="input-sm">
                                                    <asp:ListItem Value="0" Selected="True" data-time="">不显示日期</asp:ListItem>
                                                    <asp:ListItem Value="6" data-time="2013-12-23">年-月-日</asp:ListItem>
                                                    <asp:ListItem Value="7" data-time="2013-12">年-月</asp:ListItem>
                                                    <asp:ListItem Value="8" data-time="12-23">月-日</asp:ListItem>
                                                    <asp:ListItem Value="9" data-time="2013-12-23 13:25:48">年-月-日 时:分:秒</asp:ListItem>
                                                    <asp:ListItem Value="10" data-time="12-23 13:25:48">月-日 时:分:秒</asp:ListItem>
                                                    <asp:ListItem Value="1" data-time="2013年12月23日">年月日</asp:ListItem>
                                                    <asp:ListItem Value="2" data-time="2013年12月">年月</asp:ListItem>
                                                    <asp:ListItem Value="3" data-time="12月23日">月日</asp:ListItem>
                                                    <asp:ListItem Value="4" data-time="2013年12月23日13时25分48秒">年月日时分秒</asp:ListItem>
                                                    <asp:ListItem Value="5" data-time="12月23日13时25分48秒">月日时分秒</asp:ListItem>
                                                    <asp:ListItem Value="11" data-time="2013/12/23">年/月/日</asp:ListItem>
                                                    <asp:ListItem Value="12" data-time="2013/12">年/月</asp:ListItem>
                                                    <asp:ListItem Value="13" data-time="12/23">月/日</asp:ListItem>
                                                    <asp:ListItem Value="14" data-time="2013/12/23 13:25">年/月/日 时:分:</asp:ListItem>
                                                    <asp:ListItem Value="15" data-time="12/23 13:25:48">月/日 时:分:秒</asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
            <div class="ft">
                <div class="action-field text-center">
                    <asp:Button ID="btnSave" runat="server" Text="保 存" CssClass="btn btn-sm btn-primary" OnClick="btnSave_Click" />
                </div>
            </div>
        </div>
        <asp:HiddenField ID="parentIdVar" runat="server" />
        <asp:HiddenField ID="flagImage" runat="server" Value="../Images/artdesign/itemImage/system_flag.png" />
        <asp:HiddenField ID="newImage" runat="server" Value="../images/artdesign/newImage/system_new.gif" />
        <asp:HiddenField ID="hotImage" runat="server" Value="../images/artdesign/hotImage/system_hot.gif" />
        <asp:HiddenField ID="topImage" runat="server" Value="../images/artdesign/topImage/system_top.gif" />
        <asp:HiddenField ID="moreImage" runat="server" Value="更多&gt;&gt;" />
        </form>
    </div>

    <!--#include file = "../Css/foot.htm" -->
    
    <script type="text/javascript">
       
        $(document).ready(function () {
            //保存前验证（改用统一验证js）
            $("#btnSave").click(function () {
                return checkAllValidate();
            });
        })

        //模板预览
        function previewSelect() {
            var pkId = document.getElementById("layoutTemplate").value;
            window.open("../previewEffect.aspx?pkId=" + pkId, "", "left=350,top=100,width=800,height=550,status=1,resizable=1,scrollbars=1");
        }
        //模板快捷修改 (Add by shijian 2013-5-22 for ver6.0)
        function TemplateEdit() {
            var pkId = document.getElementById("layoutTemplate").value;
            window.open("../pageLayoutTemplate.aspx?type=2&pkId=" + pkId, "", "left=350,top=100,width=925,height=690,status=1,resizable=1,scrollbars=1");
        }
        //新闻排行或热点新闻选择显示栏目选择
        function selectBigClass(parentId) {
            //  var arr = showModalDialog("selectItem.aspx?parentId="+parentId+"&mode=2", window, "dialogWidth:500px;dialogHeight:420px;help:no;scroll:no;status:no");
            window.open("selectItem.aspx?parentId=" + parentId + "&mode=2", 'window', "top=200,left=200,width=500,height=470,toolbar=no,resizable=no,menubar=no,scrollbars=no,location=no,status=no")
        }

        //文章统计选择显示栏目选择
        function selectArticleStatistics(parentId) {
            // var arr = showModalDialog("selectItem.aspx?parentId="+parentId+"&mode=3", window, "dialogWidth:500px;dialogHeight:420px;help:no;scroll:no;status:no");
            window.open("selectItem.aspx?parentId=" + parentId + "&mode=3", 'window', "top=200,left=200,width=500,height=470,toolbar=no,resizable=no,menubar=no,scrollbars=no,location=no,status=no")

        }
        //最新图文选择显示图文栏目选择
        function selectImageNewsBigClass(parentId) {
            // var arr = showModalDialog("selectItem.aspx?parentId="+parentId+"&mode=4", window, "dialogWidth:500px;dialogHeight:420px;help:no;scroll:no;status:no");
            window.open("selectItem.aspx?parentId=" + parentId + "&mode=4", 'window', "top=200,left=200,width=500,height=470,toolbar=no,resizable=no,menubar=no,scrollbars=no,location=no,status=no")

        }
        //选择投稿栏目对应的具体栏目
        function selectContributeItem(parentId) {
            //  var arr = showModalDialog("selectItem.aspx?parentId="+parentId+"&mode=5", window, "dialogWidth:500px;dialogHeight:420px;help:no;scroll:no;status:no");
            window.open("selectItem.aspx?parentId=" + parentId + "&mode=5", 'window', "top=200,left=200,width=500,height=470,toolbar=no,resizable=no,menubar=no,scrollbars=no,location=no,status=no")

        }
        //选择留言汇总对应的具体栏目
        function selectMessageBoardItem(parentId) {
            //var arr = showModalDialog("selectItem.aspx?parentId=" + parentId + "&mode=7", window, "dialogWidth:500px;dialogHeight:470px;help:no;scroll:no;status:no");
            window.open("selectItem.aspx?parentId=" + parentId + "&mode=7", 'window', "top=200,left=200,width=500,height=470,toolbar=no,resizable=no,menubar=no,scrollbars=no,location=no,status=no")
        }
    </script>
    <script>
        $(function () {
            var $checked = $('.set input[checked]'),
                len = $checked.length;
            for (var i = 0; i < len; i++) {
                var cla = $checked.eq(i).parents('.set').data('class');
                eShow(cla);
            }
            dtime();
        })
        $('.set').hover(function () {
            $(this).addClass('on');
        }, function () {
            $(this).removeClass('on');
        })
        /*最新最热等标签*/
        $('.show-more img').click(function () {
            var cla = showChecked();
            //var cla=$('.on').data('class');	
            var src = $(this).attr('src');
            $('.e-' + cla + ',.s-' + cla).attr('src', src);

            if (cla == "listStyle") {
                $("#flagImage").attr("value", src);
            }
            else if (cla == "hot") {
                $("#hotImage").attr("value", src);
            }
            else if (cla == "new") {
                $("#newImage").attr("value", src);
            }
            else if (cla == "top") {
                $("#topImage").attr("value", src);
            }

        })
        /*更多标签*/
        $('.show-setMore span').click(function () {
            showChecked();
            var html = $(this).html();
            if ($('#ddlMore').val() != '0') {
                $('.module-more').html(html);
            }
            $('.s-more').html(html);

            $("#moreImage").attr("value", html);

        })
        /*点击复选框*/
        $('.set input').change(function () {
            var cla = $(this).parents('.set').data('class');
            if ($(this).prop("checked")) {
                eShow(cla);
            } else {
                $('.e-' + cla).hide();
                $('.set').removeClass('on');
            }
        })
        /*日期选择*/
        $('#ddlIsTime').change(function () {
            dtime();
        })
        /*事例展示*/
        function eShow(cla) {
            var $e = $('.e-' + cla),
                src = $('.s-' + cla).attr('src');
            $e.show();
            $e.attr('src', src);
            if (cla == 'more') {
                var html = $('.s-more').html();
                $('.module-more').html(html);
            }
        }
        /*显示选中状态*/
        function showChecked() {
            $(".on input[type='checkbox']").prop("checked", true);
            var cla = $('.on').data('class');
            $('.e-' + cla).show();
            return cla;
        }
        /*日期*/
        function dtime(o) {
            var t = $('.s-time option:selected').data('time');
            $('.e-time').text(t);
        }
        function a_s_r(o, c) {
            o.addClass(c).siblings().removeClass(c);
        }
    </script>

</body>
</html>
