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

📄 view.jsp

📁 JSP+JavaBean+Servlet 办公自动化管理系统由前台管理和后台管理两大部分组成。 前台管理模块实现:公告管理、公文管理、员工管理、部门信息、收发信息和优秀员工管理6部分。 后台管理
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ include file="../hear/hear.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>部门查看</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<script src="../js/oa.js"></script>
<style type="text/css">
<!--
.style1 {
	font-size: 16px;
	color: #010000;
	font-weight: bold;
}
-->
</style>
</head>
<body bgcolor="#E1D6FF">
<table width="56%" height="25" align="center" cellpadding="0" cellspacing="0">
  <tr>

    <td width="94%" height="24" colspan="6" align="center" background="../KCM/zs.gif" class="advise style1">公告信息</td>
  </tr>
</table>
<table width="56%" height="48%" align="center" cellpadding="0" cellspacing="0">
  <tr align="center" class="column">

    <td width="77" height="37" bgcolor="#FFFFFF"><strong>发布人</strong></td>
    <td width="98" height="37" bgcolor="#FFFFFF"><strong>公告标题</strong></td>
    <td width="95" height="37" bgcolor="#FFFFFF"><strong>发布时间</strong></td>
    <td width="231" bgcolor="#FFFFFF"><strong>具体公告</strong></td>
    <td width="74" bgcolor="#FFFFFF"><strong>删除</strong></td>
  </tr>
  <%
	Collection coll=(Collection)request.getAttribute("msg");
	if(coll==null){	
%>
  <tr align="center" bgcolor="#E1D6FF">
    <td height="45" colspan="6" class="advise"><strong>没有添加公告</strong></td>
  </tr>
  <%
	}else{
		Iterator it=coll.iterator();//用Collection对象的iterator()方法获得
		while(it.hasNext()){
			Affice dep=(Affice)it.next();
%>
  <tr align="center"  >

    <td height="33" bgcolor="#FFFFFF"><div align="center"><%=db.IdtoName(dep.getEmid())%></div></td>
    <td height="33" bgcolor="#FFFFFF"><div align="center"><%= dep.getTitle()%></div></td>
    <td height="33" bgcolor="#FFFFFF"><div align="center"><%= dep.getTime().substring(0,10)%>&nbsp;</div></td>
    <td height="33" bgcolor="#FFFFFF"><div align="center"><%= dep.getContent() %></div></td>
    <td height="33" bgcolor="#FFFFFF"><a href="del?afficeid=<%=dep.getId()%>"><img src="../image/empty.gif" width="20" height="20" border="0" /></a></td>
  </tr>
  <%
		}
	}
	request.removeAttribute("msg");//移除request对象中所带的属性
%>
</table>
</body>
</html>

⌨️ 快捷键说明

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