bulletin_home.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:9k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_communication.tld" prefix="comm" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <jsp:useBean id="leaveWordProxy" scope="application" class="com.vnex.intranet.communication.leaveword.proxy.LeaveWordProxyBean" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- String addConTime = leaveWordProxy.getYesterday();
- String condition = " and (a.end_date>='"+addConTime+"' or a.end_date is null) ";
- String pageTo = "/mainctrl/bulletin/home";
- String start = "1";
- if(request.getParameter("start") != null)
- start = request.getParameter("start");
- if(request.getParameter("home") != null)
- {
- condition += " and a.creator_id="+BusinessName.getEmpId()+" ";
- pageTo += "?home";
- }
- if(request.getParameter("mydept") != null)
- {
- condition += " and a.dept_id="+BusinessName.getDeptId();
- pageTo += "?mydept";
- }
- if(request.getParameter("ss") != null)
- {
- condition += " and a.creator_id = "+BusinessName.getEmpId()+ " ";
- pageTo += "?ss";
- }
- String deleteSuffix = "/mainctrl/bulletin/deleteBulletins";
- if(request.getParameter("history") != null)
- {
- deleteSuffix += "?history";
- condition = " and a.end_date<'"+addConTime+"' and a.creator_id="+BusinessName.getEmpId()+" ";
- pageTo += "&history";
- }
- %>
- <HTML>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_communicate.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language=JavaScript>
- function deleteBulletins(form)
- {
- if(form.bulletinId == null)
- {
- alert("目前尚未有数据可供删除");
- return;
- }
- if(!isChecked(form.bulletinId))
- {
- alert("请选择一条信息再进行删除");
- return;
- }
- if(confirm("是否删除所选的公告板信息?"))
- {
- form.action="<%=deleteSuffix%>";
- form.submit();
- }
- }
- function search(form)
- {
- form.action="/mainctrl/bulletin/searchBulletinResult";
- form.submit();
- }
- function SelectAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'C1')
- e.checked = form.C1.checked;
- }
- }
- function searchHistory(form)
- {
- form.action="/mainctrl/bulletin/home?history";
- form.submit();
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top" bgcolor="#cccccc">
- <td>
- <table width="600" border="0" cellpadding="2" cellspacing="0">
- <tr bgcolor="#666666">
- <td><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>>
- <a href="/mainctrl/communication/main"><font color="#ffffff">通信</font></a>>>
- 公告板
- </font>
- </td>
- </tr>
- </table>
- <table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#fafafa">
- <tr>
- <td height="30">
- <jsp:include page="Bulletin_Head.jsp" />
- </td>
- </tr>
- </table>
- <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr bgcolor="#fafafa" height="30">
- <td colspan="5">
- <input type="button" name="Button2" value="新增" onClick="location='/mainctrl/bulletin/publishBulletin'" class="text">
-
- <%
- if(request.getParameter("mydept") == null)
- {
- %>
- <input type="button" name="Button2" value="删除" onClick="deleteBulletins(this.form)" class="text">
- <% }%>
- <input type="button" name="button22" style="width:110px" value="进入本部门公告板" onclick="location='/mainctrl/bulletin/home?mydept'" class="text">
-
- <input type="button" name="button23" style="width:120px" value="清理本人的过期公告" class="text" onclick="searchHistory(this.form)">
- </td>
- </tr>
- <tr>
- <% if(request.getParameter("mydept") == null)
- {
- %>
- <td align="left" height="12" width="7%">
- <p align="center"><font class="strong">选择</font>
- </td>
- <% }%>
- <td align="left" height="12">
- <p align="center"><font class="strong">标题</font>
- </td>
- <td align="left" height="12">
- <p align="center"><font class="strong">发布人</font>
- </td>
- <td align="left" height="12">
- <p align="center"><font class="strong">发布日期</font>
- </td>
- </tr>
- <comm:bulletinList queryStr="<%=condition%>">
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />" align="center">
- <%
- if(request.getParameter("mydept") == null)
- {
- %>
- <td width="7%">
- <input type="checkbox" name="bulletinId" value="<comm:bulletinAttribute attribute="bulletin_id"/>">
- </td>
- <% }%>
- <td>
- <a href="/mainctrl/bulletin/bulletinDetail?bulletinId=<comm:bulletinAttribute attribute="bulletin_id"/>&start=<%=start%>
- <%
- if(request.getParameter("ss") != null)
- {
- %>
- &ss
- <% }%>
- "><comm:bulletinAttribute attribute="bulletin_title" /></a>
- </td>
- <td>
- <comm:bulletinAttribute attribute="bulletin_creator" />
- </td>
- <td>
- <comm:bulletinAttribute attribute="bulletin_create_date" />
- </td>
- </tr>
- </vnex:items>
- <%
- if(request.getParameter("mydept") == null)
- {
- %>
- <tr>
- <td align="center" width="7%" bgcolor="#fafafa">
- <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
- </td>
- <td colspan="3" bgcolor="#fafafa">
- 全选
- </td>
- </tr>
- <% }%>
- <tr>
- <td colspan="4" align="left" bgcolor="#e0e0e0">
- <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </comm:bulletinList>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>