<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="menumanager.aspx.cs" Inherits="Us.Web.admin.basic.menumanager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>系统菜单</title>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
     <%=ImportScriptStr %>
    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function opJsTree(txt, txtValue) {
            var para = "/admin/basic/menuztreeselect.aspx?para=1&list=" + $("#" + txtValue).val();
            //UsOpenDialogTree(para, txt, txtValue);

            CareffArtOpen4(para, '菜单选择', 300, 500, function (path) {
                //alert(path);
                if (path == null) { return false; }
                var strs = path.split("#")
                var m = $id(txt)
                m.value = strs[1];
                var m1 = $id(txtValue)
                m1.value = strs[0];
                

            });

        }

 </script>
</head>
<body>
    <form id="form1" runat="server">
    
    <div id="tbMain">
        <div class="divTbg">
            <div class="divTbgL">
            </div>
            <div class="divTbgInfo">
                <div class="divTbgTitle">
                    系统菜单管理</div>
            </div>
        </div>
        <div class="divTbgF">
        </div>
        <div class="divTNavBG" id="topURL">
            <ul id="topURLul">
                <li class="divURLed" id="div1">
                    <div>
                        <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                        基本信息</div>
                </li>
            </ul>
        </div>
        <div id="mypanel">
            <div class="divInfoContext">
                <div class="divInfo">
                    <div class="divInfoblack">
                        <div class="divInfoTopList">
                            <div class="listLeft">
                                <div class="navtitle">
                                    系统菜单</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="divInfo">
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist" onmouseover="changeto()"
                        onmouseout="changeback()">
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                菜单编号<span class="fStar">*</span></td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtMenuID" runat="server" ToolTip="菜单编号" Text="" CssClass="1"></asp:TextBox>(自动生成)
                            </td>
                            <td class="tablisttitle">
                                父级菜单<span class="fStar">*</span></td>
                            <td class="tabmanagertr">
                               
                                <div class="nodisplay">
                                <asp:TextBox ID="txtParentID" runat="server" ToolTip="父级菜单" Text="" CssClass="1"></asp:TextBox></div>
                                 <asp:TextBox ID="txtParentName" runat="server" ToolTip="父级菜单" Text="" CssClass="1"></asp:TextBox>
                                <a href="javascript:opJsTree('txtParentName','txtParentID');">[选择]</a>


                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                菜单名称<span class="fStar">*</span></td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtMName" runat="server" CssClass="1" ToolTip="菜单名称">菜单名称</asp:TextBox>
                            </td>
                            <td class="tablisttitle">
                                菜单提示</td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtMToolTip" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                连接地址<span class="fStar">*</span></td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtMURL" runat="server" CssClass="1" ToolTip="连接地址">#</asp:TextBox>
                            </td>
                            <td class="tablisttitle">
                                显示顺序<span class="fStar">*</span></td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtShowID" runat="server" CssClass="2" ToolTip="显示顺序">1</asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                打开方式</td>
                            <td class="tabmanagertr">
                        <asp:DropDownList runat="server" ID="drpMTarget" CssClass="1" ToolTip="打开方式">
                            <asp:ListItem Value="MTarget" Text="codeno"></asp:ListItem>
                        </asp:DropDownList>
                            </td>
                            <td class="tablisttitle">
                                是否展开</td>
                            <td class="tabmanagertr">
                        <asp:DropDownList runat="server" ID="drpMIsOpen" CssClass="1" ToolTip="是否展开">
                            <asp:ListItem Value="CodeYesNo" Text="codeno"></asp:ListItem>
                        </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                打开图片
                            </td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtMOImages" runat="server"></asp:TextBox>
                                <a href="#" onclick="SkyOpenBak('txtMOImages');">[选择]</a>
                                <a href="#" onclick="SkyView('txtMOImages');">[查看]</a>
                            </td>
                            <td class="tablisttitle">
                                关闭图片
                            </td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtMCImages" runat="server"></asp:TextBox>
                                <a href="#" onclick="SkyOpenBak('txtMCImages');">[选择]</a>
                                <a href="#" onclick="SkyView('txtMCImages');">[查看]</a>
                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                系统提示</td>
                            <td class="tabmanagertr" colspan="3">
                                 <span class="usHelpMessage"> * 注意事项： 为了保证您选择的图片能够正常显示，请尽量选择/upload/tree目录里面的系统默认图片</span>  </td>
                            
                        </tr>
                        </table>
                    <div class="divSave">
                        <asp:Button ID="btnSubmit" runat="server" Text="保存(S)" 
                            CssClass="SkyButtonFocus" onclick="btnSubmit_Click" />
                        <asp:Button ID="btnDelete" runat="server" Text="删除(D)" CssClass="SkyButtonFocus" 
                            onclick="btnDelete_Click" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    </form>
</body>
</html>
