<%@ page language="C#" autoeventwireup="true" inherits="test, App_Web_59rphgcb" debug="true" %>



<!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 runat="server" id="head1">
    <title>无标题页</title>
    <link href="../css/main.css" rel="stylesheet" />
    <link href="../css/GridView.css" rel="stylesheet" />
    <link href="../css/pager.css" rel="stylesheet" type="text/css" />


    <script src="../jquery-1.5.js" type="text/javascript">
    </script>

    <script language="javascript" src="../window/message/jquery.message.js" type="text/javascript"></script>

    <script language="javascript" src="../window/jquery/jquery.min.js" type="text/javascript"></script>

    <script language="javascript" src="../window/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>

    <script language="javascript" src="../window/jquery.bgiframe.pack.js" type="text/javascript"></script>

    <link href="../window/_css/jqueryui/blitzer/jquery-ui-1.8.12.custom.css" rel="stylesheet"
        type="text/css" />

    <script type="text/javascript">
		$(function() {

	
			
	
	  $("#div_win").dialog({
                autoOpen:false,
                modal: false, 
                width:550,
                height:400,
                bigframe:true
                
        });	
		});
			
     function txtclear()
     {
     document.getElementById("grade_text").value=""; 
     document.getElementById("page_url").value=""; 
     document.getElementById("page_button").value=""; 
     document.getElementById("page_page").value=""; 
     document.getElementById("sys_title").value="";       
     }    
     
     
     
     
     function setDivRightMenu(divId)
{
    $(divId).mousedown(function(event) {
        if (event.button == 2) {
            //这个很重要，屏蔽系统鼠标右键菜单功能

            document.oncontextmenu = hideSysMenu;

            x = event.clientX;
            y = event.clientY;
           CreateMenu(event.target);

            var PopMenu = document.getElementById('div_RightMenu');
            PopMenu.style.left = x - 2;
            PopMenu.style.top = y - 2;
            PopMenu.style.display = 'block';
        }
        if (event.button == 1) {
            removeDivRightMenu();
        }
    });
   }

  


     
     //-------------
    function  r_click(id)
    {
     document.getElementById(id).onmouseup=function(oEvent) {
    if (!oEvent) oEvent=window.event;
    if (oEvent.button==2) {
    
       document.oncontextmenu = hideSysMenu;
       
       document.getElementById("pp").style.display="block";
      
      
    }
    }
}
  function  r_click1(id)
    {
    
    alert(id)
    
}    
  
  function hideSysMenu() {
       return false;
   }



 function CreateMenu(obj) {
       var div_Menu = document.createElement("Div");
       div_Menu.id = "div_RightMenu";
       div_Menu.className = "table";
       //div_Menu.setAttribute("onMouseOut", "removeDivRightMenu();");

       var div_Menu1 = document.createElement("Div");
       div_Menu1.className = "divMenuItem";
       div_Menu1.onclick = function() { selectDivRightMenu(1, obj); };
       div_Menu1.innerHTML = "<table border='1'><tr><td>fdsfs</td></tr><tr><td>3333333333</td></tr></table>";

       var div_Menu2 = document.createElement("Div");
       div_Menu2.className = "divMenuItem";
       div_Menu2.onclick = function() { selectDivRightMenu(2, obj)};
       div_Menu2.innerHTML = "<table border='1'><tr><td>888888</td></tr></table>";

       div_Menu.appendChild(div_Menu1);
       div_Menu.appendChild(div_Menu2);

       document.body.appendChild(div_Menu);
   }
   
   function removeDivRightMenu()
   {
       if (document.getElementById("div_RightMenu") != null) {
       
           element = document.getElementById("div_RightMenu");
           element.parentNode.removeChild(element);
       }
   }
   
   function selectDivRightMenu(param1, param2)
   {
       if (param1 == 1) {


           //
           removeDivRightMenu();
       }
       else if (param1 == 2) {

           //
            removeDivRightMenu();
       }
        
   }


function pp_close()
{

document.getElementById ("pp").style.display ="none";

}




     
    </script>



  

</head>
<body >
   
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        
        
  
      
    <div id='pp' style="display:none ">
    
        <input id="Button9" type="button" value="添加" onclick="alert('添加')" />
        <input id="Button11" onclick="alert('删除')" type="button" value="删除" />
        <input id="Button10" onclick="alert('修改')" type="button" value="修改" />
        <input id="Button12" onclick="pp_close()" type="button" value="关闭" />
    
    </div>
      
        <asp:Literal ID="Literal2" runat="server"></asp:Literal>

      

        <asp:Button ID="Button4" runat="server" Visible="false"  Text="保存" OnClick="Button4_Click" />
        
     
        <asp:Literal ID="Literal3" Visible="false"  runat="server"></asp:Literal>
        
        
        
        
<div>
   
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
    <ContentTemplate >
    <asp:TreeView ID="TreeView1"    runat="server"  Height="257px"   ImageSet="WindowsHelp" Width="350px" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged">
   
        <ParentNodeStyle Font-Bold="True" />
        <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
        <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
            VerticalPadding="0px" />
        <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
            NodeSpacing="0px" VerticalPadding="1px" />
    </asp:TreeView>
    
    
        <asp:TreeView ID="TreeView2" ImageSet="Arrows" ShowLines="true"   runat="server">
        </asp:TreeView>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Button3" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="Button5" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="Button6" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="Button7" EventName="Click" />
        
        
    </Triggers>
    </asp:UpdatePanel>

  
    

    
   
    <asp:GridView ID="GridView1"  AutoGenerateColumns="true"   runat="server">
    
    </asp:GridView>
  
  
    
</div>
        <div id="div_win" style="display: none">
            <iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1;
                width: 100%; height: 100%; top: 0; left: 0;"></iframe>
                
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                    <table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">
                        
                        <tr>
                        <td colspan="2">
                        当前节点名称：<asp:Label ID="Label1" Font-Bold="true"  ForeColor="red"  Font-Size="15px" runat="server" Text="Label"></asp:Label>
                        节点ID：<asp:Label ID="Label2" runat="server" Font-Bold="true" Font-Size="15px" ForeColor="red"
                            Text="Label"></asp:Label>
                        <asp:Label ID="Label4" runat="server" Font-Bold="true" Font-Size="15px" ForeColor="red"
                            Text="Label"></asp:Label>   
                        <asp:Label ID="Label3" runat="server" Font-Bold="true" Font-Size="15px" ForeColor="red"
                            Text="Label"></asp:Label>
                            <input id="Button1"  type="button" value="button"  />
                        </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 130px">
                           
                                <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                                <asp:ListItem  Value="0">同级节点</asp:ListItem>
                                    <asp:ListItem Value="1">下级节点</asp:ListItem>
                                </asp:RadioButtonList>
                                <br />
                              
                                
                            </td>
                            <td align="left">
                                <asp:Button ID="Button3" runat="server" CssClass="input" OnClick="LinkButton1_Click"
                                    Text="添加新节点" />
                                <asp:Button ID="Button5" runat="server" CssClass="input" OnClick="Button5_Click"
                                    Text="修改节点" />
                                <asp:Button ID="Button6" runat="server" CssClass="input" OnClick="Button6_Click"
                                    Text="删除节点(单个节点)" />
                    <asp:Button ID="Button7" runat="server" CssClass="input" OnClick="Button7_Click"
                                    Text="删除节点(多个节点)" />
                            </td>
                        </tr>
                        <tr>
                        <td colspan="2">
                        <hr   width="100%" color="red"/>
                        </td>
                        </tr>
                        <tr>
                        <td colspan="2">
                        
                      
                            
                            
                          
                        
                        <table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">
                       <tr>
                       <td style="width:130px" align="right">
                       节点名称：</td>
                       <td align="left ">
                           <asp:TextBox ID="grade_text" Width="350px" runat="server"></asp:TextBox>
                       </td>
                       </tr>
                       <tr>
                       <td class="line" align="right" >
                       页面URL：
                       </td>
                       <td class="line" align="left">
                           <asp:TextBox ID="page_url" runat="server" Width="350px"></asp:TextBox>
                       
                       </td>
                       
                       </tr>
                       <tr>
                       <td align="right" >
                       页面按钮：
                       </td>
                       <td align="left" >
                           <asp:TextBox ID="page_button" runat="server" Width="350px"></asp:TextBox>
                       </td>
                       </tr>
                            <tr>
                                <td align="right" class="line">
                                  页面文件：
                                </td>
                                <td align="left" class="line">
                                    <asp:TextBox ID="page_page" runat="server" Width="350px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    系统标题：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="sys_title" runat="server" Width="350px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    子功能：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="Sub_ctrl" runat="server" Width="350px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    排序：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="sort" runat="server" Width="350px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                            <td class="line" align="center"   colspan="2">
                              
                                <input id="Button2" type="button" onclick="txtclear()" class="input" value="清空" />
                            </td>
                            </tr>
                        </table>
                           
                           
                        
                        </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
   
        </div>
      
    </form>
</body>
</html>
