<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="top.aspx.cs" Inherits="Discuz.Web.admin.top" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> ASP.net|论坛 管理后台 - Discuz!NT - Powered by Discuz! NT</title>
<meta name="keywords" content="ASP.net,论坛" />
<meta name="description" content="Discuz!NT,论坛,asp.net" />
<link href="../styles/dntmanager.css" rel="stylesheet" type="text/css" />
<style>
	body {margin:0;}
</style>
</head>
<body>
	<div id="MenuTab">
		<ul>
		    <li class="MenuDrop"><div class="MenuDropOut" onMouseOver="this.className='MenuDropOn'" onMouseOut="this.className='MenuDropOut'"><a herf="" onmouseover="javascript:top.mainFrame.setshorcutmenu('block');" onmouseout="javascript:top.mainFrame.setshorcutmenu('none');" >快捷操作</a></div></li>
			<img src="../images/Menudown.gif" style="display:none">
			<%=sb.ToString()%>
		</ul> 
		
		<div class="SearchBar">
			<input type="hidden" id="searchtype" value="function" />
				<dl>
					<dt><span id="searcheoption">功能</span><button type="button"  class="OutButton" onMouseOver="this.className='OverButton'" onMouseOut="this.className='OutButton'"  href="#" onclick="javascript:top.mainFrame.setseachmenu('block');"  onfocus="this.blur();"></button> </dt>
					<dd><input id="searchinfo" onkeydown="if(event.keyCode==13){document.getElementById('dosearch').focus();}");  type="text" /></dd>
					<dd><button type="button" id="dosearch" class="SubmitButton" alt="点击搜索" onclick="javascript:top.mainFrame.Search(document.getElementById('searchinfo').value,document.getElementById('searchtype').value);" ></button></dd>
				</dl>
		</div>
		
	</div>
</body>
</html>

<script language="javascript">
function setseachtype(searchtype)
{
   document.getElementById("searchtype").value=searchtype;
   switch(searchtype)
   {
      case 'function':document.getElementById("searcheoption").innerHTML='功能';break;
      case 'user':document.getElementById("searcheoption").innerHTML='用户';break;
   }
}

function locationurl(showmenuid,toptabmenuid, mainmenulist,defaulturl)
{
   var menucount = '<%=menucount%>';
   j = menucount;
   
   /*得新进行实始化设置*/
   for(i=1; i<=menucount ;i++)
   {
        document.getElementById("NtDiv"+i).className = "tab"+(i%7);
        document.getElementById("NtTab"+i).style.zIndex=j;
        document.getElementById("NtA"+i).className = "";
        j--;
   }
    
   
   /*设置当前点中的菜单项样式*/
   document.getElementById("NtA"+toptabmenuid).className ='CurrentHoverTab'+(toptabmenuid%7);  
   document.getElementById('NtDiv'+toptabmenuid).className='Currenttab'+(toptabmenuid%7);  
   document.getElementById('NtTab'+toptabmenuid).style.zIndex=menucount+1; 
 
   //alert(defaulturl);
   top.mainFrame.location.href='../framepage/managerbody.aspx?showmenuid='+showmenuid+'&toptabmenuid='+toptabmenuid+'&mainmenulist='+mainmenulist+'&defaulturl='+defaulturl;
 
}
document.getElementById("searchtype").value='function';
locationurl(<%=showmenuid%>,<%=toptabmenuid%>,'<%=mainmenulist%>','<%=defaulturl%>');
</script>