personal_bulletin_home.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_communication.tld" prefix="comm" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <jsp:useBean id="leaveWordProxy" scope="application" class="com.vnex.intranet.communication.leaveword.proxy.LeaveWordProxyBean" />
  5. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  6. <jsp:useBean id="bulletinHandler" scope="request" class="com.vnex.intranet.communication.bulletin.handler.BulletinRequestHandler" />
  7. <%
  8.     String addConTime = leaveWordProxy.getYesterday();
  9.     String condition = " and (a.end_date>='"+addConTime+"' or a.end_date is null) ";
  10.     String pageTo = "/mainctrl/personal/bulletin/home?a";
  11.     String deptId = request.getParameter("deptId");
  12.     if(request.getParameter("matchIt") == null)
  13.        session.removeAttribute("condition");
  14.     if(deptId != null && !deptId.equals("0") && request.getParameter("findDept") != null)
  15.     {
  16.        condition += " and dept_id="+deptId;
  17.        pageTo += "&deptId="+deptId;
  18.     }
  19.     if(request.getParameter("matchIt") != null)
  20.     {
  21.        condition += bulletinHandler.generateCondition(request);
  22.        session.setAttribute("conditon", condition);
  23.        pageTo += "&matchIt";
  24.     }
  25.     if(session.getAttribute("condition") != null)
  26.        condition = (String)session.getAttribute("condition");
  27. %>
  28. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>    
  29. <script language=JavaScript>
  30. </script>
  31. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  32. <HTML>
  33. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  34. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  35. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  36. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  37. <DIV align=center>
  38. <form name="form1" method="post">
  39.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  40.     <TBODY> 
  41.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  42.       <TR> 
  43.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  44.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  45.             <tr valign="top"> 
  46.               <td bgcolor="#fafafa" > 
  47.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  48.                   <tr valign="top" bgcolor="#cccccc"> 
  49.                     <td> 
  50.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  51.                         <tr bgcolor="#666666"> 
  52.                             <td><font class="strongw">
  53.                                <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;
  54.                                <a href="/mainctrl/personal/main"><font color="#ffffff">个人办公</font></a>&gt;&gt;
  55.                                公告板查询
  56.                                </font>
  57.                             </td>
  58.                         </tr>
  59.                         <tr bgcolor="#fafafa">
  60.                             <td><jsp:include page="bulletin_head.jsp" /></td>
  61.                         </tr>
  62.                       </table>
  63.                       <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  64.                            <tr>
  65.                                 <td align="left" height="12"> 
  66.                                   <p align="center"><font class="strong">标题</font>
  67.                                 </td>
  68.                                 <td align="left" height="12"> 
  69.                                   <p align="center"><font class="strong">内容</font>
  70.                                 </td>
  71.                                 <td align="left" height="12"> 
  72.                                   <p align="center"><font class="strong">发布人</font>
  73.                                 </td>
  74.                                 <td align="left" height="12"> 
  75.                                   <p align="center"><font class="strong">发布日期</font>
  76.                                 </td>
  77.                               </tr>
  78.                               <comm:bulletinList queryStr="<%=condition%>">          
  79.                               <vnex:items paging="true">          
  80.                               <tr bgcolor="<vnex:itemsColor />" align="center"> 
  81.                                 <td>
  82.                                   <comm:bulletinAttribute attribute="bulletin_title" />
  83.                                 </td>
  84.                                 <td>
  85.                                   <a href="/mainctrl/personal/bulletin/personalBulletinDetail?bulletinId=<comm:bulletinAttribute attribute="bulletin_id"/>"><comm:bulletinAttribute attribute="bulletin_body" /></a>                                                                                                   
  86.                                 </td>
  87.                                 <td>
  88.                                   <comm:bulletinAttribute attribute="bulletin_creator" />
  89.                                 </td>
  90.                                 <td>
  91.                                   <comm:bulletinAttribute attribute="bulletin_create_date" />
  92.                                 </td>
  93.                               </tr>
  94.                               </vnex:items>
  95.                             <tr>
  96.                                 <td colspan="4" align="left" bgcolor="#e0e0e0">
  97.                                    &nbsp;<vnex:pagingTag pageName="<%=pageTo%>" />
  98.                                 </td>
  99.                             </tr>    
  100.                             </comm:bulletinList>
  101.                          </table>
  102.                        </td>
  103.                     </tr>
  104.                   </table>
  105.                 </td>
  106.              </tr>
  107.           </table>
  108.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  109.        </TD>
  110.      </TR>
  111.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  112.     </TBODY> 
  113.   </TABLE>
  114.     <BR>
  115.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  116. </form>
  117. </DIV>
  118. </BODY>
  119. </HTML>