ShowBoardroom.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:4k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int intBoardroomID = m_request.GetInt("ID");
  7. if(intBoardroomID < 1)
  8. {
  9. %>
  10. <script language="JavaScript" type="text/JavaScript">
  11. alert("请选择正确的会议室,修改失败!");
  12. history.back();
  13. </script>
  14. <%
  15. }
  16. else
  17. {
  18. Vector vt = BoardroomManager.getRecordByID(intBoardroomID);
  19. if(vt.size()==1)
  20. {
  21. %>
  22. <html>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  25. <title>会议室管理-- GForce OA 2.0</title>
  26. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  27. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  28. <script language="JavaScript" src="/js/changestyle.js"></script>
  29. <script language="JavaScript" type="text/javascript">
  30. </script>
  31. <style type="text/css">
  32. <!--
  33. .imgtd {
  34.     border: 1px solid #0A0A0A;
  35. }
  36. -->
  37. </style>
  38. </head>
  39. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  40. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  41.      <tr>
  42.         <td align="center" valign="top"><p>&nbsp;</p>
  43.         <form name="EditBoardroom" action="EditBoardroomAction.jsp" method="post">
  44.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  45.           <tr>
  46.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议室编号:</font></td>
  47.             <td colspan="3" align="left" valign="middle" nowrap>
  48.             <%=((Vector)vt.get(0)).get(2).toString()%>
  49.             </td>
  50.           </tr>
  51.           <tr>
  52.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议室名称:</font></td>
  53.             <td colspan="3" align="left" valign="middle" nowrap>
  54.             <%=((Vector)vt.get(0)).get(1).toString()%>
  55.             </td>
  56.           </tr>
  57.           <tr>
  58.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议室地址:</font></td>
  59.             <td colspan="3" align="left" valign="middle" nowrap>
  60.             <%=((Vector)vt.get(0)).get(3).toString()%>
  61.             </td>
  62.           </tr>
  63.           <tr>
  64.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">容纳人数:</font></td>
  65.             <td colspan="3" align="left" valign="middle" nowrap>
  66.             <%=((Vector)vt.get(0)).get(4).toString()%>
  67.             </td>
  68.           </tr>
  69.           <tr>
  70.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">是否可用:</font></td>
  71.             <td colspan="3" align="left" valign="middle" nowrap >
  72. <%
  73. if (((Vector)vt.get(0)).get(5).toString().equalsIgnoreCase("true"))
  74.           out.println("可用");else
  75.           out.println("不可用");
  76. %>
  77.             </td>
  78.           </tr>
  79.           <tr>
  80.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">状    态:</font></td>
  81.             <td colspan="3" align="left" valign="middle" nowrap>
  82.             <%=((Vector)vt.get(0)).get(6).toString()%>
  83.             </td>
  84.           </tr>
  85.           <tr>
  86.             <td align="right" valign="middle">&nbsp;</td>
  87.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  88.           </tr>
  89.           <tr>
  90.             <td align="right" valign="middle">&nbsp;</td>
  91.             <td colspan="3" align="left" valign="middle" nowrap>
  92.               <input type="button" value="关闭" onclick="window.close();">
  93.             </td>
  94.           </tr>
  95.         </table>
  96.         </form>
  97.         </td>
  98.     </tr>
  99. </table>
  100. </body>
  101. </html>
  102. <%
  103. }
  104. else
  105. {
  106. %>
  107. <script language="JavaScript" type="text/JavaScript">
  108. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  109. history.back();
  110. </script>
  111. <%
  112. }
  113. }
  114. %>