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