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

电子政务应用

开发平台:

Java

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