📄 bookonline.jsp
字号:
<%@page import="javabean.*" %>
<%@page import="java.sql.*" %>
<%@page import="service.*" %>
<%@page import="java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=gb2312" %>
<% request.setCharacterEncoding("GB2312"); %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 24pt;
font-weight: bold;
color: #0066FF;
}
.STYLE2 {color: #FF0000}
.STYLE3 {
font-size: 18px;
font-weight: bold;
color: #FF6600;
}
.STYLE4 {
font-size: 18px;
font-weight: bold;
color: #FF0000;
}
-->
</style>
</head>
<body>
<%
ResultSet rs = null;
IBookInfo book = new BookInfoImple();
rs = book.query();
%>
<form id="form1" name="form1" method="post" action="doBuy.jsp">
<p align="center" class="STYLE1">全部在线图书信息</p>
<hr />
<table width="631" border="1" align="center">
<tr>
<th width="44" height="43" scope="col"><span class="STYLE2">购买选项</span></th>
<th width="65" scope="col"><span class="STYLE2">索引</span></th>
<th width="118" scope="col"><span class="STYLE2">书名</span></th>
<th width="69" scope="col"><span class="STYLE2">定价</span></th>
<th width="67" scope="col"><span class="STYLE2">作者</span></th>
<th width="83" scope="col"><span class="STYLE2">出版日期</span></th>
<th width="139" scope="col"><span class="STYLE2">出版社</span></th>
</tr>
<% while(rs.next()){%>
<tr>
<td height="30"><div align="center">
<input type="checkbox" name="checkbox" value="<%=rs.getInt("id")%>" />
</div></td>
<td><%=rs.getInt("id")%></td>
<td><%=rs.getString("name")%></td>
<td><%=rs.getInt("price")%></td>
<td><%=rs.getString("author")%></td>
<td><%=rs.getString("date")%></td>
<td><%=rs.getString("bookman")%></td>
</tr>
<%} %>
</table>
<p align="center">
<input type="submit" name="Submit" value="购买" />
<input type="reset" name="Submit2" value="取消" />
</p>
</form>
<form id="form2" name="form2" method="post" action="queryBuy.jsp">
<p class="STYLE3"> 查询:
<input type="text" name="textfield" />
<select name="select">
<option value="name" selected="selected">书名</option>
<option value="author">作者</option>
<option value="bookman">出版社</option>
</select>
<input type="submit" name="Submit3" value="查询" />
</p>
<p> </p>
<p align="center" class="STYLE4"> <a href="index.jsp">首页</a> <a href="user.jsp">返回</a></p>
</form>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -