📄 left.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="ConnBean" scope="page" class="com.bean.db.conn" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="images/style.css" type=text/css rel=stylesheet>
<html>
<body>
<style type=text/css>BODY {
BACKGROUND-IMAGE: none; BACKGROUND-COLOR: #ade3ff
}
</style>
<table width="158" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="52" height="38"><img height=38 src="images/left_01.gif" width=183></td>
</tr>
<tr>
<td width="100%" valign="bottom"><table width="100%" height="20" border="0" align="center" cellpadding="0" cellspacing="0" background="images/left_07.gif">
<tr>
<td height="50" colspan="2" align="center"><p>管理员:<%=session.getAttribute("user")%></p>
<hr width="90%" /></td>
</tr>
<tr>
<td width="61%" align="center" class=menu onmouseover=this.className='menu_2'; onmouseout=this.className='menu';><a href="index.jsp" target="_top"><strong>返回首页</strong></a></td>
<td width="35%" align="center" class=menu onmouseover=this.className='menu_2'; onmouseout=this.className='menu';><a href="index.jsp" target="_top"><strong>注消</strong></a></td>
</tr>
<tr>
<td colspan="2" align="center" class=menu onmouseover=this.className='menu_2'; onmouseout=this.className='menu';> <base target="main">
<table cellpadding=0 cellspacing=0 width=158>
<%
int i=0;
for (ResultSet rs = ConnBean.executeQuery("select * from [left] where [level]=1");rs.next();){
%>
<tr>
<td height=25 align="left" valign="middle" class=menu_title id=menuTitle<%=i%> onclick="showmenu_item(<%=i%>)" onmouseover=this.className='menu_title2' onmouseout=this.className='menu_title' background="images/title_bg_show.gif"><span><table><tr><td><img height=25 src="images/left_03.gif" width=26></td>
<td><%=rs.getString("name")%></td></tr></table></span></td>
</tr>
<tr>
<td style="display:none;" id='menu_item<%=i%>'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<%
for (ResultSet rs2 = ConnBean.executeQuery("select * from [left] where [follow]="+rs.getString("id"));rs2.next();)
{
%>
<tr>
<td class=menu onmouseover=this.className='menu_2' onmouseout=this.className='menu' background="images/left_10.gif"> <font face="Webdings">4</font> <a href='<%=rs2.getString("http")%>' target='main'><%=rs2.getString("name")%></a></td>
</tr>
<%}%>
</table>
</div>
<%
i++;}
%>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=12></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td style="display:none;" id='menu_item<%=i%>'> </td>
</tr>
</table>
</base></td>
</tr>
</table>
</td>
</tr>
<tr><td><img src="images/left_08.gif" width="183" height="20" /></td>
</tr>
</table>
<br>
<script language=javascript1.2>
function showmenu_item(sid)
{
which = eval('menu_item' + sid);
if (which.style.display == 'none')
{
var j = 0
while(j<<%=i%>){
eval('menu_item'+ j +'.style.display=\'none\';');
eval('menuTitle'+ j +'.background=\'images/title_bg_show.gif\';');
j++;
}
eval('menu_item' + sid + '.style.display=\'\';');
eval('menuTitle'+ sid + '.background=\'images/title_bg_hide.gif\';');
}else{
eval('menu_item' + sid + '.style.display=\'none\';');
eval('menuTitle'+ sid + '.background=\'images/title_bg_show.gif\';');
}
}
</script>
<br>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -