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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  *  $ RCSfile: Boardroom_Browse_Details.jsp,v $
  4.  *  $ Revision: 1.0 $
  5.  *  $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
  6.  *  $ /mainctrl/boardroom/browseDetails $
  7.  *
  8.  *  This is the boardroom browse details 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.util.*" %>
  14. <%@ page import="com.vnex.intranet.util.FieldUtil" %>
  15. <!--jsp:useBean id="businessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" /-->
  16. <jsp:useBean id="boardroomValueBean" scope="page" class="com.vnex.intranet.conference.value.BoardroomValueBean" />
  17. <jsp:useBean id="boardroomProxy" scope="application" class="com.vnex.intranet.conference.proxy.BoardroomProxyBean" />
  18. <%
  19.    int brId = Integer.parseInt( request.getParameter("boardroomId") );
  20.    boardroomValueBean = boardroomProxy.getBoardroomDetails( brId ); 
  21.    session.setAttribute("boardroomValueBean" ,boardroomValueBean);
  22. %>
  23. <HTML>
  24. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  25. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  26. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  27. <script Language="JavaScript">
  28. function submitForm(act)
  29. {
  30.     if ( act == 'edit' )
  31.     {
  32.          document.forms[0].action='/mainctrl/boardroom/editPage?flag=fromBrowsePage';
  33.          document.forms[0].submit();
  34.     }
  35.     if ( act == 'return' )
  36.     {
  37.         document.forms[0].action='/mainctrl/boardroom/managementList';
  38.         document.forms[0].submit();
  39.     }
  40.     if( act == 'stop' )
  41.     {
  42.         document.forms[0].action='/mainctrl/boardroom/updateBoardroom?flag=stop&boardroomId=<%=brId%>';
  43.         document.forms[0].submit();
  44.     } 
  45.      if( act == 'resume' )
  46.     {
  47.         document.forms[0].action='/mainctrl/boardroom/updateBoardroom?flag=resume&boardroomId=<%=brId %>';
  48.         document.forms[0].submit();
  49.     } 
  50.     if( act == 'delete' )
  51.     {
  52.         if ( confirm("确定删除?") )
  53.         {
  54.             document.forms[0].action='/mainctrl/boardroom/deleteBoardroom?boardroomId=<%=brId %>';
  55.             document.forms[0].submit();
  56.         }
  57.     }
  58. }      
  59. </script>  
  60. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  61. <DIV align=center>
  62.   <form name="form1" method="post" action="" >
  63.     <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  64.        <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  65.     <TR> 
  66.         <TD colSpan=3 align="center"><br>
  67.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  68.             <tr bgcolor="#FAFAFA"> 
  69.               <td> 
  70.                 <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  71.                   <tr bgcolor="#666666"> 
  72.                     <td colspan="2" height="14"> <font class="strongw">
  73.                    <jsp:include page="Boardroom_Navibar_Head.jsp" />
  74.                    &gt;&gt;会议室详细信息 
  75.                       </font> </td>
  76.                   </tr>
  77.                   <tr bgcolor="#e0e0e0"> 
  78.                     <td width="100"><font class="strong">&nbsp;编号:</font> </td>
  79.                     <td width="487"><%=FieldUtil.filterScriptTag( boardroomValueBean.getCode() ) %> </td>
  80.                   </tr>
  81.                   <tr bgcolor="#fafafa"> 
  82.                     <td width="100"><font class="strong">&nbsp;名称:</font> </td>
  83.                     <td width="487"><%=FieldUtil.filterScriptTag( boardroomValueBean.getName() )%></td>
  84.                   </tr>
  85.                   <tr bgcolor="#e0e0e0"> 
  86.                     <td width="100"><font class="strong">&nbsp;位置:</font> </td>
  87.                     <td width="487"><%=FieldUtil.filterScriptTag( boardroomValueBean.getPosition() ) %></td>
  88.                   </tr>
  89.                   <tr bgcolor="#fafafa"> 
  90.                     <td width="100"><font  class="strong">&nbsp;座位数: </font> </td>
  91.                     <td width="487"><%=boardroomValueBean.getSeatAmount() %></td>
  92.                   </tr>
  93.                   <tr bgcolor="#e0e0e0"> 
  94.                     <td width="100"><font  class="strong">&nbsp;管理人: </font></td>
  95.                     <td width="487"><%=boardroomValueBean.getAdministratorName() %></td>
  96.                   </tr>
  97.                   <tr bgcolor="#fafafa"> 
  98.                     <td><font  class="strong">&nbsp;设备:</font></td>
  99.                     <td><%=FieldUtil.filterScriptTag( boardroomValueBean.getDevices() )%></td>
  100.                   </tr>
  101.                   <tr bgcolor="#e0e0e0"> 
  102.                     <td width="100" bgcolor="#e0e0e0"><font  class="strong">&nbsp;描述:</font> 
  103.                     </td>
  104.                     <td width="487"> <%=FieldUtil.filterScriptTag( boardroomValueBean.getDescription() ) %></td>
  105.                   </tr>
  106.                   <tr align="center" bgcolor="#fafafa"> 
  107.                     <td colspan="2" height="30">    
  108.                       <%
  109.                       String theValue= "";
  110.                        String theScript="";
  111.                       if ( boardroomValueBean.getStatusId() == ConferenceConstant.PAUSED_BOARDROOM )
  112.                       {
  113.                           theValue ="恢复使用";
  114.                           theScript = "submitForm('resume')";
  115.                       }
  116.                       else
  117.                       {
  118.                           theValue="暂停使用";
  119.                           theScript="submitForm('stop')";
  120.                       }
  121.                       %>
  122.                       <% if ( boardroomValueBean.getStatusId() != ConferenceConstant.USING_BOARDROOM )
  123.                       {
  124.                        %>
  125.                       <input type="button" name="modifyButton" onClick=" submitForm('edit') " value="修改" class=text>&nbsp;&nbsp;
  126.                      <% if ( boardroomValueBean.getStatusId() != ConferenceConstant.BOOKED_BOARDROOM )
  127.                         {
  128.                       %>
  129.                       <input type="button" style="width:60px" name="stopToUse" value="<%=theValue %>"  onClick="<%=theScript%>" class=file>&nbsp;&nbsp;
  130.                       <input type="button" name="deleteButton" value="删除" onClick=" submitForm('delete') " class=text>&nbsp;&nbsp; 
  131.                       <%
  132.                         }
  133.                       }
  134.                       %>
  135.                       <input type="button" name="returnButton" value="返回" class="file" onClick=" submitForm('return')">&nbsp;&nbsp;
  136.                       
  137.                        </td>
  138.                   </tr>
  139.                 </table>
  140.               </td>
  141.             </tr>
  142.           </table>
  143.              <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  144.       </TD>
  145.     </TR>
  146.       <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  147.   </TABLE>
  148.   <BR>
  149.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  150.  </form>
  151. </DIV>
  152. </BODY>
  153. </HTML>