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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  *  $ RCSfile: Conference_Day_List.jsp,v $
  4.  *  $ Revision: 1.0 $
  5.  *  $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
  6.  *  $ /mainctrl/conference/searchList $
  7.  *
  8.  *  This is the conference search list page.
  9.  *  @author Copyright (c) May. 2001, by VisionNex  Technologies Inc., All Right Reversed.
  10.  */
  11. %>
  12. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  13. <%@ page import="com.vnex.intranet.conference.value.ConferenceQueryBean" %>
  14. <%@ taglib uri="/vnex_conference.tld" prefix="conference" %>
  15. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  16. <%
  17.    ConferenceQueryBean queryBean =  ( ConferenceQueryBean )request.getAttribute("queryBean");
  18.    int timeScope = -1;
  19.    int statusId = -1;
  20.    if ( request.getParameter( "timeScope" ) != null )
  21.    {
  22.        timeScope = Integer.parseInt( request.getParameter( "timeScope" ) );
  23.        queryBean.setDateScope(  timeScope );
  24.    }
  25.    if ( request.getParameter( "statusId" ) != null )
  26.    {
  27.        statusId = Integer.parseInt( request.getParameter( "statusId" ) );
  28.        if ( statusId != 5 )
  29.         queryBean.setStatusId( statusId );
  30.    }
  31. %>
  32. <HTML>
  33. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  34. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  35. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  36. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  37. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  38. <script Language="JavaScript">
  39. function submitForm(act)
  40. {
  41.     if ( act == 'add' )
  42.     {
  43.         document.forms[0].action='/mainctrl/conference/createPage';
  44.         document.forms[0].submit();
  45.     }  
  46.     if( act == 'seach')
  47.     {
  48.         
  49.         if ( checkIt(document.forms[0] ) )
  50.         {
  51.             var scope = document.forms[0].dateScope.value;
  52.             var status  = document.forms[0].statusId.value;
  53.             document.forms[0].action='/mainctrl/conference/seachList?timeScope='+scope+'&statusId='+status;
  54.             document.forms[0].submit(); 
  55.         }
  56.     }
  57. }      
  58. function checkIt(form)
  59. {   
  60.    if( !isEmpty(form.fromDate.value) )
  61.    {            
  62.       if(!isVNEXDate(form.fromDate.value))
  63.       {
  64.         alert("查询开始日期非法");
  65.         return false;
  66.       }   
  67.    } 
  68.    if( !isEmpty(form.toDate.value) )
  69.    {            
  70.       if(!isVNEXDate(form.toDate.value))
  71.       {
  72.         alert("查询结束日期非法");
  73.         return false;
  74.       }      
  75.    }     
  76.    if( !isEmpty(form.toDate.value) && !isEmpty(form.fromDate.value) )
  77.    {                        
  78.       if(form.fromDate.value > form.toDate.value)
  79.       {
  80.         alert("查询结束日期必须在查询开始日期之后");
  81.         return false;
  82.       }
  83.    }         
  84.    
  85.    return true;
  86. }
  87. </script>
  88. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  89. <DIV align=center> 
  90.   <form name="form1" method="post" action="" >
  91.   <input type="hidden" value="<%=timeScope%>" name="timeScope">
  92.     <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  93.      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  94.       <TR> 
  95.         <TD colSpan=3 align="center"><BR> 
  96.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  97.             <tr bgcolor="#FAFAFA"> 
  98.               <td> 
  99.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  100.                   <tr bgcolor="#666666"> 
  101.                     <td colspan="2" valign="top"><font class="strongw">
  102.                      <jsp:include page="Conference_Navibar_Head.jsp" />
  103.                     查询结果</font></td>
  104.                   </tr>
  105.                 </table>
  106.                 <jsp:include page="conference_search_head.jsp" />
  107.                 <table border="0" width="600" cellspacing="1" cellpadding="2" class=title>
  108.                   <tr> 
  109.                     <td colspan="6" height="30" bgcolor="#fafafa">&nbsp; 
  110.                       <input type="button" name="addConference" style="width:60px" class=text onClick=" submitForm('add')" value="新增会议">&nbsp;&nbsp;
  111.                       
  112.                     </td>
  113.                   </tr>
  114.                   <tr> 
  115.                     <td width="24%" align="center"><font class="strong">会议主题</font></td>
  116.                     <td width="21%" align="center"><font class="strong">发起人</font></td>
  117.                     <td width="22%" align="center"><font class="strong">会议状态</font></td>
  118.                     <td width="14%" align="center"><font class="strong">会议室</font></td>
  119.                      
  120.                   </tr>
  121.                   <conference:conferenceList qryBean="<%=queryBean%>" >
  122.                     <vnex:items paging="true"> 
  123.                   <tr bgcolor="<vnex:itemsColor />"> 
  124.                     <td width="24%" align="center"><a href="/mainctrl/conference/browseDetails?conferenceId=<conference:conferenceAttribute attribute='conference_id' />"><conference:conferenceAttribute attribute='conference_subject' /></a> 
  125.                     </td>
  126.                     
  127.                     <td width="21%" align="center"><conference:conferenceAttribute attribute='conference_creatorName' /></td>
  128.                                                                                                
  129.                     <td width="22%" align="center"><conference:conferenceAttribute attribute='conference_statusName' /></td>
  130.                     <td width="14%" align="center"><img src="/vnex/MacOS/conference_room.gif" width="16" height="16"><conference:conferenceAttribute attribute='conference_boardroomName' /></td>
  131.                      
  132.                     </td>
  133.                   </tr>
  134.                    </vnex:items> 
  135.                    <tr>
  136.                       <td colspan="6" align="left" bgcolor="#e0e0e0">
  137.                       <% String link ="/mainctrl/conference/seachList?timeScope="+timeScope+"&statusId="+statusId; %>
  138.                          &nbsp;<vnex:pagingTag pageName="<%=link%>" />
  139.                       </td>
  140.                   </tr>           
  141.                   </conference:conferenceList>
  142.                 </table>
  143.               </td>
  144.             </tr>
  145.           </table>
  146.          <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  147. </TD>
  148.     </TR>
  149.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  150.     </TABLE>
  151.   <BR>
  152.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  153. </form></DIV>
  154. </BODY></HTML>