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

📄 newswathch.jsp

📁 新闻网(news) 带使用说明书 可以用作课程设计
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.victor.domain.NewsActionForm"%>
<%@ page import="com.victor.tool.Chinese"%>
<html>
<head>
<title>查看全部的链接</title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
}
td{
font-size:9pt;
}
.style1 {
	color: #FF9900;
	font-weight: bold;
}
-->
</style></head>
<script Language="JavaScript">
function projectDelete(date){
if(confirm("是否删除流水号为["+date+"]的一组数据吗?"))
window.location="deleteNewsAction.do?newsID="+date;

}
</script>
<%List list=(List)request.getAttribute("newsList");

%>
<body>
<table width="568" height="419"  border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
  <tr>
    <td valign="top" bgcolor="#FFFFFF">
	<div align="center" s>
  <p class="style1"><br>
    <br>
    <br>
    查看全部的新闻</p>
 
  <table width="504" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
    <tr align="center" bgcolor="#0099cc">
      <td width="39" height="24">ID</td>
      <td width="94" align="center">标题</td>
      <td width="40" align="center">类别</td>
      <td width="57" align="center">详细类别</td>
      <td width="66" align="center">发布时间</td>

      <td width="197" align="center">操作</td>
    </tr>
	<%for(int i=0;i<list.size();i++){
NewsActionForm newsActionForm=(NewsActionForm)list.get(i);
%>
    <tr bgcolor="#ffffff">
      <td height="24"><%=newsActionForm.getNewID()%></td>
      <td><%=newsActionForm.getNewTitle()%></td>
      <td><%=newsActionForm.getNewsType()%></td>
       <td><%=newsActionForm.getNewsStyle()%></td>
      <td><%=newsActionForm.getNewIssueDate()%></td>

      <td align="center"><a href="selectOneNewsAction.do?newsID=<%=newsActionForm.getNewID()%>">修改</a>&nbsp;&nbsp;<a href="javascript:projectDelete('<%=newsActionForm.getNewID()%>')">删除</a>&nbsp;&nbsp;<a href="newsContentAction.do?newsID=<%=newsActionForm.getNewID()%>&title=<%=newsActionForm.getNewTitle()%>">查看新闻具体内容</a></td>
    </tr>
	<%}%>
  </table>
  <p><a href="selectTypeAction.do">添加新闻</a></p>
</div>	</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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