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

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. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>会议室管理-- GForce OA 2.0</title>
  8. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  11. <script language="JavaScript" type="text/javascript">
  12. function checkAddBoardroomApply()
  13. {
  14.     if(document.AddBoardroomApply.Title.value=="")
  15.     {
  16.         alert("请输入会议主题!");
  17.         document.AddBoardroomApply.Title.focus();
  18.         return false;
  19.     }
  20.     if (document.AddBoardroomApply.PersonnelAmount.value != "")
  21.     if(isNaN(parseInt(document.AddBoardroomApply.PersonnelAmount.value,10)))
  22.     {
  23.       alert("请输入正确的参会人数!");
  24.       document.AddBoardroomApply.PersonnelAmount.select();
  25.       document.AddBoardroomApply.PersonnelAmount.focus();
  26.       return false;
  27.     }
  28.     if(document.AddBoardroomApply.PlanStartTime.value.length>0)
  29.     if(!isDate(document.AddBoardroomApply.PlanStartTime.value))
  30.     {
  31.       alert("日期格式错误,请按照“2002-02-18”重新输入!");
  32.       document.AddBoardroomApply.PlanStartTime.focus();
  33.       return false;
  34.     }
  35.     if(document.AddBoardroomApply.PlanEndTime.value.length > 0)
  36.     if(!isDate(document.AddBoardroomApply.PlanEndTime.value))
  37.     {
  38.       alert("日期格式错误,请按照“2002-02-18”重新输入!");
  39.       document.AddBoardroomApply.PlanEndTime.focus();
  40.       return false;
  41.     }
  42.     document.AddBoardroomApply.PlanStartTime.value += " " + document.AddBoardroomApply.StartTimeHour.options[document.AddBoardroomApply.StartTimeHour.selectedIndex].text + ":" +
  43.     document.AddBoardroomApply.StartTimeMinute.options[document.AddBoardroomApply.StartTimeMinute.selectedIndex].text + ":00";
  44.     document.AddBoardroomApply.PlanEndTime.value += " " + document.AddBoardroomApply.EndTimeHour.options[document.AddBoardroomApply.EndTimeHour.selectedIndex].text  + ":" +
  45.     document.AddBoardroomApply.EndTimeMinute.options[document.AddBoardroomApply.EndTimeMinute.selectedIndex].text  + ":00";
  46. }
  47. </script>
  48. <style type="text/css">
  49. <!--
  50. .imgtd {
  51.     border: 1px solid #0A0A0A;
  52. }
  53. -->
  54. </style>
  55. </head>
  56. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  57. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  58.     <tr>
  59.         <td align="center" valign="top"><p>&nbsp;</p>
  60. <%
  61. Request m_request = new Request(request);
  62. int intUserID = m_session.GetInt("UserID");
  63. %>
  64.         <form name="AddBoardroomApply" action="AddBoardroomApplyAction.jsp" method="post" onSubmit="javascript:return checkAddBoardroomApply();">
  65.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  66.           <tr>
  67.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
  68.             <td colspan="3" align="left" valign="middle" nowrap>
  69.             <input name="Title" type="text" maxlength="150" size="50">
  70.             </td>
  71.           </tr>
  72.           <tr>
  73.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">参会人数:</font></td>
  74.             <td colspan="3" align="left" valign="middle" nowrap>
  75.             <input name="PersonnelAmount" type="text" maxlength="5" size="5" value="5">
  76.             <%java.util.Date t_Date = new java.util.Date();%>
  77.             <input name="ApplyTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
  78.             <input name="ApplyUserID" type="hidden" Value="<%=intUserID%>">
  79.             </td>
  80.           </tr>
  81.           <tr>
  82.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会 议 室:</font></td>
  83.             <td colspan="3" align="left" valign="middle" nowrap>
  84.             <select name="BoardroomID">
  85. <%
  86. Vector vt = BoardroomManager.getUsefulBoardroom();
  87. if (vt.size() > 0)
  88. {
  89.    for (int i = 0; i < vt.size(); i++)
  90.   {
  91.     if (i==0)
  92.       out.println("<option value=""+ ((Vector)vt.get(i)).get(0).toString() +"" selected>"+ ((Vector)vt.get(i)).get(1).toString() +"</option>");
  93.     else
  94.       out.println("<option value=""+ ((Vector)vt.get(i)).get(0).toString() +"">"+ ((Vector)vt.get(i)).get(1).toString() +"</option>");
  95.   }
  96. }
  97. %>
  98.             </select>
  99.             </td>
  100.           </tr>
  101.           <tr>
  102.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计开始时间:</font></td>
  103.             <td colspan="3" align="left" valign="middle" nowrap>
  104.             <input name="PlanStartTime" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="10" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd")%>">
  105.             <select name="StartTimeHour">
  106.                     <option>00</option>
  107.                     <option>01</option>
  108.                     <option>02</option>
  109.                     <option>03</option>
  110.                     <option>04</option>
  111.                     <option>05</option>
  112.                     <option>06</option>
  113.                     <option>07</option>
  114.                     <option selected>08</option>
  115.                     <option>09</option>
  116.                     <option>10</option>
  117.                     <option>11</option>
  118.                     <option>12</option>
  119.                     <option>13</option>
  120.                     <option>14</option>
  121.                     <option>15</option>
  122.                     <option>16</option>
  123.                     <option>17</option>
  124.                     <option>18</option>
  125.                     <option>19</option>
  126.                     <option>20</option>
  127.                     <option>21</option>
  128.                     <option>22</option>
  129.                     <option>23</option>
  130.                   </select>点
  131.                   <select name="StartTimeMinute">
  132.                     <option selected>00</option>
  133.                     <option>05</option>
  134.                     <option>10</option>
  135.                     <option>15</option>
  136.                     <option>20</option>
  137.                     <option>25</option>
  138.                     <option>30</option>
  139.                     <option>35</option>
  140.                     <option>40</option>
  141.                     <option>45</option>
  142.                     <option>50</option>
  143.                     <option>55</option>
  144.                   </select>分
  145.           </td>
  146.           </tr>
  147.           <tr>
  148.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计结束时间:</font></td>
  149.             <td colspan="3" align="left" valign="middle" nowrap>
  150.             <input name="PlanEndTime" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="10" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd")%>">
  151.             <select name="EndTimeHour">
  152.                     <option>00</option>
  153.                     <option>01</option>
  154.                     <option>02</option>
  155.                     <option>03</option>
  156.                     <option>04</option>
  157.                     <option>05</option>
  158.                     <option>06</option>
  159.                     <option>07</option>
  160.                     <option selected>08</option>
  161.                     <option>09</option>
  162.                     <option>10</option>
  163.                     <option>11</option>
  164.                     <option>12</option>
  165.                     <option>13</option>
  166.                     <option>14</option>
  167.                     <option>15</option>
  168.                     <option>16</option>
  169.                     <option>17</option>
  170.                     <option>18</option>
  171.                     <option>19</option>
  172.                     <option>20</option>
  173.                     <option>21</option>
  174.                     <option>22</option>
  175.                     <option>23</option>
  176.                   </select>点
  177.                   <select name="EndTimeMinute">
  178.                     <option>00</option>
  179.                     <option>05</option>
  180.                     <option>10</option>
  181.                     <option>15</option>
  182.                     <option>20</option>
  183.                     <option>25</option>
  184.                     <option selected>30</option>
  185.                     <option>35</option>
  186.                     <option>40</option>
  187.                     <option>45</option>
  188.                     <option>50</option>
  189.                     <option>55</option>
  190.                   </select>分
  191.           </td>
  192.           </tr>
  193.           <tr>
  194.             <td align="right" valign="middle">&nbsp;</td>
  195.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  196.           </tr>
  197.           <tr>
  198.             <td align="right" valign="middle">&nbsp;</td>
  199.             <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
  200.               &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  201.               <input type="button" value="返回" onclick="window.location='BoardroomApplyManage.jsp';">
  202.             </td>
  203.           </tr>
  204.         </table>
  205.       </form>
  206.     </td>
  207.   </tr>
  208. </table>
  209. </body>
  210. </html>