typewatch.jsp~1~

来自「jsp技术 基于struts框架的新闻发布系统」· JSP~1~ 代码 · 共 48 行

JSP~1~
48
字号
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.victor.domain.NewsTypeActionForm"%>
<html>
<head>
<title>查看全部类别的名称</title>

</head>
<script Language="JavaScript">
function projectDelete(date){
if(confirm("是否删除流水号为["+date+"]的一组数据吗?"))
window.location="typeDeleteAction.do?ID="+date;

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

<body bgcolor="#ffffc0">
<div align="center" s>
  <p>查看全部类别的名称</p>
  <p>&nbsp;</p>
  <table width="579" border="3" cellspacing="3" cellpadding="3">
    <tr>
      <td width="41">ID</td>
      <td width="149">类别的名称</td>
	  <td width="149">详细类别的名称</td>
      <td width="201">类别建立的时间</td>
      <td width="135"><div align="center">操作</div></td>
    </tr>
<%for(int i=0;i<typeList.size();i++){
NewsTypeActionForm newsTypeActionForm=(NewsTypeActionForm)typeList.get(i);
%>
    <tr>
      <td><%=newsTypeActionForm.getTypeID()%></td>
      <td><%=newsTypeActionForm.getTypeName()%></td>
	     <td><%=newsActionForm.getNewsStyle()%></td>
      <td><%=newsTypeActionForm.getTypeTime()%></td>
      <td><div align="center"><a href="typeSelectOneAction.do?ID=<%=newsTypeActionForm.getTypeID()%>">修改</a>&nbsp;&nbsp;&nbsp;<a href="javascript:projectDelete('<%=newsTypeActionForm.getTypeID()%>')">删除</a></div></td>
    </tr><%}%>
  </table>

  <p><a href="jsp/managerBack/newsTypeManager/typeInsert.jsp">添加类别的名称</a></p>
</div>

</body>
</html>

⌨️ 快捷键说明

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