📄 affichelist.jsp
字号:
<%@ page language="java" import="java.util.*,com.BO.*,com.VO.*" pageEncoding="GB2312"%>
<%@ page import="java.util.ArrayList"%>
<%String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'affichelist.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body bgcolor="#c5def6"><iframe height=0></iframe>
<%afficheBO bo = new afficheBO();
ArrayList list = bo.affiche();
%>
<h2 align="center">
公告信息
</h2>
<FORM action="servlet/addffichelistSer" method="GET">
<TABLE width="81%" border="1" align="center" bgcolor="#6685C5">
<tr>
<td width="14%">
<div align="center">
主题
</div>
</td>
<td width="26%">
<div align="center">
内容
</div>
</td>
<td width="20%">
<div align="center">
发布日期
</div>
</td>
<td width="15%">
<div align="center">
发布人
</div>
</td>
<td width="5%">
<div align="center">
编辑
</div>
</td>
<td width="12%">
<div align="center">
删除
</div>
</td>
</tr>
<%for (int i = 0; i < list.size(); i++) {
afficheVO vo = (afficheVO) list.get(i);
%>
<TR bgcolor="#FFFFFF">
<td width="9%">
<div align="center">
<%=vo.getAfficheTitle()%>
</div>
</td>
<td width="9%">
<div align="center">
<%=vo.getAfficheContent()%>
</div>
</td>
<td width="9%">
<div align="center">
<%=vo.getAfficheTime()%>
</div>
</td>
<td width="9%">
<div align="center">
<%=vo.getManagerID()%>
</div>
</td>
<td width="9%">
<div align="center">
<FONT color="green">编辑</FONT>
</div>
</td>
<td width="9%">
<div align="center">
<FONT color="red"><A href="servlet/afficheSer?affhche_id=<%=vo.getAffiche_id()%>">删除</A></FONT>
</div>
</td>
</TR>
<%}%>
</TABLE>
</FORM>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -