<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%> 
<%@ page import="java.util.*"%>
<%@ include file="../inc/conn.jsp"%>
<%
String username="";
username = (String)session.getAttribute("name");
//out.print(username);
%>
<HTML><HEAD>
<title>飞天论坛</title>
<META http-equiv=Content-Type content=text/html;charset=gb2312>
<link href="../css/news2.css" rel="stylesheet" type="text/css">
<STYLE type=text/css>
BODY {
	BACKGROUND: #799ae1; MARGIN: 0px
}
.sec_menu {
	BORDER-RIGHT: white 1px solid; BACKGROUND: #d6dff7; OVERFLOW: hidden; BORDER-LEFT: white 1px solid; BORDER-BOTTOM: white 1px solid
}
.menu_title SPAN {
	FONT-WEIGHT: bold; LEFT: 10px; COLOR: #215dc6; POSITION: relative; TOP: 2px
}
.menu_title2 SPAN {
	FONT-WEIGHT: bold; LEFT: 10px; COLOR: #428eff; POSITION: relative; TOP: 2px
}
</STYLE>
</HEAD>
<script language="JavaScript">
function popwin(path)
{ window.open(path,'',"height=150,width=200,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}
</script>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
function hydl() {
    l = screen.width/2-210/2;
    t = screen.height/2-160/2;
    fHYDL = window.open('','fHYDL','scrollbars=no,toolbar=no,menubar=no,location=no,status=no,resizable=no,width=210,height=160,left='+l+',top='+t);
    fHYDL.location.replace('getpwd.jsp');
    fHYDL.opener = window.parent;
}
//-->
</script>
<BODY>
<bgsound src="bg.mid" id="bgm" loop="-1"></bgsound>
<TABLE cellSpacing=0 cellPadding=0 width=115 align=center>
  <TBODY> 
  <TR> 
      <TD height=52><img src="../images/bbs_logo.gif" width="115" height="47"></TD>
  </TR>
  </TBODY> 
</TABLE>
<TABLE width=115 align=center cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/main.jsp" style="text-decoration:none" target="main"><span class="163s">　论坛首页</span></a></TD>
    </TR>
    <TR> 
      <TD id="submenu100" style="DISPLAY: none"></TD>
    </TR>
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/register.jsp" style="text-decoration:none" target="main"><span class="163s">　用户注册</span></a></TD>
    </TR>	
    <TR> 
      <TD id="submenu100" style="DISPLAY: none"></TD>
    </TR>
<%if(username==""||username==null)
{
%>
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/userlogin.jsp" style="text-decoration:none" target="main"><span class="163s">　用户登录</span></a></TD>
    </TR>
    <TR> 
      <TD id="submenu100" style="DISPLAY: none"></TD>
    </TR>
<%}%>
<%
String f,str2,fa;
f= request.getParameter("f");
String sql="select BBS_Cate_Name,BBS_Cate_ID,BBS_Cate_PID from BBS_Cate where BBS_Cate_PID='0' and BBS_Cate_ID<>'A_3' and deleted=0 order by totop asc";
ResultSet rs=stmt.executeQuery(sql);
int i=1;
while(rs.next()) 
{
String Main_Str=rs.getString("BBS_Cate_ID");
//out.print("style=\"DISPLAY: none\"");
//out.println(f);
//out.close();
%>
  <TR>  
      <TD class=menu_title id=imgmenu<%=i%> onmouseover="this.className='menu_title2';" 
    style="CURSOR: hand" onclick=showsubmenu(<%=i%>) 
    onmouseout="this.className='menu_title';" background=../images/menudown.gif 
    height=25><span class="163s">　<a class=head3 href="../bbs/main.jsp?layer_1=<%=rs.getString("bbs_cate_id")%>" target="main"><%=rs.getString("BBS_Cate_Name")%></a></span></TD>
    </TR>
    <TR> 
      <TD id=submenu<%=i%> style="DISPLAY: none"> 
      <DIV class=sec_menu style="WIDTH: 115px">          
        <table cellspacing=3 cellpadding=0 width=130 align=center>
          <tbody>
<%
Statement stmt1=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sqltotal="select BBS_Cate_Name,BBS_Cate_ID,BBS_Cate_PID from BBS_Cate where BBS_Cate_PID='"+rs.getString("BBS_Cate_ID")+"' and deleted=0";
ResultSet rs15=stmt1.executeQuery(sqltotal);
while(rs15.next()) 
{		  
%>		   
          <tr> 
            <td>&nbsp;&nbsp;- <a href="../bbs/main.jsp?layer_1=<%=rs15.getString("BBS_Cate_PID")%>&layer_2=<%=rs15.getString("BBS_Cate_ID")%>" target="main"> <%=rs15.getString("BBS_Cate_Name")%></a></td>
          </tr>		  
<%
}
rs15.close(); 
stmt1.close(); 		  
%>		  
          </tbody> 
        </table>
        </DIV>
        </TD>
    </TR>
<%
i=i+1;
}
rs.close(); 
stmt.close(); 
conn.close(); 
int m=i;
%>		
	<TR> 
      <TD class=menu_title id=imgmenu<%=i%> onmouseover="this.className='menu_title2';" 
    style="CURSOR: hand" onclick=showsubmenu(<%=i%>) 
    onmouseout="this.className='menu_title';" background=../images/menudown.gif 
    height=25><span class="163s">　个人设置</span></TD>
    </TR>
    <TR> 
      <TD id=submenu<%=i%>> <DIV class=sec_menu style="WIDTH: 115px"> 
          
        <table cellspacing=3 cellpadding=0 width=130 align=center>
          <tbody> 
          <tr> 
            <td>&nbsp;&nbsp;- <a href="moduserinfo.jsp" target="main">修改资料</a></td>
          </tr>
          <tr>
            <td>&nbsp;&nbsp;- <A HREF="#" onClick="javascript:popwin('getpwd.jsp?mode=1')">找回密码</a></td>
          </tr>
          <tr>
            <td>&nbsp;&nbsp;- <A HREF="myfriend.jsp" target="main">我的好友</a></td>
          </tr>
          <tr>
            <td>&nbsp;&nbsp;- <A HREF="mysms.jsp" target="main">我的信箱</a></td>
          </tr>
          <tr>
            <td>&nbsp;&nbsp;- <A HREF="main.jsp?searchkind=user_id&searchcontent=<%=username%>" target="main">个人文集</a></td>
          </tr>
          </tbody> 
        </table>
        </DIV>
        </TD>
    </TR>
	
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/help.htm" style="text-decoration:none" target="main"><span class="163s">　论坛指南</span></a></TD>
    </TR>
    <TR> 
      <TD>
	  </TD>
    </TR>
<%if(username==""||username==null)
{
}
else
{
%>			
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/main.jsp?ext=y" style="text-decoration:none" target="main"><span class="163s">　退出论坛</span></a></TD>
    </TR>	
    <TR> 
      <TD id="submenu100" style="DISPLAY: none"></TD>
    </TR>
<%}%>	
  </TBODY>
</TABLE>
<script langauge=javascript>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
imgmenu = eval("imgmenu" + sid);
if (whichEl.style.display == "none")
{
for( i=1;i<=<%=m%>;i++)
{
	whichEl = eval("submenu" + i);
	imgmenu = eval("imgmenu" + i);
	if(whichEl.style.display == "")
	{
		eval("submenu" + i + ".style.display=\"none\";");
		imgmenu.background="../images/menudown.gif";
	}
}
eval("submenu" + sid + ".style.display=\"\";");
imgmenu.background="../images/menuup.gif";
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
imgmenu.background="../images/menudown.gif";
}
}
</script>