bulletin_home.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:10k
源码类别:
电子政务应用
开发平台:
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) "+
- " and a.is_set_to_scroll=1 "+
- " and a.creator_id="+BusinessName.getEmpId() ;
- String pageTo = "/mainctrl/personal/bulletin/home";
- String deleteSuffix = "/mainctrl/personal/bulletin/deleteBulletins";
- if(request.getParameter("history") != null)
- {
- deleteSuffix += "?history";
- condition = " and a.end_date<'"+addConTime+"' and a.creator_id="+BusinessName.getEmpId()+
- " and a.is_set_to_scroll=1 ";
- pageTo += "&history";
- }
- %>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language=JavaScript>
- function deleteBulletins(form)
- {
- if(form.bulletinIds == null)
- {
- alert("目前尚未有数据可供删除");
- return;
- }
- if(!isChecked(form.bulletinIds))
- {
- alert("请选择一条信息再进行删除");
- return;
- }
- if(confirm("是否删除所选的公告板信息?"))
- {
- form.action="<%=deleteSuffix%>";
- 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 publishIt(form)
- {
- if(form.bulletinIds == null)
- {
- alert("目前尚未有数据可供发布");
- return;
- }
- if(!isChecked(form.bulletinIds))
- {
- alert("请选择一条信息再进行发布");
- return;
- }
- form.action="/mainctrl/personal/bulletin/publishToScrollText";
- form.submit();
- }
- function unpublishIt(form)
- {
- if(form.bulletinIds == null)
- {
- alert("目前尚未有数据可供取消发布");
- return;
- }
- if(!isChecked(form.bulletinIds))
- {
- alert("请选择一条信息再进行取消发布");
- return;
- }
- form.action="/mainctrl/personal/bulletin/unpublishFromScrollText";
- form.submit();
- }
- function searchHistory(form)
- {
- form.action="/mainctrl/personal/bulletin/home?history";
- form.submit();
- }
- </script>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <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_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></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/personal/main"><font color="#ffffff">个人办公</font></a>>>
- <% if(request.getParameter("history") == null)
- out.println("滚动消息管理");
- else
- out.println("<a href="/mainctrl/personal/bulletin/home"><font color="#ffffff">"+
- "滚动消息管理</font></a>>>清理过期消息");
- %>
- </font>
- </td>
- </tr>
- </table>
- <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr bgcolor="#fafafa" height="30">
- <td colspan="5">
- <% if(request.getParameter("history") == null)
- {
- %>
- <input type="button" name="Button2" value="新增" onClick="location='/mainctrl/personal/bulletin/writeBulletin'" class="text">
-
- <% }
- else
- {
- %>
- <input type="button" name="button3" value="返回" onclick="location='/mainctrl/personal/bulletin/home'" class="text">
- <% }%>
- <input type="button" name="Button2" value="删除" onClick="deleteBulletins(this.form)" class="text">
- <% if(request.getParameter("history") == null)
- {
- %>
- <input type="button" name="button22" value="设为滚动消息" style="width:80px" onclick="publishIt(this.form)" class="text">
- <input type="button" name="button23" value="不在滚动消息中显示" onclick="unpublishIt(this.form)" class="text" style="width:115px">
- <input type="button" name="button23" style="width:80px" value="清理过期消息" class="text" onclick="searchHistory(this.form)">
- <% }%>
- </td>
- </tr>
- <tr>
- <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>
- <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">
- <td width="7%">
- <input type="checkbox" name="bulletinIds" value="<comm:bulletinAttribute attribute="bulletin_id"/>">
- </td>
- <td>
- <a href="/mainctrl/personal/bulletin/bulletinDetail?bulletinId=<comm:bulletinAttribute attribute="bulletin_id"/>
- <% if(request.getParameter("history") != null)
- out.println("&history");
- %>
- "><comm:bulletinAttribute attribute="bulletin_body" /></a>
- </td>
- <td>
- <comm:bulletinAttribute attribute="bulletin_creator" />
- </td>
- <td>
- <comm:bulletinAttribute attribute="bulletin_create_date" />
- </td>
- <td>
- <comm:bulletinAttribute attribute="is_scroll_text" />
- </td>
- </tr>
- </vnex:items>
- <tr>
- <td align="center" width="7%" bgcolor="#fafafa">
- <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
- </td>
- <td colspan="4" bgcolor="#fafafa">
- 全选
- </td>
- </tr>
- <tr>
- <td colspan="5" 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>