?? view.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="#FFFFDF">
<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">發布人</td>
<td width="98" height="37" bgcolor="#FFFFFF">公告標題</td>
<td width="95" height="37" bgcolor="#FFFFFF">發布時間</td>
<td width="231" bgcolor="#FFFFFF">具體公告</td>
<td width="74" bgcolor="#FFFFFF">刪除</td>
</tr>
<%
Collection coll=(Collection)request.getAttribute("msg");
if(coll==null){
%>
<tr align="center" bgcolor="#FFFFDF">
<td height="45" colspan="6" class="advise">沒有添加公告</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)%> </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 + -