view.jsp
上传用户:sxwtmm
上传日期:2022-08-11
资源大小:2183k
文件大小:2k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
  2. <%@ include file="../hear/hear.jsp"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  7. <title>签到簿</title>
  8. <link href="../css/work.css" rel="stylesheet" type="text/css" />
  9. </head>
  10. <body>
  11. <table width="780" height="480" cellpadding="0" cellspacing="0">
  12.   <tr>
  13.     <td height="50" colspan="7" align="center" class="title">签到记录</td>
  14.   </tr>
  15.   <tr class="column">
  16.     <td height="27" align="center" >签到时间</td>
  17.     <td align="center" >签到人</td>
  18.     <td align="center" >是否迟到</td>
  19.     <td align="center" >是否早退</td>
  20.     <td align="center" >是否请假</td>
  21.     <td align="center" >是否旷工</td>
  22.     <td align="center" >上班/下班</td>
  23.   </tr>
  24. <%
  25. Collection coll=(Collection)request.getAttribute("msg");
  26. if(coll==null){
  27. %>
  28.   <tr>
  29.     <td height="40" colspan="7" align="center" class="advise" >签到簿为空</td>
  30.   </tr>
  31. <% 
  32. }else{
  33. Iterator it=coll.iterator();
  34. while(it.hasNext()){
  35. Sign sign=(Sign)it.next();
  36. %>
  37.   <tr>
  38.     <td height="27" align="center" ><%=sign.getTime().substring(0,19)%></td>
  39.     <td height="27" align="center" ><%=db.IdtoName(sign.getEmid())%></td>
  40.     <td height="27" align="center" >
  41. <%
  42. if(sign.getLate()==1){
  43. out.print("是");
  44. }else{
  45. out.print("否");
  46. }
  47. %> </td>
  48.     <td height="27" align="center" ><%
  49. if(sign.getQuit()==1){
  50. out.print("是");
  51. }else{
  52. out.print("否");
  53. }
  54. %></td>
  55.     <td height="27" align="center" ><%
  56. if(sign.getLeave()==1){
  57. out.print("是");
  58. }else{
  59. out.print("否");
  60. }
  61. %></td>
  62.     <td height="27" align="center" ><%
  63. if(sign.getWork()==1){
  64. out.print("是");
  65. }else{
  66. out.print("否");
  67. }
  68. %></td>
  69.     <td height="27" align="center" ><%
  70. if(sign.getSignstateid()==1){
  71. out.print("上班");
  72. }else{
  73. out.print("下班");
  74. }
  75. %></td>
  76.   </tr>
  77. <%
  78. }
  79. }
  80. %>
  81.   <tr align="right">
  82. <td height="27" colspan="7"><span class="return" onclick="javascript:history.go(-1);"><img src="../image/more.gif" width="30" height="9" />返回</span>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  83.   </tr>
  84.   <tr>
  85.     <td colspan="7" >&nbsp;</td>
  86.   </tr>
  87. </table>
  88. </body>
  89. </html>