Conference_Search_List.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $ RCSfile: Conference_Day_List.jsp,v $
- * $ Revision: 1.0 $
- * $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
- * $ /mainctrl/conference/searchList $
- *
- * This is the conference search list page.
- * @author Copyright (c) May. 2001, by VisionNex Technologies Inc., All Right Reversed.
- */
- %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.conference.value.ConferenceQueryBean" %>
- <%@ taglib uri="/vnex_conference.tld" prefix="conference" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%
- ConferenceQueryBean queryBean = ( ConferenceQueryBean )request.getAttribute("queryBean");
- int timeScope = -1;
- int statusId = -1;
- if ( request.getParameter( "timeScope" ) != null )
- {
- timeScope = Integer.parseInt( request.getParameter( "timeScope" ) );
- queryBean.setDateScope( timeScope );
- }
- if ( request.getParameter( "statusId" ) != null )
- {
- statusId = Integer.parseInt( request.getParameter( "statusId" ) );
- if ( statusId != 5 )
- queryBean.setStatusId( statusId );
- }
- %>
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
- <script Language="JavaScript">
- function submitForm(act)
- {
- if ( act == 'add' )
- {
- document.forms[0].action='/mainctrl/conference/createPage';
- document.forms[0].submit();
- }
- if( act == 'seach')
- {
- if ( checkIt(document.forms[0] ) )
- {
- var scope = document.forms[0].dateScope.value;
- var status = document.forms[0].statusId.value;
- document.forms[0].action='/mainctrl/conference/seachList?timeScope='+scope+'&statusId='+status;
- document.forms[0].submit();
- }
- }
- }
- function checkIt(form)
- {
- if( !isEmpty(form.fromDate.value) )
- {
- if(!isVNEXDate(form.fromDate.value))
- {
- alert("查询开始日期非法");
- return false;
- }
- }
- if( !isEmpty(form.toDate.value) )
- {
- if(!isVNEXDate(form.toDate.value))
- {
- alert("查询结束日期非法");
- return false;
- }
- }
- if( !isEmpty(form.toDate.value) && !isEmpty(form.fromDate.value) )
- {
- if(form.fromDate.value > form.toDate.value)
- {
- alert("查询结束日期必须在查询开始日期之后");
- return false;
- }
- }
- return true;
- }
- </script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <DIV align=center>
- <form name="form1" method="post" action="" >
- <input type="hidden" value="<%=timeScope%>" name="timeScope">
- <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"><BR>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr bgcolor="#FAFAFA">
- <td>
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr bgcolor="#666666">
- <td colspan="2" valign="top"><font class="strongw">
- <jsp:include page="Conference_Navibar_Head.jsp" />
- 查询结果</font></td>
- </tr>
- </table>
- <jsp:include page="conference_search_head.jsp" />
- <table border="0" width="600" cellspacing="1" cellpadding="2" class=title>
- <tr>
- <td colspan="6" height="30" bgcolor="#fafafa">
- <input type="button" name="addConference" style="width:60px" class=text onClick=" submitForm('add')" value="新增会议">
- </td>
- </tr>
- <tr>
- <td width="24%" align="center"><font class="strong">会议主题</font></td>
- <td width="21%" align="center"><font class="strong">发起人</font></td>
- <td width="22%" align="center"><font class="strong">会议状态</font></td>
- <td width="14%" align="center"><font class="strong">会议室</font></td>
- </tr>
- <conference:conferenceList qryBean="<%=queryBean%>" >
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />">
- <td width="24%" align="center"><a href="/mainctrl/conference/browseDetails?conferenceId=<conference:conferenceAttribute attribute='conference_id' />"><conference:conferenceAttribute attribute='conference_subject' /></a>
- </td>
- <td width="21%" align="center"><conference:conferenceAttribute attribute='conference_creatorName' /></td>
- <td width="22%" align="center"><conference:conferenceAttribute attribute='conference_statusName' /></td>
- <td width="14%" align="center"><img src="/vnex/MacOS/conference_room.gif" width="16" height="16"><conference:conferenceAttribute attribute='conference_boardroomName' /></td>
- </td>
- </tr>
- </vnex:items>
- <tr>
- <td colspan="6" align="left" bgcolor="#e0e0e0">
- <% String link ="/mainctrl/conference/seachList?timeScope="+timeScope+"&statusId="+statusId; %>
- <vnex:pagingTag pageName="<%=link%>" />
- </td>
- </tr>
- </conference:conferenceList>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>