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

📄 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;
	font-weight: bold;
}
.style3 {
	color: #005AB5;
	font-weight: bold;
}
.style4 {color: #000000}
.style6 {color: #000000; font-weight: bold; }
.style7 {font-weight: bold}
.style8 {color: #000000}
-->
</style>
</head>
<body bgcolor="#E1D6FF">
<table width="59%" height="25" align="center" cellpadding="0" cellspacing="0">
  <tr>
 
    <td width="74%" height="23" colspan="6" align="center" background="../KCM/zs.gif" class="style1 advise"><strong>查看部门</strong></td>
  </tr>
</table>
<table width="59%" height="103" align="center" cellpadding="0" cellspacing="0">
  <tr align="center" class="column">
    <td width="112" height="17" bgcolor="#FFFFFF"><div align="center" class="style4"><strong>部门序号</strong></div></td>
    <td width="196" height="17" bgcolor="#FFFFFF"><span class="style6">部门名称</span></td>
    <td width="184" height="17" bgcolor="#FFFFFF"><div align="left" class="style4 style7">
      <div align="center">大概工作描述</div>
    </div></td>
  </tr>
  <%
Collection coll=(Collection)request.getAttribute("msg");
if(coll==null){
%>
  <tr align="center" bgcolor="#FFFFFF">
    <td height="17" colspan="4" class="advise style3 style8">没有添加部门</td>
  </tr>
  <%
}else{
Iterator it=coll.iterator();
while(it.hasNext()){
	Department dep=(Department)it.next();
%>
  <tr align="center">
    <td height="22" bgcolor="#FFFFFF"><div align="right"><%= dep.getId() %></div></td>
    <td height="22" bgcolor="#FFFFFF"><%= dep.getName() %></td>
    <td height="22"  bgcolor="#FFFFFF"><%= dep.getExplain() %></td>
  </tr>
  <%
	}
}
request.removeAttribute("msg");
%>
</table>
</body>
</html>

⌨️ 快捷键说明

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