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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  3. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  4. <%@ page import="com.vnex.intranet.communication.bulletin.value.BulletinConditionBean" %>
  5. <% 
  6.     session.removeAttribute("condition");
  7. %>
  8. <script language=JavaScript>
  9. function isEmpty(s)
  10. {   return ((s == null) || (s.length == 0))
  11. }
  12. function doSearch(form)
  13. {
  14.    if(checkIt(form))
  15.    {
  16.       form.action="/mainctrl/bulletin/otherBulletinList?matchIt";
  17.       form.submit();
  18.    }   
  19. }
  20. function checkChar(str)
  21. {
  22.     var i,j,strTemp;
  23.     strTemp=""<>/\'%&";
  24.     for (i=0;i<str.length;i++)
  25.     {
  26.       j=strTemp.indexOf(str.charAt(i));
  27.       if (j!=-1)
  28.       {
  29.         return false;
  30.       }
  31.     }
  32.     return true;
  33. }
  34. function checkIt(form)
  35. {
  36.    if(!isEmpty(form.search_words.value) && !checkChar(form.search_words.value))
  37.    {
  38.       alert("请不要在关键词中加入"<>/\'%&这样的字符");
  39.       return false;
  40.    }
  41.    if(!isEmpty(form.search_publisher.value) && !checkChar(form.search_publisher.value))
  42.    {
  43.       alert("请不要在发布者查询条件中加入"<>/\'%&这样的字符");
  44.       return false;
  45.    }
  46.    
  47.    return true;
  48. }
  49. </script>
  50. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  51. <HTML>
  52. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  53. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  54. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_communicate.js"></script>
  55. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  56. <DIV align=center>
  57. <form name="form1" method="post">
  58.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  59.     <TBODY> 
  60.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  61.       <tr> 
  62.         <td colspan=3 align="center" class="iframestyle" valign="top"><br>
  63.          <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  64.             <tr valign="top"> 
  65.               <td bgcolor="#fafafa" > 
  66.                 <table width="600" border="0" cellpadding="2" cellspacing="0">
  67.                   <tr> 
  68.                     <td colspan="6" bgcolor="#666666" height="15"><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>
  69.                     </td>
  70.                   </tr>
  71.                   <tr bgcolor="#fafafa"> 
  72.                     <td colspan="6"></td>
  73.                   </tr>
  74.                 </table>
  75.                 <table class=title width="600" border="0" cellpadding="2" cellspacing="1">
  76.                   <tr bgcolor="#fafafa"> 
  77.                     <td width="149"><strong>&nbsp;寻找词:</strong> </td>
  78.                     <td width="440"> 
  79.                       <input  maxlength="35" size="24" name="search_words" class="text">
  80.                         <br>
  81.                         <input type="radio" value="1" name="match_all">
  82.                         完全匹配<br>
  83.                         <input type="radio" checked value="2" name="match_all">
  84.                         部分匹配<br> 
  85.                     </td>
  86.                   </tr>
  87.                   <tr bgcolor="#e0e0e0"> 
  88.                     <td width="149"> <strong>&nbsp;搜索范围:</strong> </td>
  89.                     <td width="440"> 
  90.                       <select name="search_bulletin" class="file">
  91.                           <option value="0">全部部门</option>
  92.           <org:DivisionList><vnex:items select='<%= request.getParameter("deptId") %>'> 
  93.           <option value="<org:DivisionAttribute attribute="id"/>" <org:DivisionAttribute attribute="isSelected"/> 
  94.           > <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/> 
  95.           </option>
  96.           </vnex:items></org:DivisionList> 
  97.                         </select>
  98.                     </td>
  99.                   </tr>
  100.                   <tr bgcolor="#fafafa"> 
  101.                     <td width="149"> &nbsp;<strong>按日期搜索:</strong> </td>
  102.                     <td width="440"> 
  103.                       <select name="search_date" size="1">
  104.                           <option value="0" selected>任何日期</option>
  105.                           <option value="1">自从昨天开始</option>
  106.                           <option value="5">自从5天以前</option>
  107.                           <option value="10">自从10天以前</option>
  108.                           <option value="30">自从30天以前</option>
  109.                         </select>
  110.                     </td>
  111.                   </tr>
  112.                   <tr bgcolor="#e0e0e0"> 
  113.                     <td width="149"> <strong>&nbsp;按发布人姓名搜索:</strong> </td>
  114.                     <td width="440"> 
  115.                       <input maxlength="8" size="18" name="search_publisher" class="text">
  116.                     </td>
  117.                   </tr>
  118.                   <tr bgcolor="#fafafa">
  119.                     <td colspan="2" align="center" height="30">
  120.                         <input type="button" value="查询" class="text" name="Button2" onClick="doSearch(this.form)" >
  121.                         &nbsp;&nbsp;
  122.                         <input type="button" name="Submit3" class="text"  value="返回" onClick="location='/mainctrl/bulletin/home?home'">
  123.                     </td>
  124.                   </tr>    
  125.                 </table>
  126.                   </td>
  127.                </tr>
  128.           </table>
  129.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  130.        </TD>
  131.      </TR>
  132.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  133.     </TBODY> 
  134.   </TABLE>
  135.     <BR>
  136.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  137. </form>
  138. </DIV>
  139. </BODY>
  140. </HTML>