⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modifyaffiche.jsp

📁 购物网站
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" language="java" import="com.*,java.util.*,java.io.*" errorPage="../error.jsp" %>
<html>
<head>
<title>修改公告</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
</head>
<jsp:useBean id="affichebean" class="com.AfficheBean" scope="page"/>
<body>
<center>
<h1>选择要更改的公告</h1>
<table width=80% border="1" bgcolor="#0099CC">
<tr bgcolor="#009966" bordercolor="#990066">
<td>id</td><td>内容</td><td>时间</td><td>更改</td>
</tr>
<%
Collection affiche=affichebean.getAllAffiche();
Iterator it=affiche.iterator();

while(it.hasNext())
{
    Affiche temp=(Affiche)it.next();
	out.println("<tr bordercolor=#990066>");
	out.println("<td>"+temp.getAfficheId()+"</td>");
	try
   	{
		out.println("<td>"+temp.getAfficheNews()+"</td>");
		out.println("<td>"+temp.getAfficheTime()+"</td>");
		
	}
    catch(Exception e)
   	{
   		System.out.println(e);
   	}
	out.println("<td><a href='modifyAffiche_pro.jsp?afficheId="+temp.getAfficheId()+"'>更改</a>");
	out.println("</tr>");
}
%>
</table>
<a href="affiche.html">返回</a>
</center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -