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

📄 newstopwathch.jsp

📁 新闻网(news) 带使用说明书 可以用作课程设计
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.victor.domain.NewsActionForm"%>
<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 align="center" valign="top" bgcolor="#FFFFFF">
	<p class="style1"><br>
	  <br>
	  <br>
	  查看全部的新闻</p>
  <table width="529" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
    <tr align="center" bgcolor="#0099cc">
      <td width="39" height="24">ID</td>
      <td width="110">标题</td>
      <td width="49">类别</td>
      <td width="60">详细类别</td>
      <td width="74">发布时间</td>
      <td width="166">操作</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>&nbsp;&nbsp;<a href="javascript:projectDelete('<%=newsActionForm.getNewID()%>')">删除</a>&nbsp;&nbsp;<a href="newsContentAction.do?newsID=<%=newsActionForm.getNewID()%>">查看新闻具体内容</a></td>
    </tr>
	<%}%>
  </table>	</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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