<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page_SysMenu_Add.aspx.cs" Inherits="BDLSerSystem.SystemSet.Page_SysMenu_Add" %>
<%@ Register TagPrefix="componentart" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<HTML>
	<HEAD>
		<title>User_Reg</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="../css/css.css" type="text/css" rel="stylesheet">
<script language="JavaScript">
    function winconfirm() {
        question = confirm("您确实要删除此菜单吗?")
        if (!question) {
            event.returnValue = false;
        }
    }
</script>
<script type="text/javascript">
function SetTextBox(id, s)
{
    document.getElementById(id).value = s;
    HideTreeView();
}
function ToggleTreeView()
{
    if (document.getElementById("treeDiv").style.visibility == "visible")
        HideTreeView();        
    else        
        ShowTreeView();        
}
function ShowTreeView()
{
    document.getElementById("treeDiv").style.visibility = "visible";
}
function HideTreeView()
{
    document.getElementById("treeDiv").style.visibility = "hidden";
}
function document.onclick() //任意点击时关闭该控件	//ie6的情况可以由下面的切换焦点处理代替
{
    with (window.event) {
        //判断是不是机构输入框获得焦点
        if (window.event.srcElement.name == "Mech_FathID") {
            ShowTreeView();
        }
        else {
            HideTreeView();
        }
    }
}
function checkform() {
    if (document.Form1.Mech_FathID.value == "") {
        alert('请选择上级菜单!');
        Form1.Mech_FathID.focus();
        return false;
    }
    if (document.Form1.Menu_NameNew.value == "") {
        alert('菜单名称不能为空!');
        Form1.Menu_NameNew.focus();
        return false;
    }
    if (document.Form1.Menu_UrlNew.value == "") {
        alert('菜单网址不能为空!');
        Form1.Menu_UrlNew.focus();
        return false;
    }
    return true;
}
</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<div align="center">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="43" background="../Images/Menu_Bg.png" class="tbl_1line_b">
    <table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" width="20px">&nbsp;</td>
              <td width="55px"><div align="center"><input type="button" class="Btn_Zu_LeftNo" value="新增"></div></td>
              <td width="55px"><div align="center"><asp:Button ID="Button1" runat="server" CssClass="Btn_Zu_MidNo" Text="修改" /></div></td>
              <td width="54px"><div align="center"><asp:Button ID="Button2" runat="server" CssClass="Btn_Zu_RightNo" Text="删除" /></div></td>
              <td width="20px">&nbsp;</td>              
              <td width="54px"><div align="center"><asp:Button ID="Btn_Back" runat="server" CssClass="Btn_Quan_Small" Text="返回" /></div></td>
              <td width="55px"><div id="Div_Edit" style="position: relative; top: 0px; filter: alpha(opacity=0); background-color: #777;z-index: 2; left: -183px;  width:55px;height:30px;"></div></td>
              <td width="55px"><div id="Div_Del" style="position: relative; top: 0px; filter: alpha(opacity=0); background-color: #777;z-index: 2; left: -183px;  width:54px;height:30px;"></div></td>
              <td>&nbsp;</td>
            </tr>
          </table>
    </td>
  </tr>
  <tr>
    <td valign="top"><div align="right">
        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
										<td height="35" colspan="3" background="../images/Page_Title.png" class="tbl_3line_rtl">
										        <table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td><div align="left" class="font_style_2a5b8c">&nbsp;&nbsp;&nbsp;&nbsp;系统菜单项目设置<asp:TextBox ID="Del_IDList" runat="server" style="DISPLAY: none"></asp:TextBox></div>
														</td>
														<td width="50">&nbsp;</div>
														</td>
													</tr>
												</table></td>
									</tr>
									<tr>
										<td background="../images/tbl_rl.png" width="6px"></td>
										<td valign="top"><div align="center">
										  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td height="30" class="tbl_4line_rblt"><div align="left">&nbsp;&nbsp;&nbsp;<B>已有菜单</B></div></td>
                                            <td width="400" class="tbl_2line_br"><div align="left">&nbsp;&nbsp;<B>菜单维系</B></div></td>
                                            </tr>
                                            <tr>
                                              <td valign="top" class="tbl_4line_rblt"><div align="left">
                                              <DIV id="SelectShow" style="OVERFLOW-Y: auto; OVERFLOW-X: auto; WIDTH: 100%; HEIGHT: 398px">
										<div id="Div1" style="CLEAR: both; BACKGROUND: white; WIDTH: 98%;POSITION: absolute; HEIGHT: 395px">
                                            <COMPONENTART:TREEVIEW id="TreeView2" runat="server" Width="100%" 
                                                CssClass="TreeView" NodeCssClass="22"
												SelectedNodeCssClass="TreeViewcss" HoverNodeCssClass="TreeViewMouseOn" NodeEditCssClass="NodeEdit" 
                                                LineImageWidth="19" LineImageHeight="20" DefaultImageWidth="16" 
                                                DefaultImageHeight="16" ItemSpacing="0" NodeLabelPadding="3" ShowLines="true" 
                                                LineImagesFolderUrl="../images/lines/" EnableViewState="true" 
                                                AutoPostBackOnSelect="True" onnodeselected="TreeView2_NodeSelected" 
                                                ClientSideOnNodeMouseDoubleClick="NodeSelect"></COMPONENTART:TREEVIEW></div>
									</DIV>
                                              </div></td>
                                            <td valign="top" class="tbl_2line_br"><div align="left">
                                              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                <td width="80" height="30"><div align="left">&nbsp;&nbsp;所属栏目：</div></td>
                                                <td width="200"><div align="left"><asp:DropDownList ID="Menu_Order" runat="server" Width="250px" CssClass="Drop_ListStyle">
                                                <asp:ListItem Value="1">文件中心</asp:ListItem>
                                                <asp:ListItem Value="2">系统设置</asp:ListItem>
                                                </asp:DropDownList></div></td>
                                                <td><div align="left">&nbsp;</div></td>
                                                </tr>
                                                <tr>
                                                  <td height="30"><div align="left">&nbsp;&nbsp;菜单类型：</div></td>
                                                <td height="30"><div align="left"><asp:DropDownList ID="Menu_Menu" runat="server" Width="250px" CssClass="Drop_ListStyle">
                                                <asp:ListItem Value="0">菜单栏目</asp:ListItem>
                                                <asp:ListItem Value="1">菜单子项</asp:ListItem>
                                                </asp:DropDownList></div></td>
                                                  <td height="30"><div align="left">&nbsp;</div></td>
                                                </tr>
                                                <tr>
                                                  <td height="30"><div align="left">&nbsp;&nbsp;上级菜单：</div></td>
                                                <td height="30"><div align="left"><asp:TextBox ID="Mech_FathID" runat="server" CssClass="TextBox3" Width="250px"></asp:TextBox></div>
                                                <div id="treeDiv" style="CLEAR:both; BORDER-RIGHT:1px solid #b2b2b2; BORDER-TOP:1px solid #b2b2b2;BORDER-LEFT:1px solid #b2b2b2; BORDER-BOTTOM:1px solid #b2b2b2;MARGIN-TOP:1px; BACKGROUND:white; VISIBILITY:hidden; WIDTH:250px; POSITION:absolute">
																			<ComponentArt:TreeView id="TreeView1" runat="server" Width="250px" 
                                                                                CssClass="TreeView" NodeCssClass="22"
																				SelectedNodeCssClass="TreeViewcss" HoverNodeCssClass="TreeViewMouseOn" NodeEditCssClass="NodeEdit"
																				LineImageWidth="19" LineImageHeight="20" DefaultImageWidth="16" DefaultImageHeight="16" ItemSpacing="0"
																				NodeLabelPadding="3" ShowLines="true" LineImagesFolderUrl="../images/lines/" EnableViewState="true" AutoPostBackOnSelect="True" 
                                                                                onnodeselected="TreeView1_NodeSelected"></ComponentArt:TreeView>
																		</div>
                                                </td>
                                                  <td height="30"><div align="left">&nbsp;<asp:TextBox ID="MechFathIDBack" runat="server" Visible="false"></asp:TextBox><asp:TextBox ID="MechIDBack" runat="server" Visible="false"></asp:TextBox><asp:TextBox ID="EditOK" runat="server" style="DISPLAY:none"></asp:TextBox></div></td>
                                                </tr>
                                                <tr>
                                                  <td height="30"><div align="left">&nbsp;&nbsp;菜单序号：</div></td>
                                                <td height="30"><div align="left"><asp:TextBox ID="Menu_No" runat="server" CssClass="TextBox3" Width="250px"></asp:TextBox></div></td>
                                                  <td height="30"><div align="left">&nbsp;</div></td>
                                                </tr>
                                                
                                                <tr>
                                                  <td height="30"><div align="left">&nbsp;&nbsp;菜单名称：</div></td>
                                                <td height="30"><div align="left"><asp:TextBox ID="Menu_NameNew" runat="server" CssClass="TextBox3" Width="250px"></asp:TextBox></div></td>
                                                  <td height="30"><div align="left">&nbsp;</div></td>
                                                </tr>
                                                <tr>
                                                  <td height="30"><div align="left">&nbsp;&nbsp;菜单网址：</div></td>
                                                <td height="30"><div align="left"><asp:TextBox ID="Menu_UrlNew" runat="server" CssClass="TextBox3" Width="250px"></asp:TextBox></div></td>
                                                  <td height="30"><div align="left">&nbsp;</div></td>
                                                </tr>
                                                <tr>
                                                <td height="50" colspan="3"><div align="left">&nbsp;&nbsp;<asp:Button ID="Btn_Add" Runat="server" 
                                                        CssClass="BtnStyle" Text="新  增" onclick="Btn_Add_Click"></asp:Button>
                                                    <asp:Button ID="Btn_Edit" Runat="server" CssClass="BtnStyle" Text="修  改" 
                                                        Visible="false" onclick="Btn_Edit_Click"></asp:Button>&nbsp;&nbsp;<asp:Button 
                                                        ID="Btn_Del" runat="server" CssClass="BtnStyle" Text="删  除" Visible="false" 
                                                        onclick="Btn_Del_Click" />&nbsp;&nbsp;<asp:Button 
                                                        ID="Btn_Cancel" Runat="server" CssClass="BtnStyle" Text="取  消" 
                                                        onclick="Btn_Cancel_Click"></asp:Button></div></td>
                                                </tr>
                                                <tr>
                                                  <td colspan="3">&nbsp;</td>
                                                </tr>
                                              </table>
                                            </div></td>
                                            </tr>
                                          </table>
											</div>
									  </td>
									<td background="../images/tbl_rl2.png" width="6px"></td>
									</tr>
									<tr>
										<td height="6"><div align="center"><img src="../images/tbl_bl.png" width="6" height="6"></div>
										</td>
										<td height="6" background="../images/tbl_bt.png"></td>
										<td height="6"><div align="center"><img src="../images/tbl_br.png" width="6" height="6"></div>
										</td>
									</tr>
								</table>
    </div></td>
  </tr>
</table>
				
			</div>
		</form>
	</body>
</HTML>
