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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  *  $ RCSfile: Boardroom_Day_List.jsp,v $
  4.  *  $ Revision: 1.0 $
  5.  *  $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
  6.  *  $ /mainctrl/boardroom/reservationList $
  7.  *
  8.  *  This is the boardroom 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. <%@ taglib uri="/vnex_conference.tld" prefix="conference" %>
  15. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  16. <jsp:useBean id="conValueBean" scope="page" class="com.vnex.intranet.conference.value.ConferenceValueBean" />
  17. <jsp:useBean id="conProxyBean" scope="application" class="com.vnex.intranet.conference.proxy.ConferenceProxyBean" />
  18. <%    
  19.    ConferenceQueryBean queryBean = (ConferenceQueryBean)request.getAttribute("queryBean"); 
  20. %>
  21. <HTML>
  22. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  23. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  24. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  25. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  26. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  27. <script Language="JavaScript">
  28. function submitForm(act)
  29. {
  30.     
  31.     if( act == 'search')
  32.     {
  33.         if ( checkIt(document.forms[0] ) )
  34.         {
  35.             document.forms[0].action='/mainctrl/boardroom/reservationList';
  36.             document.forms[0].submit(); 
  37.         }
  38.     }
  39. }      
  40. function checkIt(form)
  41. {   
  42.    if( !isEmpty(form.fromDate.value) )
  43.    {            
  44.       if(!isVNEXDate(form.fromDate.value))
  45.       {
  46.         alert("查询开始日期非法");
  47.         return false;
  48.       }   
  49.    } 
  50.    if( !isEmpty(form.toDate.value) )
  51.    {            
  52.       if(!isVNEXDate(form.toDate.value))
  53.       {
  54.         alert("查询结束日期非法");
  55.         return false;
  56.       }      
  57.    }     
  58.    if( !isEmpty(form.toDate.value) && !isEmpty(form.fromDate.value) )
  59.    {                        
  60.       if(form.fromDate.value > form.toDate.value)
  61.       {
  62.         alert("查询结束日期必须在查询开始日期之后");
  63.         return false;
  64.       }
  65.    }         
  66.    
  67.    return true;
  68. }
  69. </script>
  70. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  71. <DIV align=center>
  72.   <form name="form1" method="post" action="" >
  73.   <input type="hidden" name="bookingFlag" value="true" >
  74.   <input type="hidden" name="radioButton" value="1" >
  75.     <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  76.        <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  77.     <TR> 
  78.         <TD colSpan=3 align="center"><Br> 
  79.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  80.             <tr bgcolor="#FAFAFA"> 
  81.               <td> 
  82.                 <table width="600" border="0" cellspacing="0" cellpadding="2" bgcolor="#666666">
  83.                   <tr> 
  84.                     <td>
  85.                     <font class="strongw">
  86.                     <jsp:include page="Boardroom_Navibar_Head.jsp" />
  87.                     &gt;&gt;预定情况
  88.                     </font>
  89.                     </font>
  90.                     </td>
  91.                   </tr>
  92.                 </table>
  93.                 <table width="600" border="0" cellpadding="2" cellspacing="1" class="title">
  94.                   <tr bgcolor="#e0e0e0"> 
  95.                     <td width="70"><font class="strong">&nbsp;会议室:</font> </td>
  96.                     <td> 
  97.                       <select style="WIDTH: 100px"  name="boardroomId">
  98.                       <conference:boardroomUsableList >
  99.                       <option value="-1" >请选择</option>
  100.                         <conference:items >
  101.                         <option value=<conference:boardroomAttribute attribute='boardroom_id' /> >
  102.                          <conference:boardroomAttribute attribute='boardroom_name' />
  103.                         </option>
  104.                         </conference:items>
  105.                       </conference:boardroomUsableList>
  106.                       </select>
  107.                     </td>
  108.                       
  109.                   </tr>
  110.                   <tr bgcolor="fafafa" height="30"> 
  111.                     <td width="70"><font class="strong">&nbsp;日期:</font> </td>
  112.                     <td>从&nbsp; 
  113.                       <input type="text" name="fromDate" class=text size="24"  readonly >&nbsp;
  114.                       <img style="CURSOR: hand" 
  115.                    onClick="fPopUpCalendarDlg( fromDate);return false" alt=弹出日历下拉菜单 
  116.                   src="/vnex/intranet/calendar/datetime.gif" 
  117.                   align=absMiddle width="16" height="16">&nbsp;&nbsp;到&nbsp; 
  118.                       <input type="text" name="toDate" class=text size="24"  readonly >&nbsp;
  119.                       <img style="CURSOR: hand" 
  120.                   onClick="fPopUpCalendarDlg( toDate);return false" alt=弹出日历下拉菜单 
  121.                   src="/vnex/intranet/calendar/datetime.gif" 
  122.                   align=absMiddle width="15" height="15">&nbsp;
  123.                   <input type="button" name="B222" class=text value="查询" onClick=" submitForm('search') ">
  124.                    </td>
  125.                   </tr>
  126.                 </table>
  127.                 <table border="0" width="600" cellspacing="1" cellpadding="2" class=title>
  128.                   <tr> 
  129.                     <td width="21%" align="center"><font class="strong">会议室</font></td>
  130.                     <td width="27%" align="center"><font class="strong">用途</font></td>
  131.                     <td width="20%" align="center"><font class="strong">开始时间</font></td>
  132.                     <td width="19%" align="center"><font class="strong">结束时间</font></td>
  133.                     <td width="13%" align="center"><font class="strong">预定人</font></td>
  134.                   </tr>
  135.                    <conference:bookingList  qryBean="<%=queryBean%>">
  136.                    <vnex:items paging="true"> 
  137.                   <tr bgcolor="<vnex:itemsColor />"> 
  138.                     <td width="21%" align="center"><img src="/vnex/MacOS/conference_room.gif" width="16" height="16"><conference:conferenceAttribute attribute='conference_boardroomName' /></td>
  139.                     <td width="27%" align="center">会议:<conference:conferenceAttribute attribute='conference_subject' /></a> 
  140.                     </td>
  141.                     <td width="20%" align="center"><conference:conferenceAttribute attribute='conference_beginDate' /></td>
  142.                     <td width="19%" align="center"><conference:conferenceAttribute attribute='conference_endDate' /></td>                                                                        
  143.                     <td width="13%" align="center"> <conference:conferenceAttribute attribute='conference_creatorName' /></td>
  144.                   </tr>
  145.                   </vnex:items>
  146.                    <tr>
  147.                       <td colspan="6" align="left" bgcolor="#e0e0e0">
  148.                   &nbsp;&nbsp;<vnex:pagingTag pageName="/mainctrl/boardroom/reservationList?a&&bookingFlag=true" />
  149.                   </td>
  150.                   </tr>
  151.                   </conference:bookingList>
  152.                   
  153.                  
  154.                 </table>
  155.               </td>
  156.             </tr>
  157.           </table>
  158.              <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  159.       </TD>
  160.     </TR>
  161.       <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  162.   </TABLE>
  163.   <BR>
  164.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  165.  </form>
  166. </DIV>
  167. </BODY>
  168. </HTML>