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

📄 register_bookconfirm.jsp

📁 网上书店网站源代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!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=utf-8" />
<title>添加书籍确认</title>
<style type="text/css">
<!--
.STYLE2 {color: #FFFF00}
.STYLE3 {color: #0000FF}
.STYLE4 {color: #00FF00}
body {
	background-color: #000000;
}
-->
</style>
</head>

<body>
<div align="center">
  <table width="726" border="0">
    <tr>
      <td width="720">
<%
String id=request.getParameter("id");
session.setAttribute("id",id);
String name=request.getParameter("name");
session.setAttribute("name",name);
String author=request.getParameter("author");
session.setAttribute("author",author);
String press=request.getParameter("press");
session.setAttribute("press",press);
String price=request.getParameter("price");
session.setAttribute("price",price);
String note=request.getParameter("note");
session.setAttribute("note",note);
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection("jdbc:odbc:bookstore");
Statement stmt=conn.createStatement();
String sql="select * from b_book where b_no='"+id+"'";
ResultSet rs=stmt.executeQuery(sql);
if(rs.next())
{
  rs.close();
%>
        <jsp:forward page="register_book.jsp"/>
        
        <% }
else
{
rs.close();
}
stmt.close();
conn.close();
}
catch(Exception e){}
%>
        <form method="post" action="book_db.jsp">
          <input type="hidden" name="no" value="<%=id%>" />
          <input type="hidden" name="name" value="<%=name%>" />
          <input type="hidden" name="author" value="<%=author%>" />
          <input type="hidden" name="press" value="<%=press%>" />
          <input type="hidden" name="price" value="<%=price%>" />
          <input type="hidden" name="note" value="<%=note%>" />
          <span class="STYLE4">管理员请仔细检查您添加书籍的信息</span><br />
          <br />
          <table width="60%" border="1">
            <tr>
              <td width="50%"><span class="STYLE2">书籍编号</span></td>
              <td width="50%"><span class="STYLE3"><%=id%></span></td>
      </tr>
            <tr>
              <td height="25"><span class="STYLE2">书籍名称</span></td>
              <td><span class="STYLE3"><%=name%></span></td>
      </tr>
      <tr>
              <td height="25"><span class="STYLE2">书籍作者</span></td>
              <td><span class="STYLE3"><%=author%></span></td>
      </tr>
      <tr>
              <td height="25"><span class="STYLE2">出版社</span></td>
              <td><span class="STYLE3"><%=press%></span></td>
      </tr>
            <tr>
              <td><span class="STYLE2">书籍价格</span></td>
              <td><span class="STYLE3"><%=price%></span></td>
      </tr>
            <tr>
              <td><span class="STYLE2">备注信息</span></td>
              <td><span class="STYLE3"><%=note%></span></td>
      </tr>
          </table>
          <div align="center">
  <input type="submit" value="确认添加" />
  &nbsp;&nbsp;
              <input type="button" value="返回修改" onclick="history.back()" />
                </div>
      </form></td>
    </tr>
  </table>
</div>
</body>
</html>

⌨️ 快捷键说明

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