📄 moreinfo.jsp
字号:
<%@ page language="java" import="java.util.*,com.bean.util.*" pageEncoding="UTF-8"%>
<%
String bookId=request.getParameter("bookId");
String sql="select BookName,Publisher,author,remark,ISBN,Time,Isout,Isreserve from bookInfo where bookId='"+bookId+"'";;
DbConn conn=new DbConn();
String[][] bookInfo=conn.getData(sql);
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'moreInfo.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<h2>图书详细信息</h2>
<div class="articles">
<ul style="list-style:none">
<li>书 名:<%=bookInfo[0][0]%></li><br><br>
<li>作者/编著:<%=bookInfo[0][2]%></li><br><br>
<li> 出 版 社:<%=bookInfo[0][1]%></li><br><br>
<li> I S B N:<%=bookInfo[0][4]%></li><br><br>
<li> 入库时间:<%=bookInfo[0][5].substring(0,10)%></li><br><br>
<li>备注:<textarea name=remark cols=70 rows=5 style=vertical-align:bottom disabled=readonly><%=bookInfo[0][3]%></textarea></li>
<li>是否可借:<%=(bookInfo[0][6].equals("N")&&bookInfo[0][7].equals("N"))?"可借":(bookInfo[0][6].equals("Y")&&bookInfo[0][7].equals("N"))?"不可借 <a href='Reserve?bookId="+bookId+"' >预约</a>":"不可借"%></li>
</ul>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -