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

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">
  60.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  61.         <tr>
  62.           <td height="50" valign="top" background="../images/dy-back.gif">
  63.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  64.               <tr valign="middle">
  65.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  66.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">会议新增</font></strong></td>
  67.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  68.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  69.                  <!--<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59">&nbsp;-->
  70.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  71.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  72.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  73.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  74.                 </td>
  75.               </tr>
  76.             </table>
  77.           </td>
  78.         </tr>
  79.       </table>
  80. <%
  81. Request m_request = new Request(request);
  82. int intUserID = m_session.GetInt("UserID");
  83. %>
  84.         <form name="AddBoardroomApply" action="AddBoardroomApplyAction.jsp" method="post" onSubmit="javascript:return checkAddBoardroomApply();">
  85.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  86.           <tr>
  87.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
  88.             <td colspan="3" align="left" valign="middle" nowrap>
  89.             <input name="Title" type="text" maxlength="150" size="50">
  90.             </td>
  91.           </tr>
  92.           <tr>
  93.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">参会人数:</font></td>
  94.             <td colspan="3" align="left" valign="middle" nowrap>
  95.             <input name="PersonnelAmount" type="text" maxlength="5" size="5" value="5">
  96.             <%java.util.Date t_Date = new java.util.Date();%>
  97.             <input name="ApplyTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
  98.             <input name="ApplyUserID" type="hidden" Value="<%=intUserID%>">
  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.             <select name="BoardroomID">
  105. <%
  106. Vector vt = BoardroomManager.getUsefulBoardroom();
  107. if (vt.size() > 0)
  108. {
  109.    for (int i = 0; i < vt.size(); i++)
  110.   {
  111.     if (i==0)
  112.       out.println("<option value=""+ ((Vector)vt.get(i)).get(0).toString() +"" selected>"+ ((Vector)vt.get(i)).get(1).toString() +"</option>");
  113.     else
  114.       out.println("<option value=""+ ((Vector)vt.get(i)).get(0).toString() +"">"+ ((Vector)vt.get(i)).get(1).toString() +"</option>");
  115.   }
  116. }
  117. %>
  118.             </select>
  119.             </td>
  120.           </tr>
  121.           <tr>
  122.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计开始时间:</font></td>
  123.             <td colspan="3" align="left" valign="middle" nowrap>
  124.             <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")%>">
  125.             <select name="StartTimeHour">
  126.                     <option>00</option>
  127.                     <option>01</option>
  128.                     <option>02</option>
  129.                     <option>03</option>
  130.                     <option>04</option>
  131.                     <option>05</option>
  132.                     <option>06</option>
  133.                     <option>07</option>
  134.                     <option selected>08</option>
  135.                     <option>09</option>
  136.                     <option>10</option>
  137.                     <option>11</option>
  138.                     <option>12</option>
  139.                     <option>13</option>
  140.                     <option>14</option>
  141.                     <option>15</option>
  142.                     <option>16</option>
  143.                     <option>17</option>
  144.                     <option>18</option>
  145.                     <option>19</option>
  146.                     <option>20</option>
  147.                     <option>21</option>
  148.                     <option>22</option>
  149.                     <option>23</option>
  150.                   </select>点
  151.                   <select name="StartTimeMinute">
  152.                     <option selected>00</option>
  153.                     <option>05</option>
  154.                     <option>10</option>
  155.                     <option>15</option>
  156.                     <option>20</option>
  157.                     <option>25</option>
  158.                     <option>30</option>
  159.                     <option>35</option>
  160.                     <option>40</option>
  161.                     <option>45</option>
  162.                     <option>50</option>
  163.                     <option>55</option>
  164.                   </select>分
  165.           </td>
  166.           </tr>
  167.           <tr>
  168.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计结束时间:</font></td>
  169.             <td colspan="3" align="left" valign="middle" nowrap>
  170.             <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")%>">
  171.             <select name="EndTimeHour">
  172.                     <option>00</option>
  173.                     <option>01</option>
  174.                     <option>02</option>
  175.                     <option>03</option>
  176.                     <option>04</option>
  177.                     <option>05</option>
  178.                     <option>06</option>
  179.                     <option>07</option>
  180.                     <option selected>08</option>
  181.                     <option>09</option>
  182.                     <option>10</option>
  183.                     <option>11</option>
  184.                     <option>12</option>
  185.                     <option>13</option>
  186.                     <option>14</option>
  187.                     <option>15</option>
  188.                     <option>16</option>
  189.                     <option>17</option>
  190.                     <option>18</option>
  191.                     <option>19</option>
  192.                     <option>20</option>
  193.                     <option>21</option>
  194.                     <option>22</option>
  195.                     <option>23</option>
  196.                   </select>点
  197.                   <select name="EndTimeMinute">
  198.                     <option>00</option>
  199.                     <option>05</option>
  200.                     <option>10</option>
  201.                     <option>15</option>
  202.                     <option>20</option>
  203.                     <option>25</option>
  204.                     <option selected>30</option>
  205.                     <option>35</option>
  206.                     <option>40</option>
  207.                     <option>45</option>
  208.                     <option>50</option>
  209.                     <option>55</option>
  210.                   </select>分
  211.           </td>
  212.           </tr>
  213.           <tr>
  214.             <td align="right" valign="middle">&nbsp;</td>
  215.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  216.           </tr>
  217.           <tr>
  218.             <td align="right" valign="middle">&nbsp;</td>
  219.             <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
  220.               &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  221.               <input type="button" value="返回" onclick="window.location='BoardroomApplyManage.jsp';">
  222.             </td>
  223.           </tr>
  224.         </table>
  225.       </form>
  226.     </td>
  227.   </tr>
  228. </table>
  229. </body>
  230. </html>