index.jsp
上传用户:kimgenplus
上传日期:2016-06-05
资源大小:20877k
文件大小:6k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page language="java" contentType="text/html; charset=GB18030"
  2.     pageEncoding="GB18030"%>
  3. <%@include file="/common/common.jsp" %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=GB18030">
  7. <link href="style/oa.css" rel="stylesheet" type="text/css">
  8. <script language="javascript" src="script/public.js"></script>
  9. <script type="text/javascript">
  10. function initTable(){
  11. <c:forEach items="${applies}" var="apply">
  12. <c:forEach items="${my:splitApply(apply)}" var="app">
  13. if(document.getElementById("${app.id}")){
  14. <c:if test="${app.status eq 'A'}">
  15. document.getElementById("${app.id}").style.background = "#CC6633";
  16. </c:if>
  17. <c:if test="${app.status eq 'O'}">
  18. document.getElementById("${app.id}").style.background = "#FF0000";
  19. </c:if>
  20. document.getElementById("${app.id}").objectId = ${app.oid};
  21. }
  22. </c:forEach>
  23. </c:forEach>
  24. }
  25. function meetingRoomInput(url,field){
  26. if(field.objectId){
  27. url = url + "&applyId=" +field.objectId;
  28. }
  29. openWin(url,'newwindow',600,400,1);
  30. }
  31. </script>
  32. <title>会议室申请管理</title>
  33. </head>
  34. <BODY onload="initTable()" bgColor=#dee7ff leftMargin=0 background="" topMargin=0 marginheight="0" marginwidth="0">
  35. <center>
  36.       <TABLE width="778" border=0 cellPadding=0 cellSpacing=0 borderColor=#ffffff bgColor=#dee7ff style="FONT-SIZE: 10pt">
  37.         <TBODY>
  38.           <TR height=35>
  39.             <TD align=middle width=20 background=images/title_left.gif 
  40.           bgColor=#dee7ff></TD>
  41.             <TD align=middle width=120 background=images/title_left.gif 
  42.           bgColor=#dee7ff><FONT color=#f7f7f7>会议室申请管理<font color="#FFFFFF">&nbsp;</font></FONT> </TD>
  43.             <TD align=middle width=11 background=images/title_middle.gif 
  44.           bgColor=#dee7ff><FONT color=#f7f7f7>&nbsp;</FONT> </TD>
  45.             <TD align=middle background=images/title_right.gif 
  46.           bgColor=#dee7ff><FONT color=#f7f7f7>&nbsp;</FONT> </TD>
  47.           </TR>
  48.         </TBODY>
  49.       </TABLE>
  50.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  51.         <TBODY>
  52.           <TR>
  53.             <TD width="82%" height=14 align=right vAlign=center noWrap>
  54.             </TD>
  55.             <TD width="18%" align=right vAlign=center noWrap> </TD>
  56.           </TR>
  57.           <TR>
  58.             <TD height=14 align=right vAlign=center noWrap>
  59.              <!-- 在这里插入查询表单 -->
  60.             </TD>
  61.             <TD height=14 align="left" vAlign=center noWrap>
  62.             <% 
  63.             /**
  64.             * 在这里定义“添加”,“查询”等按钮
  65.             * <input type="image" name="find" value="find" src="images/cz.gif">
  66.             * &nbsp;&nbsp;&nbsp;&nbsp; 
  67.             * <a href="#" onClick="openWin('document.do?method=addInput','470')">
  68.             * <img src="images/addpic.gif" border=0 align=absMiddle style="CURSOR: hand"></a>
  69.             */
  70.             %>
  71. <a href="meetingRoom.do?nav=pre&year=${year }&month=${month }">上个月</a> <a href="meetingRoom.do?nav=next&year=${year }&month=${month }">下个月</a>
  72.             </TD>
  73.           </TR>
  74.           <TR>
  75.             <TD height=28 colspan="2" align=center vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  76.             <!-- 可以在这里插入分页导航条 -->
  77.               您正在查看${year }年${month }月的会议申请表
  78.             </TD>
  79.           </TR>
  80.         </TBODY>
  81.       </TABLE>
  82.       <table width="778" border="0" cellPadding="0" cellSpacing="1" bgcolor="#6386d6">
  83.           <!-- 列表标题栏 -->
  84.       <tr bgcolor="#EFF3F7" class="TableBody1">
  85.       
  86.       <td width="5%" height="37" align="center"><b>序号</b></td>
  87.       <td width="2%" height="37" align="center"><b></b></td>
  88.     <c:forEach var="m" begin="1" end="${maxDay}">
  89.       <td width="3%" height="37" align="center"><B>${m }</B></td>
  90.             </c:forEach>
  91.           </tr>
  92.           <!-- 列表数据栏 -->
  93.           <c:if test="${!empty rooms}">
  94.           <c:forEach items="${rooms }" var="room">
  95.           <c:forEach var="d" begin="${beginTime }" end="${endTime }" varStatus="status">
  96.       <tr bgcolor="#EFF3F7" style="height:5px" >
  97.          <c:if test="${status.first}">
  98.       <td align="center" vAlign="center" rowspan="${endTime - beginTime + 1 }" ><span style="color:red;font-weight: bold;">${room.sn}</span></td>
  99.       </c:if>
  100.           <td align="center" vAlign="center"><span>${d}</span></td>
  101.       <c:forEach var="m" begin="1" end="${maxDay}">
  102.        <td align="center" objectId="" onclick="meetingRoomInput('meetingRoom.do?method=applyInput&sn=${room.sn }&beginDate=${year}-${month}-${m}&beginTime=${d }',this)" id="${room.sn }_${year }-${month }-${m }-${d }" style="cursor:hand;<c:if test="${my:holiday(year,month,m)}">background-color:#CDDDF5</c:if>">
  103.        </td>
  104.               </c:forEach>
  105.           </tr>
  106.           </c:forEach>
  107.           </c:forEach>
  108.   </c:if>
  109.         <!-- 在列表数据为空的时候,要显示的提示信息 -->
  110.     <c:if test="${empty rooms}">
  111.     <tr>
  112.      <td colspan="7" align="center" bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  113.      没有找到相应的记录
  114.      </td>
  115.     </tr>
  116.     </c:if>
  117.       </table>
  118.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  119.         <TBODY>
  120.           <TR>
  121.             <TD height=28 align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  122.             <!-- 可以在这里插入分页导航条 -->
  123.      </TD>
  124.           </TR>
  125.         </TBODY>
  126.       </TABLE>
  127. </center>
  128. </body>
  129. </html>