管理员信息检查正确跳到管理员操作界面,对图书进行增删改操作Ahome.html使用框架实现
代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员首页</title>
</head>
<frameset rows="80,*" cols="*" framespacing="2" frameborder="yes" border="2" bordercolor="#666666">
<frame src="top.html" name="topFrame" noresize="noresize" id="topFrame" title="topFrame" />
<frameset cols="90,*" framespacing="2" frameborder="yes" border="2" bordercolor="#666666">
<frame src="left.html" name="leftFrame" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="main.html" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
</frameset>
<noframes><body >
</body></noframes>
</html>
6.1 Top.html
<!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>无标题文档</title>
</head>
<body bgcolor="99FFCC">
<pre> 管理员操作界面</pre>
</body>
</html>
6.2 Left.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body bgcolor="99FFCC">
<p><a href="addbook.jsp" target="mainFrame" >添加书籍</a></p>
<p><a href="updatebook.jsp" target="mainFrame">修改书籍</a></p>
<p><a href="deletebook.jsp" target="mainFrame">删除书籍</a></p>
</body>
</html>
6.3 Main.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>管理操作</title>
</head>
<body bgcolor="99FFCC">
欢迎操作
</body>
</html>