📄 welcome.jsp~38~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page session="true" %>
<%@ page errorPage="error.jsp" import="java.sql.*" %>
<%
try{
String log=(String)session.getAttribute("log");
if(!log.equals("1"))response.sendRedirect("index.jsp");
}catch(Exception e){response.sendRedirect("index.jsp");
}
request.setCharacterEncoding("gb2312");
String username=(String)session.getAttribute("username");
String tp="";
System.out.println("user "+username);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>welcome</title>
<link href="wel.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style4 {color: #999900}
.style5 {
color: #996633;
font-size: 24px;
font-weight: bold;
font-family: "文鼎雕刻体", "新宋体";
}
a:visited {
color: #0099CC;
}
a:hover {
color: #00CC66;
}
a:active {
color: #00FF00;
}
.style11 {color: #66FF33}
.style12 {font-size: 10px}
.style15 {font-size: 13px; color: #0099FF; }
-->
</style>
</head>
<jsp:useBean id="welcomeBeanId" scope="session" class="bookmanager.WelcomeBean" />
<jsp:setProperty name="welcomeBeanId" property="*" />
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="780"><img src="images/title2.gif" width="780" height="40"></td>
</tr>
<tr>
<td height="40" align="center" valign="middle" background="images/9.gif"><p>
<%out.print("<a href=index.jsp>首页</a> | <a href=user_op.jsp?tp=userinfo&username="+username+">个人资料</a>| <a href=user_op.jsp?tp=usermofi&username="+username+">修改个人信息</a> | <a href=book_op.jsp?tp=borrowinfo&username="+username+">借书情况</a> | <a href=book_op.jsp?tp=punish&username="+username+">罚款查询</a> | <a href=welcome.jsp>图书查找</a> | <a href=welcome.jsp>图书预借</a> | <a href=book_op.jsp?tp=continue&username="+username+">图书续借</a>");
%> | <a href="logout.jsp">注销</a> | 当前时间:<%=new java.util.Date().toLocaleString()%>
</p>
</td>
</tr>
<tr>
<td width="780" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#99CC66">
<tr bgcolor="#FFFFFF">
<td width="162"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" align="center"><span class="style12"> ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬</span></td>
</tr>
<tr>
<td align="center"><span class="style5"><img src="images/8.gif" width="13" height="15">会员登陆<img src="images/8.gif" width="13" height="15"></span></td>
</tr>
<tr>
<td height="1" align="center"><span class="style12"> ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬</span></td>
</tr>
<tr>
<td height="30" align="left"> 欢迎用<span class="style4">户</span>: </td>
</tr>
<tr>
<td height="30" align="left"><p>★☆<%=username%></p>
</td>
</tr>
<tr>
<td height="30" align="left"><span class="style11">★☆</span><a href="usermodi.jsp">修改个人资料</a></td>
</tr>
<tr>
<td height="30" align="left">★☆<a href="logout.jsp">退出登陆</a></td>
</tr>
<tr>
<td height="40" align="center"><p class="style12">·°★·°∴°☆°∴·★°·</p>
<p class="style12">·°★·°∴°☆°∴·★°·</p></td>
</tr>
<tr>
<td width="163" align="center" valign="middle">
<form action="welcome.jsp" method="post" name="form1" target="_self">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td height="22" align="left">★☆图书分类: </td>
</tr>
<tr>
<td height="22" align="left">☆
<select name="bkcname" size="1">
<%
ResultSet temp=welcomeBeanId.findbkclass();
while(temp.next()){
int i=0;
if(i!=0){
out.print("<option value="+temp.getString("bkcname")+">"+temp.getString("bkcname")+"</option>" );
i++;
}
else
out.print("<option value="+temp.getString("bkcname")+" selected>"+temp.getString("bkcname")+"</option>" );
}
%>
</select></td>
</tr>
<tr>
<td height="22" align="left"><span class="style11">★☆</span>图书名称: </td>
</tr>
<tr>
<td height="22" align="left"><span class="style11">☆
<input name="bkname" type="text" value="" size="18">
</span></td>
</tr>
<tr>
<td height="22" align="left">★☆作者:</td>
</tr>
<tr>
<td height="22" align="left">☆
<input name="bkauthor" type="text" value="" size="18"></td>
</tr>
<tr>
<td height="22" align="left"><span class="style11">★☆<span class="style4">出版社名称</span>:</span></td>
</tr>
<tr>
<td height="22" align="left"><span class="style11">☆
<input name="bkpublish" type="text" value="" size="18">
</span></td>
</tr>
<tr>
<td height="30" align="center"><input type="submit" name="Submit" value="查找图书"></td>
</tr>
<tr>
<td height="25"> </td>
</tr>
</table>
</form>
<!-- ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬ jsp ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬ -->
</td>
</tr>
</table></td>
<td width="615" background="images/back.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" align="center"><img src="images/title3.gif" width="400" height="35"></td>
</tr>
<tr>
<td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#99FFCC">
<tr>
<th height="20">图书名</th>
<th height="20">版次</th>
<th height="20">图书分类</th>
<th height="20">作者</th>
<th height="20">出版社</th>
<th width="55" height="20">现存数量</th>
<th height="20">选择</th>
</tr>
<%
String submit = request.getParameter("Submit");
if (submit!=null && !submit.equals("")){
out.print(welcomeBeanId.printInfo());
//System.out.println(welcomeBeanId.getBkcname());
//if(welcomeBeanId.getBkauthor().equals("")&&welcomeBeanId.getBkname().equals(""))System.out.println("bkauthor = kong");
//System.out.println(welcomeBeanId.printInfo());
}
%>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td align="center"><span class="style15">@2005.4-2005.?Made By WangJ At WUHAN University</span></td>
</tr>
<tr>
<td align="center"><span class="style15">All Rights Reserved </span></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -