WebRoot/jsp/book/edittype.jsp
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" contentType="text/html; charset=GB2312" pageEncoding="GB2312"%>
<%@page import="com.book.dao.DBHelper"%>
<%@page import="java.sql.*"%>
<%@page import="com.book.pojo.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>图书分类信息</title>
<%
String idStr = request.getParameter("type_id");
int id = Integer.parseInt(idStr);
Connection conn =null;
PreparedStatement ps = null;
ResultSet rs = null;
BookType type = new BookType();
try{
conn = DBHelper.getConnection();
ps = conn.prepareStatement("select * from book_type where type_id="+id);
rs = ps.executeQuery();
if(rs.next()){
type.setType_id(rs.getInt(1));
type.setType_name(rs.getString(2));
type.setRemark(rs.getString(3));
}
}catch(Exception e){
e.printStackTrace();
}finally{
DBHelper.close(conn,ps,null);
}
%>
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="js/js.js"></script>
<style type="text/css">
<!--
body {
margin-left: 3px;
margin-top: 0px;
margin-right: 3px;
margin-bottom: 0px;
}
.STYLE1 {
color: #e1e2e3;
font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
color: #344b50;
font-size: 12px;
}
.STYLE21 {
font-size: 12px;
color: #3b6375;
}
.STYLE22 {
font-size: 12px;
后面还有 51 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
