⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 00c1d3b5caab001d1412e7a87039532d

📁 项目名叫网上图书馆
💻
字号:
<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312" import="java.sql.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<jsp:useBean id="data" class="com.hua.book.struts.datebase.Database" scope="session"/>
<%
	String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	request.setCharacterEncoding("gbk");
	response.setCharacterEncoding("gbk");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    
    <title>海龙图书</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>
  <table width="780" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
		<tr>
			<td colspan="3" align="center" bgcolor="#FFFFFF"><img src="images/2284008.gif" width="760" height="90"></td>
		</tr>
		<tr>
			<td colspan="2" background="images/titlemu_2.gif" bgcolor="#FFFFFF"><div align="center">
			  <%@ include file="top.jsp"%>
		    </div></td>
		</tr>
		<tr>
			<td colspan="2" background="images/titlemu_2.gif" bgcolor="#FFFFFF"><div align="center">
			  <%@ include file="serach.jsp"%>
			  </div></td>
		</tr>
		<tr>
			<td width="200" align="center" valign="top" bgcolor="#FFFFFF">
		<%@ include file="left.jsp"%>
		  </td>
	      <td width="580" align="left" valign="top" bgcolor="#FFFFFF">
		  <%
		  
		  GregorianCalendar calendar = new GregorianCalendar();
		int year = calendar.get(Calendar.YEAR);
		int month = calendar.get(Calendar.MONTH) + 1;
		int day = calendar.get(Calendar.DAY_OF_MONTH);
		String uploadtime = year + "-" + month + "-" + day;
		  
		  String usertruename=new String(request.getParameter("usertruename").getBytes("gbk"));		  
		  String userid=new String(request.getParameter("userid").getBytes("gbk"));
		  String bookid=new String(request.getParameter("bookid").getBytes("gbk"));
		  String bookname=new String(request.getParameter("bookname").getBytes("gbk"));
		  String bookprice=new String(request.getParameter("bookinprice").getBytes("gbk"));
		  String borrowprice=new String(request.getParameter("bookborrowprice").getBytes("gbk"));
		  %>
	
		  <%
		  if(usertruename!=null&&userid!=null)
		  {
		  session.setAttribute("userid",userid);
		  	boolean tag=data.putongborrow(usertruename,userid,bookid,bookname,bookprice,borrowprice,uploadtime);
				if(tag)
				{
				%>
				<script language="javascript">
				alert('借书成功!');
				window.location="userborrowinfo.jsp";
				</script>
				<%
				}
				else
				{
				%>
				<script language="javascript">
				alert('借书失败!');
				window.location="index.jsp";
				</script>
				<%
				}
		  }
		  else
		  {
		  %>
		  <script language="javascript">
				alert('请认真填写真实姓名和身份证!');
				window.location="orderinfo.jsp";
				</script>
		  <%
		  }
		  %>
		  </td>
		</tr>
		<tr>
		  <td colspan="2" bgcolor="#FFFFFF">  <div align="center">
		    <%@ include file="last.jsp"%>
	      </div></td>
	  </tr>
  </table>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -