SignLink.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="/CheckLogin1.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int iUserID = m_request.GetInt("UserID");
  7. String strStartDate =  m_request.GetString("StartDate");
  8. String strEndDate =  m_request.GetString("EndDate");
  9. Vector vt = SignManager.getSignByUserIDDate(iUserID,strStartDate,strEndDate);
  10. %>
  11. <html>
  12. <head>
  13. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  14. <title>签到管理-- GForce OA 2.0</title>
  15. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  16. <script language="JavaScript" src="/js/changestyle.js"></script>
  17. <script language="JavaScript" type="text/javascript"></script>
  18. </head>
  19. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  20. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  21.     <tr>
  22.         <td align="center" valign="top"><p>&nbsp;</p>
  23.           <table width="90%" border="0">
  24.              <tr align="right" valign="middle">
  25.                     <th colspan="8" nowrap align="left"><font color="#0A0A0A">“<%=UserManager.getPersonnelNameByUserID(iUserID)%>”的签到记录</font></th>
  26.                     <th colspan="1" nowrap align="right"><input type="button" value="关 闭" onclick="window.close()" style="background-color: #FFFFFF; border: 1 solid #000000"></th>
  27.              </tr>
  28.           </table>
  29.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#000000" style="">
  30.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  31.                     <th width="2%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  32.                     <th width="4%" nowrap><font color="#000000">序号</font></th>
  33.                     <th width="12%" nowrap><font color="#000000">签到类型</font></th>
  34.                     <th width="8%" nowrap><font color="#000000">签到时间</font></th>
  35.                     <th width="8%" nowrap><font color="#000000">签到IP</font></th>
  36.                     <th width="8%" nowrap><font color="#000000">是否正常</font></th>
  37.                     <th width="15%" nowrap><font color="#000000">备注</font></th>
  38.                     <th width="8%" nowrap><font color="#000000">修改用户</font></th>
  39.                     <th width="8%" nowrap><font color="#000000">修改用户IP</font></th>
  40.                 </tr>
  41. <%
  42. for(int i=0;i<vt.size();i++)
  43. {
  44.     String strID = ((Vector)vt.get(i)).get(0).toString();
  45.     if(i % 2 == 0)
  46.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  47.     else
  48.     out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  49.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  50.     out.println("<td align="center" valign="middle">" + (i+1) + "</td>");
  51.     out.println("<td align="center" valign="middle" nowrap>"+ SignTypeManager.getTypeNameByID(Integer.parseInt(((Vector)vt.get(i)).get(2).toString())) +"</td>");
  52.     out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(3).toString(),"yyyy年MM月dd日 HH点mm分ss秒") + "</td>");
  53.     out.println("<td align="center" valign="middle" nowrap>"+ ((Vector)vt.get(i)).get(4).toString()  +"</td>");
  54.     if (((Vector)vt.get(i)).get(5).toString().equalsIgnoreCase("true"))
  55.     out.println("<td align="center" valign="middle" nowrap>正常</td>");else
  56.     out.println("<td align="center" valign="middle" nowrap><font color="#FF0000">不正常</font></td>");
  57.     out.println("<td align="left" valign="middle" nowrap>&nbsp;"+ ((Vector)vt.get(i)).get(6).toString() +"</td>");
  58.     out.println("<td align="center" valign="middle" nowrap>" + UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(i)).get(7).toString())) + "</td>");
  59.     out.println("<td align="center" valign="middle" nowrap>&nbsp;" + ((Vector)vt.get(i)).get(8).toString() +"</td>");
  60.     out.println("</tr>");
  61. }
  62. %>
  63.         </table>
  64.         </td>
  65.     </tr>
  66. </table>
  67. </body>
  68. </html>