📄 showafficheindex.jsp
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<title>查看公告</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 10px;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 0px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #333333;
}
a:hover {
text-decoration: underline;
color: #333333;
}
a:active {
text-decoration: none;
color: #000000;
}
.STYLE12 {
color: #FFFFFF;
font-size: 13px;
font-weight: bold;
}
-->
</style>
<script>
function showhide_obj(obj,icon)
{
obj=document.getElementById(obj);
icon=document.getElementById(icon);
//objStr=obj.toString();
//alert(objStr)
/*objStr=2;
a=objStr.toString()+5;
b=objStr+5
alert(a);alert(b);
*/
if (obj.style.display=="none")
{
//div_list = document.all.tags("div"); //指定文档中的对象为div,仅适用于IE;
div_list = document.getElementsByTagName("div");
for (i=0; i< div_list.length; i ++) {
thisDiv = div_list[i];
if(thisDiv.id.indexOf("notice")!=-1)//当文档div中的id含有list时,与charAt类似;
{
//if(obj.id!=obj)//该div 的id又非选中的obj,设置该div的style为none
//{
thisDiv.style.display="none";//循环吧所有菜单链接都隐藏起来
// }
}
}
//myfont=document.all.tags("font");
myfont=document.getElementsByTagName("font");
for(i=0;i<myfont.length;i++)
{
thisfont = myfont[i];
if(thisfont.id.indexOf("icon")!=-1 && icon.id!=icon)
{
//alert(thisfont.id)
//thisfont.innerHTML="+";
}
}
//icon.innerHTML="-";
obj.style.display=""; //只显示当前链接
}
else
{//假如当前对象是打开的,就关闭它;
//icon.innerHTML="+";
obj.style.display="none";
}
}
function set_initialization(obj,img)
{//设置初始状态,打开一个层;
obj.style.display="";
img.src="images/icon/minus.gif";
}
function show_this(obj)
{
obj=document.getElementById(obj);
if (obj.id==obj.id)
{
//alert(obj.id)
//blinkicon=document.all.tags("font");
blinkicon=document.getElementsByTagName("font");
for(x=0;x<blinkicon.length;x++)
{
if( blinkicon[x].id.indexOf("select")!=-1 && obj.id!=obj )
{
blinkicon[x].innerHTML=" ";
}
}
obj.innerHTML=">";
}
else
{
obj.innerHTML=" ";
}
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<table width="765" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="765" scope="0" style="BORDER-BOTTOM: #A4B5E3 1px solid;">
<table width="160" border="0" align="left" cellpadding="0"
cellspacing="0">
<tr>
<th width="100" height="25" bgcolor="#A4B5E3" class="STYLE12"
style="cursor:hand;" onClick="showhide_obj('notice1'); ">
部门公告
</th>
</tr>
</table>
</th>
</tr>
<tr>
<td height="6" valign="top"
style="padding-top:5px; padding-bottom:2px;">
<div id="notice1" style="display:none;">
<table width="757" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="35" height="22">
<div align="center">
</div>
</td>
<td width="321">
标题
</td>
<td width="142">
<div align="center">
发布时间
</div>
</td>
<td width="98">
发布人
</td>
<td width="161">
<div align="center">
</div>
</td>
</tr>
<tr>
<td height="1" colspan="5" background="../images/line.gif"></td>
</tr>
<logic:notEmpty name="deptAfficheList">
<logic:iterate id="affiche" name="deptAfficheList">
<tr>
<td height="22">
<div align="center">
</div>
</td>
<td height="22">
<bean:write name="affiche" property="afficheTitle" />
</td>
<td>
<div align="center">
<bean:write name="affiche" property="createTime" />
</div>
</td>
<td>
<bean:write name="affiche" property="empId" />
</td>
<td>
<html:hidden property="afficheId" name="affiche" />
<div align="center">
<input type="button" name="Submit43" value="删除"
onclick="window.location='/oa/deleteAffiche.do?afficheId=${affiche.afficheId}'" />
<input type="button" name="Submit33" value="修改"
onclick="window.location='/oa/preUpdateAffiche.do?afficheId=${affiche.afficheId}'" />
<input type="button" name="Submit53" value="查看"
onclick="window.location='/oa/showOneAffiche.do?afficheId=${affiche.afficheId}'" />
</div>
</td>
</tr>
<tr>
<td height="1" colspan="5" background="../images/line.gif"></td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
</div>
</td>
</tr>
</table>
<table width="765" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="765" scope="0" style="BORDER-BOTTOM: #A4B5E3 1px solid;">
<table width="160" border="0" align="left" cellpadding="0"
cellspacing="0">
<tr>
<th width="100" height="25" bgcolor="#A4B5E3" class="STYLE12"
style="cursor:hand;" onClick="showhide_obj('notice2')">
公共公告
</th>
</tr>
</table>
</th>
</tr>
<tr>
<td valign="top" style="padding-top:5px; padding-bottom:2px;">
<div id="notice2" style="display:none;">
<table width="757" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="35" height="22">
<div align="center">
</div>
</td>
<td width="321">
标题
</td>
<td width="142">
<div align="center">
发布时间
</div>
</td>
<td width="98">
发布人
</td>
<td width="161">
<div align="center">
</div>
</td>
</tr>
<tr>
<td height="1" colspan="5" background="../images/line.gif"></td>
</tr>
<logic:notEmpty name="publicAficheList">
<logic:iterate id="affiche" name="publicAficheList">
<tr>
<td height="22">
</td>
<td height="22" align="left">
<bean:write property="afficheTitle" name="affiche" />
</td>
<td>
<div align="center">
<bean:write property="createTime" name="affiche" />
</div>
</td>
<td>
<bean:write property="empId" name="affiche" />
</td>
<td>
<html:hidden name="affiche" property="afficheId" />
<div align="center">
<input type="button" name="del" value="删除"
onclick="window.location='/oa/deleteAffiche.do?afficheId=${affiche.afficheId}'" />
<input type="button" name="Submit33" value="修改"
onclick="window.location='/oa/preUpdateAffiche.do?afficheId=${affiche.afficheId}'" />
<input type="button" name="Submit53" value="查看"
onclick="window.location='/oa/showOneAffiche.do?afficheId=${affiche.afficheId}'" />
</div>
</td>
</tr>
<tr>
<td height="1" colspan="5" background="../images/line.gif"></td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
</div>
</td>
</tr>
</table>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -