📄 photo.jsp
字号:
<%@page contentType="text/html" pageEncoding="GB2312"%><%@ page import="myTools.DataBase" %><%@ page import="java.sql.*"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><link href="css.css" rel="stylesheet" type="text/css" media="all" /><title>个人空间--相片</title><% String photo_id = request.getParameter("photo_id"); if (photo_id == null) { photo_id = "1"; } DataBase db = new DataBase(); ResultSet rs = null; db.connectToDB(); String sql = "select album_id, photo_date, photo_description, visit_account, photo_path from photos where photo_id = " + photo_id; rs = db.executeQuery(sql); String album_id = "1"; String photo_date = ""; String photo_description = ""; String visit_account = ""; String photo_path = ""; if (rs.next()) { album_id= rs.getString(1); photo_date = rs.getString(2); photo_description = rs.getString(3); visit_account = rs.getString(4); photo_path = rs.getString(5); }%><form action="AlbumServlet" method="post" enctype="multipart/form-data"> <div id="picture"> <div class="photoeshead" align="left"> 相册 >> </div> <hr> <div id="photoesbody"> <div align="center"> <img class="pictureformat" src="<%=photo_path%>"></img> </div> <div > <p><%=photo_description%></p> <div>游览(<%=visit_account%>) 上传于<%=photo_date%></div> </div> </div> </div></form><%db.close();%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -