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

电子政务应用

开发平台:

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