personal_advance_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/personal/bulletin/personalBulletin?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_person.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 bgcolor="#666666" height="15"> 
  68.                     <td><font class="strongw">
  69.                     <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;
  70.                     <a href="/mainctrl/personal/main"><font color="#ffffff">公告板查询</font></a>&gt;&gt;
  71.                     <a href="/mainctrl/personal/bulletin/personalBulletin"><font color="#ffffff">公告板查询</font></a>&gt;&gt;
  72.                     高级查询</font>
  73.                     </td>
  74.                   </tr>
  75.                 </table>
  76.                 <table class=title width="600" border="0" cellpadding="2" cellspacing="1">
  77.                   <tr bgcolor="#fafafa"> 
  78.                     <td width="135"><strong>&nbsp;寻找词:</strong> </td>
  79.                     <td width="454"> 
  80.                       <input  maxlength="35" size="24" name="search_words" class="text">
  81.                         <br>
  82.                         <input type="radio" value="1" name="match_all">
  83.                         完全匹配<br>
  84.                         <input type="radio" checked value="2" name="match_all">
  85.                         部分匹配<br> 
  86.                     </td>
  87.                   </tr>
  88.                   <tr bgcolor="#e0e0e0"> 
  89.                     <td width="135"> <strong>&nbsp;搜索范围:</strong> </td>
  90.                     <td width="454"> 
  91.                       <select name="search_bulletin" class="file">
  92.                           <option value="0">全部部门</option>
  93.           <org:DivisionList><vnex:items select='<%= request.getParameter("deptId") %>'> 
  94.           <option value="<org:DivisionAttribute attribute="id"/>" <org:DivisionAttribute attribute="isSelected"/> 
  95.           > <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/> 
  96.           </option>
  97.           </vnex:items></org:DivisionList> 
  98.                         </select>
  99.                     </td>
  100.                   </tr>
  101.                   <tr bgcolor="#fafafa"> 
  102.                     <td width="135"> &nbsp;<strong>按日期搜索:</strong> </td>
  103.                     <td width="454"> 
  104.                       <select name="search_date" size="1">
  105.                           <option value="0" selected>任何日期</option>
  106.                           <option value="1">自从昨天开始</option>
  107.                           <option value="5">自从5天以前</option>
  108.                           <option value="10">自从10天以前</option>
  109.                           <option value="30">自从30天以前</option>
  110.                         </select>
  111.                     </td>
  112.                   </tr>
  113.                   <tr bgcolor="#e0e0e0"> 
  114.                     <td width="135"> <strong>&nbsp;按发布人姓名搜索:</strong> </td>
  115.                     <td width="454"> 
  116.                       <input maxlength="8" size="18" name="search_publisher" class="text">
  117.                         
  118.                     </td>
  119.                   </tr>
  120.                   <tr bgcolor="#fafafa">
  121.                     <td colspan="2" align="center" height="30">
  122.                         <input type="button" value="查询" class="text" name="Button2" onClick="doSearch(this.form)" >
  123.                         &nbsp;&nbsp;
  124.                         <input type="button" name="Submit3" class="text"  value="返回" onClick="location='/mainctrl/personal/bulletin/personalBulletin'">
  125.                     </td>
  126.                   </tr>    
  127.                 </table>
  128.                   </td>
  129.                </tr>
  130.           </table>
  131.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  132.        </TD>
  133.      </TR>
  134.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  135.     </TBODY> 
  136.   </TABLE>
  137.     <BR>
  138.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  139. </form>
  140. </DIV>
  141. </BODY>
  142. </HTML>