图3-7 系统页面布局
该系统的页面布局如上图:左边是功能模块,名为left。jsp,上部分是网站导航,名为top。jsp,中间是内容显示,名为main。jsp,每个身份登陆的页面结构几乎不变。
左边的功能模块的部分代码如下:
<SCRIPT language=JavaScript>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl。style。display == "none")
{
eval("submenu" + sid + "。style。display=\"\";");
}
else
{ eval("submenu" + sid + "。style。display=\"none\";"); }
} </SCRIPT>
<% String member=(String)session。getAttribute("member");
if(member==null){
response。sendRedirect(path+"index。jsp"); }
else{ %>
<body bgcolor="16ACFF">
<table width="98%" border="0" cellpadding="0" cellspacing="0" background="<%=basePath %>member/images/tablemde。jpg">
<tr> <td height="5" background="<%=basePath %>member/images/tableline_top。jpg" bgcolor="#16ACFF"></td> </tr> <tr> <td>
<TABLE width="97%" border=0 align=right cellPadding=0 cellSpacing=0 class=leftframetable>
<TBODY> <TR><TD height="25" style="background:url(<%=basePath %>member/images/left_tt。gif) no-repeat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><TD width="20"></TD>
<TD class=STYLE1 style="CURSOR: hand" onclick=showsubmenu(1); height=25>用户信息管理 </TD></tr></table></TD></TR><TR><TD>
<TABLE id=submenu1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY><TR>
<TD width="2%"><IMG src="<%=basePath %>member/images/closed。gif"></TD>
<TD height=23><A href="<%=basePath %>member/info/editpwd。jsp" target="MainFrame"> 修改登陆密码</A></TD></TR>
<TR><TD><IMG src="<%=basePath %>member/images/closed。gif"></TD>
<TD height=23><a href="<%=basePath %>member/info/index。jsp" target="MainFrame"> 修改详细资料</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></td></tr><tr>
<td height="5" background="<%=basePath %>member/images/tableline_bottom。jpg" bgcolor="#9BC2ED"></td></tr>
<tr><td height="5" background="<%=basePath %>member/images/tableline_top。jpg" bgcolor="#16ACFF"></td></tr>
<tr> <td>
<TABLE width="97%" border=0 align=right cellPadding=0 cellSpacing=0 class=leftframetable>
<TBODY> <TR><TD height="25" style="background:url(<%=basePath %>member/images/left_tt。gif) no-repeat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><TD width="20"></TD>
<TD class=STYLE1 style="CURSOR: hand" onclick=showsubmenu(3112); height=25>申报信息管理</TD></tr></table></TD></TR><TR><TD>