📄 secondlevel.jsp~5~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.sql.*" %>
<jsp:useBean id="sqlb" class="newsreleasesystem.SQLBean" scope="session" />
<%!Connection con=null; %>
<html>
<head>
<title>
SecondLevel
</title>
</head>
<body bgcolor="#ffffff">
<p>
<h1 align="center">
二级标题及文件位置发布
</h1>
<p>
<form action="/JspModule/secondleveltitlepublishservlet" method="POST">
<table align="center">
<tr>
<td>一级标题:</td>
<td><select name="firstlevel">
<%
try {
if(sqlb.getCon()!=null){
con=sqlb.getCon();
String strSql="select * from FirstLevelTitle";
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery(strSql);
while(rs.next()){%>
<option><%=rs.getString(2) %></option>
<%} %>
<%}
}
catch (Exception ex) {
System.out.println(ex.getMessage());
}
%>
</select></td>
</tr>
<tr>
<td>二级标题:</td>
<td><input type="text" name="secondlevel" size="20"/></td>
</tr>
<tr>
<td>文件位置:</td>
<td><input type="file" name="position" size="20"/></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="确定"/><input type="reset" value="重置"/></td>
</tr>
</table>
<div align="center">(二级标题最好与新闻稿件一致)</div>
<p><p><p><p>
<table align="center">
<tr>
<td><font face="华文行楷">注意:发布前请认真检查输入的标题是否正确。</font></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -