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

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="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#000000" style="">
  24.                 <tr align="right" valign="middle">
  25.                     <th colspan="9" nowrap align="center"><font color="#0A0A0A">“<%=UserManager.getPersonnelNameByUserID(iUserID)%>”的签到记录</font></th>
  26.                     <th colspan="1" nowrap align="right"><input type="button" value="关闭" onclick="window.close()"></th>
  27.                 </tr>
  28.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  29.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  30.                     <th width="6%" nowrap><font color="#000000">序号</font></th>
  31.                     <th width="12%" nowrap><font color="#000000">签到类型</font></th>
  32.                     <th width="8%" nowrap><font color="#000000">签到时间</font></th>
  33.                     <th width="8%" nowrap><font color="#000000">签到IP</font></th>
  34.                     <th width="8%" nowrap><font color="#000000">是否正常</font></th>
  35.                     <th width="15%" nowrap><font color="#000000">备注</font></th>
  36.                     <th width="8%" nowrap><font color="#000000">修改用户</font></th>
  37.                     <th width="8%" nowrap><font color="#000000">修改用户IP</font></th>
  38.                     <th width="8%" nowrap><font color="#000000">修改</font></th>
  39.                 </tr>
  40. <%
  41. for(int i=0;i<vt.size();i++)
  42. {
  43.     String strID = ((Vector)vt.get(i)).get(0).toString();
  44.     if(i % 2 == 0)
  45.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  46.     else
  47.     out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  48.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  49.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  50.     out.println("<td align="left" valign="middle" nowrap>"+ SignTypeManager.getTypeNameByID(Integer.parseInt(((Vector)vt.get(i)).get(2).toString())) +"</td>");
  51.     out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(3).toString(),"yyyy年MM月dd日 HH点mm分ss秒") + "</td>");
  52.     out.println("<td align="center" valign="middle" nowrap>"+ ((Vector)vt.get(i)).get(4).toString()  +"</td>");
  53.     if (((Vector)vt.get(i)).get(5).toString().equalsIgnoreCase("true"))
  54.     out.println("<td align="center" valign="middle" nowrap>正常</td>");else
  55.     out.println("<td align="center" valign="middle" nowrap><font color="#FF0000">不正常</font></td>");
  56.     out.println("<td align="center" valign="middle" nowrap>&nbsp;"+ ((Vector)vt.get(i)).get(6).toString() +"</td>");
  57.     out.println("<td align="center" valign="middle" nowrap>" + UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(i)).get(7).toString())) + "</td>");
  58.     out.println("<td align="center" valign="middle" nowrap>&nbsp;" + ((Vector)vt.get(i)).get(8).toString() +"</td>");
  59.     out.println("<td align="center" valign="middle" nowrap><a href="SignLinkEdit.jsp?ID="+strID+"&UserID="+ iUserID +"&StartDate=" + strStartDate + "&EndDate="+ strEndDate +"">修改</a></td>");
  60.     out.println("</tr>");
  61. }
  62. %>
  63.         </table>
  64.         </td>
  65.     </tr>
  66. </table>
  67. </body>
  68. </html>