<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="Admin_Pub_Pub_Tree_Edit, App_Web_ina2jcns" title="无标题页" %>

<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript">
    function ShowOrHideDiv(checked,targetDiv){
        var _ClientID = "ctl00_ContentPlaceHolder1_";
        targetDiv = _ClientID + targetDiv;
        document.getElementById(targetDiv).style.display = checked ? "block" : "none";
    }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="divTools">
        <div class="tool-nav">
            <div class="title">
                导航栏</div>
            <asp:HyperLink ID="hy_add" Text="[添加顶级栏目]" runat="server"/>
            <asp:HyperLink ID="hy_list" Text="[栏目列表]" runat="server"/>
        </div>
        <html:CurrTool ID="CurrTool1" Title="编辑栏目信息" Version="091224" runat="server"/>
        <html:CurrImage ID="CurrImage1" Title="编辑栏目信息" 
            Tips="在这里您可以编辑栏目的属性信息。" runat="server" />
    </div>
    <div class="clear">
    </div>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
       <ContentTemplate>
    <div class="divContent">
        <div id="UpdatePanel1">
            <div id="msg">
            </div>
            <asp:Label ID="Mesg" runat="server" CssClass="t4" Width="100%"></asp:Label>
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="content-table">
                <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <th colspan="2" class="thleft none">
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <!--当前用户：<asp:Literal ID="litUserID" runat="server" />-->
                    </th>
                </tr>
                <tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td width="120">
                        父类名称：
                    </td>
                    <td>
                        <asp:Literal ID="LitMenuName" Text="顶级栏目" runat="server" />
                        <input runat="server" id="hidproBackId" type="hidden" />
                    </td>
                </tr>
                <tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td width="120">
                        栏目类型：
                    </td>
                    <td>
                        <input type="hidden" runat="server" id="hidproId" />
                        <asp:DropDownList ID="DropshowType" runat="server" DataTextField="BaseName" DataValueField="BaseNo" AutoPostBack="true" OnSelectedIndexChanged="DropshowType_SelectedIndexChanged"></asp:DropDownList>
                        <span class="spanTips">若此栏目含有下属子栏目,请选择“纯类别”,否则将无法添加下级子栏目,(单页/列表/类别,只针对资讯类) </span>                    </td>
                </tr>
                <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td width="120">
                        栏目名称：
                    </td>
                    <td>
                        <asp:TextBox ID="txtMenuName" runat="server" />
                    </td>
                </tr>
                <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)" runat="server" id="trTempName" visible="false">
                    <td width="120">
                        模板文件[列表页]：
                    </td>
                    <td>
                      <asp:TextBox ID="txtTempName" runat="server" />
                    </td>
                </tr>
                <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)" runat="server" id="trFieldName" visible="false">
                    <td width="120">
                        模板文件[详细页]：
                    </td>
                    <td>
                      <asp:TextBox ID="txtFieldName" runat="server" />
                    </td>
                </tr>
                <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td width="120">
                        是否为后台权限栏目：
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsAdmin" runat="server" onclick="ShowOrHideDiv(this.checked,'divUpdatePurview')" />是
                        <div id="divUpdatePurview" runat="server" style="border: 1px solid #808080; display: none;
                            margin-top: 5px; padding: 5px;">
                            <div style="padding:3px;">
                                管理地址：<asp:TextBox ID="txtMenuUrl" Width="300"  runat="server" />(注：不添加时则为资讯管理系统)
                            </div>
                        </div>
                    </td>
                </tr>
                <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td width="120">
                        是否为会员权限栏目：
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsUser" runat="server" onclick="ShowOrHideDiv(this.checked,'divMemberMenu')" />是
                        <div id="divMemberMenu" runat="server" style="border: 1px solid #808080; display: none;
                            margin-top: 5px; padding: 5px;">
                            <div style="padding:3px;">
                                前台地址：<asp:TextBox ID="txtDisUrl" runat="server" Width="300"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td width="120">
                        是否锁定：
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsLock" runat="server" />是 <span class="spanTips">（如果为锁定则不能直接在系统列表中删除，须先解除锁定才能删除）</span>
                    </td>
                </tr>
                <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td width="120">
                        是否显示：
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsShow" Checked="true" runat="server" />是 <span class="spanTips"></span>
                    </td>
                </tr>
                <tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td width="120">
                        排序：
                    </td>
                    <td>
                        <asp:TextBox ID="txtSort" Text="10" runat="server" onkeyup="Onlynumber(this)" />
                    </td>
                </tr>
                <tr>
                    <td id="href-blue">&nbsp;
                        
                    </td>
                    <td class="food">
                        <asp:Button Text=" 存 档 " ID="btnSave" runat="server" CssClass="button" OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <asp:HiddenField ID="hidParentID" runat="server" />
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
