top.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:5k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="top.aspx.cs" Inherits="Discuz.Web.Admin.top" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.     <title> ASP.net|论坛 管理后台 - Discuz!NT - Powered by Discuz! NT</title>
  7.     <meta name="keywords" content="ASP.net,论坛" />
  8.     <meta name="description" content="Discuz!NT,论坛,asp.net" />
  9.     <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />    
  10.     <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  11.     <script type="text/javascript" src="../js/modalpopup.js"></script>
  12.     <script type="text/javascript" src="../xml/navmenu.js"></script>
  13.     <style type="text/css">
  14.     body {margin:0;}
  15.     </style>
  16. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  17. </head>
  18. <body>
  19. <div id="MenuTab">
  20. <ul id="MainMenu">
  21.     <li class="MenuDrop">
  22.         <div class="MenuDropOut" onmouseover="this.className='MenuDropOn'" onmouseout="this.className='MenuDropOut'">
  23.             <a href="javascript:void(0);" onmouseover="javascript:top.mainFrame.setshorcutmenu('block');" onmouseout="javascript:top.mainFrame.setshorcutmenu('none');" >快捷操作</a>
  24.         </div>
  25.     </li>
  26. </ul>
  27. <div class="SearchBar">
  28. <input type="hidden" id="searchtype" value="function" />
  29. <dl>
  30. <dt><span id="searcheoption" onclick="javascript:top.mainFrame.setseachmenu('block');" style="cursor:hand">功能</span><button type="button"  class="OutButton" onmouseover="this.className='OverButton'" onmouseout="this.className='OutButton'" onclick="javascript:top.mainFrame.setseachmenu('block');"  onfocus="this.blur();"></button></dt>
  31. <dd><input id="searchinfo" onkeydown="if(event.keyCode==13){document.getElementById('dosearch').focus();}");  type="text" /></dd>
  32. <dd><button type="button" id="dosearch" class="SubmitButton" alt="点击搜索" onclick="javascript:top.mainFrame.Search(document.getElementById('searchinfo').value,document.getElementById('searchtype').value);" ></button></dd>
  33. </dl>
  34. </div>
  35. </div>
  36. <div id="setting" style="display:none;">
  37. </div>
  38. </body>
  39. </html>
  40. <script type="text/javascript">
  41.     
  42.     function LoadMainMenu()
  43.     {
  44.         var menuText = "";
  45.         for(var i = 0 ; i < toptabmenu.length ; i++)
  46.         {
  47.             var mod = (i % 7) + 1;
  48.             menuText += "<li id='NtTab" + (i + 1) + "' ><div id='NtDiv" + (i + 1) + "'  Class='Currenttab" + mod + "'>";
  49.             menuText += "<a href='#' id='NtA" + (i + 1) + "' class='CurrentHoverTab" + mod + "'";
  50.             menuText += " onclick="javscript:locationurl('" + toptabmenu[i]["mainmenulist"].split(",")[0] + "','" + toptabmenu[i]["id"] + "','" + toptabmenu[i]["mainmenulist"];
  51.             menuText += "','" + toptabmenu[i]["defaulturl"] + "');" onfocus='this.blur();'>" + toptabmenu[i]["title"] + "</a></div></li>";
  52.         }
  53.         document.getElementById("MainMenu").innerHTML += menuText;
  54.     }
  55.     LoadMainMenu();
  56.     
  57.     function setseachtype(searchtype)
  58.     {
  59.        document.getElementById("searchtype").value=searchtype;
  60.        switch(searchtype)
  61.        {
  62.           case 'function':document.getElementById("searcheoption").innerHTML='功能';break;
  63.           case 'user':document.getElementById("searcheoption").innerHTML='用户';break;
  64.        }
  65.     }
  66.     function locationurl(showmenuid,toptabmenuid, mainmenulist,defaulturl)
  67.     {
  68.        var menucount = toptabmenu.length;
  69.        j = menucount;
  70.        
  71.        /*得新进行实始化设置*/
  72.        for(i=1; i<=menucount ;i++)
  73.        {
  74.             document.getElementById("NtDiv"+i).className = "tab" + (i % 7);
  75.             document.getElementById("NtTab"+i).style.zIndex=j;
  76.             document.getElementById("NtA"+i).className = "";
  77.             j--;
  78.        }
  79.         
  80.        
  81.        /*设置当前点中的菜单项样式*/
  82.        document.getElementById("NtA"+toptabmenuid).className ='CurrentHoverTab'+(toptabmenuid%7);  
  83.        document.getElementById('NtDiv'+toptabmenuid).className='Currenttab'+(toptabmenuid%7);  
  84.        document.getElementById('NtTab'+toptabmenuid).style.zIndex=menucount+1; 
  85.      
  86.        //alert(defaulturl);
  87.        top.mainFrame.location.href='../framepage/managerbody.aspx?showmenuid='+showmenuid+'&toptabmenuid='+toptabmenuid+'&mainmenulist='+mainmenulist+'&defaulturl='+defaulturl;
  88.      
  89.     }
  90.         
  91.     document.getElementById("searchtype").value='function';
  92.     locationurl(toptabmenu[0]["mainmenulist"].split(",")[0],toptabmenu[0]["id"],toptabmenu[0]["mainmenulist"],toptabmenu[0]["defaulturl"]);
  93. </script>