bulletin_search.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <%@ page import="com.vnex.intranet.communication.bulletin.value.BulletinConditionBean" %>
- <%
- session.removeAttribute("condition");
- %>
- <script language=JavaScript>
- function isEmpty(s)
- { return ((s == null) || (s.length == 0))
- }
- function doSearch(form)
- {
- if(checkIt(form))
- {
- form.action="/mainctrl/bulletin/otherBulletinList?matchIt";
- form.submit();
- }
- }
- function checkChar(str)
- {
- var i,j,strTemp;
- strTemp=""<>/\'%&";
- for (i=0;i<str.length;i++)
- {
- j=strTemp.indexOf(str.charAt(i));
- if (j!=-1)
- {
- return false;
- }
- }
- return true;
- }
- function checkIt(form)
- {
- if(!isEmpty(form.search_words.value) && !checkChar(form.search_words.value))
- {
- alert("请不要在关键词中加入"<>/\'%&这样的字符");
- return false;
- }
- if(!isEmpty(form.search_publisher.value) && !checkChar(form.search_publisher.value))
- {
- alert("请不要在发布者查询条件中加入"<>/\'%&这样的字符");
- return false;
- }
- return true;
- }
- </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_communicate.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" cellpadding="2" cellspacing="0">
- <tr>
- <td colspan="6" bgcolor="#666666" height="15"><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/communication/main"><font color="#ffffff">通信</font></a>>><a href="/mainctrl/bulletin/home?home"><font color="#ffffff">公告板</font></a>>>公告板查询</font>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="6"></td>
- </tr>
- </table>
- <table class=title width="600" border="0" cellpadding="2" cellspacing="1">
- <tr bgcolor="#fafafa">
- <td width="149"><strong> 寻找词:</strong> </td>
- <td width="440">
- <input maxlength="35" size="24" name="search_words" class="text">
- <br>
- <input type="radio" value="1" name="match_all">
- 完全匹配<br>
- <input type="radio" checked value="2" name="match_all">
- 部分匹配<br>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="149"> <strong> 搜索范围:</strong> </td>
- <td width="440">
- <select name="search_bulletin" class="file">
- <option value="0">全部部门</option>
- <org:DivisionList><vnex:items select='<%= request.getParameter("deptId") %>'>
- <option value="<org:DivisionAttribute attribute="id"/>" <org:DivisionAttribute attribute="isSelected"/>
- > <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/>
- </option>
- </vnex:items></org:DivisionList>
- </select>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="149"> <strong>按日期搜索:</strong> </td>
- <td width="440">
- <select name="search_date" size="1">
- <option value="0" selected>任何日期</option>
- <option value="1">自从昨天开始</option>
- <option value="5">自从5天以前</option>
- <option value="10">自从10天以前</option>
- <option value="30">自从30天以前</option>
- </select>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="149"> <strong> 按发布人姓名搜索:</strong> </td>
- <td width="440">
- <input maxlength="8" size="18" name="search_publisher" class="text">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" align="center" height="30">
- <input type="button" value="查询" class="text" name="Button2" onClick="doSearch(this.form)" >
-
- <input type="button" name="Submit3" class="text" value="返回" onClick="location='/mainctrl/bulletin/home?home'">
- </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>