📄 editchoose.jsp
字号:
<html>
<head>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="sqlbean" scope="page" class="news.sql_data"/>
<title>编辑</title>
</head>
<body bgcolor="#FFFFFF" text="#000080" vlink="#0000FF">
<p align="center"><br>
<strong><font face="Arial"><br>
Please Select The News Item You wish To edit <br>
<br>
</font></strong></p>
<ol>
<%
String sql,dte,title,news,id,tempclass;
sql = "Select * FROM news order by id asc";
ResultSet RS = sqlbean.executeQuery(sql);
if(RS.wasNull()) out.print("<br><font face=Arial color=navy size=2><b>No News At This Time</b></font>");
while(RS.next())
{
dte = RS.getString("d");
title = RS.getString("title");
news = RS.getString("news");
id = RS.getString("id");
tempclass = RS.getString("class");
out.print("<font face='Arial' color='black' size='2'><li></font>");
out.print("<p align='left'><font face='Arial' size='2'>[<a href='edit.jsp?id=");
out.print(id);
out.print("'>ID:");
out.print(id);
out.print("</a>] ");
out.print("<font face='Arial' color='red' size='2'>");
out.print(dte);
out.print("</font> ");
out.print("<font face='Arial' color='green' size='2'>");
out.print(tempclass);
out.print("</font> ");
out.print("<font face='Arial' color='navy' size='2'>");
out.print(title);
out.print("</font> ");
out.print("<font face='Arial' color='blue' size='2'>");
out.print(news);
out.print("</font>");
out.print("<br>");
}
RS.close();
%>
</p></li>
</ol>
</font>
<p align="center"><font face="Arial" color="#000080" size="3">< Back To <a href="main.jsp">Main Page</a></font><font face="Arial" size="2" color="#000080"><br>
<br>
<br>
<br>
</font></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -