AddBoardroomApply.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:9k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>会议室管理-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" type="text/javascript">
- function checkAddBoardroomApply()
- {
- if(document.AddBoardroomApply.Title.value=="")
- {
- alert("请输入会议主题!");
- document.AddBoardroomApply.Title.focus();
- return false;
- }
- if (document.AddBoardroomApply.PersonnelAmount.value != "")
- if(isNaN(parseInt(document.AddBoardroomApply.PersonnelAmount.value,10)))
- {
- alert("请输入正确的参会人数!");
- document.AddBoardroomApply.PersonnelAmount.select();
- document.AddBoardroomApply.PersonnelAmount.focus();
- return false;
- }
- if(document.AddBoardroomApply.PlanStartTime.value.length>0)
- if(!isDate(document.AddBoardroomApply.PlanStartTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.AddBoardroomApply.PlanStartTime.focus();
- return false;
- }
- if(document.AddBoardroomApply.PlanEndTime.value.length > 0)
- if(!isDate(document.AddBoardroomApply.PlanEndTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.AddBoardroomApply.PlanEndTime.focus();
- return false;
- }
- document.AddBoardroomApply.PlanStartTime.value += " " + document.AddBoardroomApply.StartTimeHour.options[document.AddBoardroomApply.StartTimeHour.selectedIndex].text + ":" +
- document.AddBoardroomApply.StartTimeMinute.options[document.AddBoardroomApply.StartTimeMinute.selectedIndex].text + ":00";
- document.AddBoardroomApply.PlanEndTime.value += " " + document.AddBoardroomApply.EndTimeHour.options[document.AddBoardroomApply.EndTimeHour.selectedIndex].text + ":" +
- document.AddBoardroomApply.EndTimeMinute.options[document.AddBoardroomApply.EndTimeMinute.selectedIndex].text + ":00";
- }
- </script>
- <style type="text/css">
- <!--
- .imgtd {
- border: 1px solid #0A0A0A;
- }
- -->
- </style>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <%
- Request m_request = new Request(request);
- int intUserID = m_session.GetInt("UserID");
- %>
- <form name="AddBoardroomApply" action="AddBoardroomApplyAction.jsp" method="post" onSubmit="javascript:return checkAddBoardroomApply();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="Title" type="text" maxlength="150" size="50">
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">参会人数:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="PersonnelAmount" type="text" maxlength="5" size="5" value="5">
- <%java.util.Date t_Date = new java.util.Date();%>
- <input name="ApplyTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
- <input name="ApplyUserID" type="hidden" Value="<%=intUserID%>">
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">会 议 室:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <select name="BoardroomID">
- <%
- Vector vt = BoardroomManager.getUsefulBoardroom();
- if (vt.size() > 0)
- {
- for (int i = 0; i < vt.size(); i++)
- {
- if (i==0)
- out.println("<option value=""+ ((Vector)vt.get(i)).get(0).toString() +"" selected>"+ ((Vector)vt.get(i)).get(1).toString() +"</option>");
- else
- out.println("<option value=""+ ((Vector)vt.get(i)).get(0).toString() +"">"+ ((Vector)vt.get(i)).get(1).toString() +"</option>");
- }
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计开始时间:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <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")%>">
- <select name="StartTimeHour">
- <option>00</option>
- <option>01</option>
- <option>02</option>
- <option>03</option>
- <option>04</option>
- <option>05</option>
- <option>06</option>
- <option>07</option>
- <option selected>08</option>
- <option>09</option>
- <option>10</option>
- <option>11</option>
- <option>12</option>
- <option>13</option>
- <option>14</option>
- <option>15</option>
- <option>16</option>
- <option>17</option>
- <option>18</option>
- <option>19</option>
- <option>20</option>
- <option>21</option>
- <option>22</option>
- <option>23</option>
- </select>点
- <select name="StartTimeMinute">
- <option selected>00</option>
- <option>05</option>
- <option>10</option>
- <option>15</option>
- <option>20</option>
- <option>25</option>
- <option>30</option>
- <option>35</option>
- <option>40</option>
- <option>45</option>
- <option>50</option>
- <option>55</option>
- </select>分
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计结束时间:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <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")%>">
- <select name="EndTimeHour">
- <option>00</option>
- <option>01</option>
- <option>02</option>
- <option>03</option>
- <option>04</option>
- <option>05</option>
- <option>06</option>
- <option>07</option>
- <option selected>08</option>
- <option>09</option>
- <option>10</option>
- <option>11</option>
- <option>12</option>
- <option>13</option>
- <option>14</option>
- <option>15</option>
- <option>16</option>
- <option>17</option>
- <option>18</option>
- <option>19</option>
- <option>20</option>
- <option>21</option>
- <option>22</option>
- <option>23</option>
- </select>点
- <select name="EndTimeMinute">
- <option>00</option>
- <option>05</option>
- <option>10</option>
- <option>15</option>
- <option>20</option>
- <option>25</option>
- <option selected>30</option>
- <option>35</option>
- <option>40</option>
- <option>45</option>
- <option>50</option>
- <option>55</option>
- </select>分
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
- <input type="reset" value="重填">
- <input type="button" value="返回" onclick="window.location='BoardroomApplyManage.jsp';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>