📄 seenews.jsp~8~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="newsset.*" %>
<%@ page import="java.util.*" %>
<html>
<head>
<title>
seenews
</title>
<%
NewsManager sm=new NewsManager();
ArrayList list=sm.NewstALL();
%>
</head>
<body bgcolor="#ffffff">
<h1>
<p align="center"><font size="20" color="red">欢迎进入新闻查阅系统</font></p>
</h1>
<p align="center">
请选择查询类别:
<select name="cha">
<option>按标题查询</option>
<option>按内容查询</option>
<option>按作者查询</option>
<option>按时间查询</option>
</select>
请输入关键字:<input type="text" name="c"><input type="submit" name="ti" value="查询">
</p>
<form action="#" method="POST">
<table align="center" border="4" bgcolor="red"><tr>
<td>标题</td>
<td>作者</td>
<td>日期</td>
</tr>
<%
for(int i=0;i<list.size();i++)
{
News s=(News)list.get(i);
out.print("<tr>");
out.print("<td><a href="+s.getTitle()+">"+s.getTitle()+"</a></td>");
out.print("<td>"+s.getZuozhe()+"</td>");
out.print("<td>"+s.getTime()+"</td>");
out.print("</tr>");
}
%>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -