📄 showstudent.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="data.LoginData"%>
<!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=gb2312" />
<title>无标题文档</title>
<style type="text/html">
<!--
.STYLE1 {font-size: 9px}
-->
</style>
<style type="text/css">
<!--
.STYLE9 {font-size: 24px; font-weight: bold; color: #3399FF; }
.STYLE12 {font-size: 16px; font-weight: bold; color: #000000; }
.STYLE13 {font-size: 16px; color: #FFFFFF; }
.STYLE14 {
color: #FFFFFF;
font-weight: bold;
font-size: 14px;
}
-->
</style>
</head>
<body>
<jsp:useBean id="show" class="Bean.MachSearch" scope="page">
</jsp:useBean>
<jsp:useBean id="connDbBean" scope="page" class="db.dbConn"/>
<%
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
String strSql="";
String str =(String)request.getParameter("id");
byte b[]=str.getBytes("ISO-8859-1");
str=new String(b);
try{
LoginData loginData = new LoginData();
conn = loginData.getConn();
stmt=conn.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
strSql="SELECT * FROM Reader where Rnumber='"+str+"'";
rs = stmt.executeQuery(strSql);
if(rs.next()){
}
else{
response.sendRedirect("tushu/error.jsp");
}
}catch(SQLException e){
System.out.println(e.getMessage());
}
%>
<table width="975" border="0" cellpadding="0" cellspacing="0" bordercolor="#333399">
<!--DWLayoutTable-->
<tr>
<td height="76" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="171" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="171" height="76" valign="middle"><img src="image/tushu2.bmp" /></td>
</tr>
</table> </td>
<td width="75" height="28"> </td>
<td width="100"> </td>
<td width="18"> </td>
<td width="101"> </td>
<td width="26"> </td>
<td width="100"> </td>
<td width="30"> </td>
<td width="100"> </td>
<td width="49"> </td>
<td width="100"> </td>
<td width="105"> </td>
</tr>
<tr>
<td height="48"> </td>
<td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100" height="48" align="center" valign="bottom" bgcolor="#F5F5F5"><a href="newBk_Insert.jsp" class="STYLE12">新书入库</a></td>
</tr>
</table></td>
<td> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100" height="48" align="center" valign="bottom" bgcolor="#F5F5F5"><a href="bk_Borrow.jsp" class="STYLE12">图书借出</a></td>
</tr>
</table></td>
<td> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100" height="48" align="center" valign="bottom" bgcolor="#F5F5F5"><a href="bk_Retrun.jsp" class="STYLE12">还书系统</a></td>
</tr>
</table></td>
<td> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="109" height="48" align="center" valign="bottom" bgcolor="#3366CC" class="STYLE9"><a href="student_Infor.jsp" class="STYLE13">学生信息</a></td>
</tr>
</table></td>
<td> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="149" height="48" align="center" valign="bottom" bgcolor="#F5F5F5"><a href="admin_Infor.jsp" class="STYLE12">管理员信息</a></td>
</tr>
</table></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="975" height="30" bgcolor="#3366CC"> </td>
</tr>
</table> </td>
</tr>
<tr>
<td width="250" height="15"> </td>
<td width="519"> </td>
<td width="206"> </td>
</tr>
<tr>
<td height="265"> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="519" height="265" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="519" height="265" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="108" height="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="108" height="25" align="left" valign="bottom" bgcolor="#3366CC"><span class="STYLE14">学生信息</span></td>
</tr>
</table> </td>
<td width="411"> </td>
</tr>
<tr>
<td height="240" colspan="2" valign="top"><table width="100%" border="2" cellpadding="0" cellspacing="0" bordercolor="#3366CC">
<!--DWLayoutTable-->
<tr>
<td width="519" height="240" align="center" valign="middle"><table width="100%" height="193" border="0">
<tr>
<td height="27" align="center" valign="middle">
<%
out.print("读者编号: ");
out.print(rs.getString("Rnumber"));
session.setAttribute("Rnum",rs.getString("Rnumber"));
%>
</td>
</tr>
<tr>
<td height="27" align="center" valign="middle">
<%
out.print("读者姓名: ");
out.print(rs.getString("Rname"));
%>
</td>
</tr>
<tr>
<td height="27" align="center" valign="middle">
<%
out.print("读者性别: ");
out.print(rs.getString("Rsex"));
%>
</td>
</tr>
<tr>
<td height="26" align="center" valign="middle">
<%
out.print("读者出生日期: ");
out.print(rs.getString("Rbirth"));
%>
</td>
</tr>
<tr>
<td height="28" align="center" valign="middle">
<%
out.print("读者类别: ");
out.print(rs.getString("Rsort"));
%>
</td>
</tr>
<tr>
<td height="24" align="center" valign="middle">
<%
out.print("借书上限: ");
out.print(rs.getString("Rlimited"));
%>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<%
out.print("已借数目: ");
out.print(rs.getString("Ryamount"));
stmt.close();
conn.close();
%>
</td>
</tr>
</table>
<table width="100%" height="30" border="0">
<tr>
<td width="97%" align="center" valign="middle">
<form id="form1" name="form1" method="post" action="/delstudent">
<label>
<input name="Submit" type="submit" value="删除" />
</label>
</form>
</td>
<td width="3%" align="center" valign="middle"> </td>
</tr>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -