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

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. <%
  13. String up="",down="",ups="",downs="";
  14. String msg=(String)request.getAttribute("advmsg");
  15. Collection coll=(Collection)request.getAttribute("msg");
  16. if(coll!=null){
  17. Iterator it=coll.iterator();
  18. while(it.hasNext()){
  19. Signstate ss=(Signstate)it.next();
  20. if(ss.getId()==1){
  21. up=ss.getTime().substring(11,19);
  22. }
  23. if(ss.getId()==2){
  24. down=ss.getTime().substring(11,19);
  25. }
  26. }
  27. }
  28. coll.clear();
  29. coll=(Collection)request.getAttribute("singmsg");
  30. if(coll!=null){
  31. Iterator it=coll.iterator();
  32. while(it.hasNext()){
  33. Sign sign=(Sign)it.next();
  34. if(sign.getSignstateid()==1){
  35. ups=sign.getTime().substring(11,19);
  36. }
  37. if(sign.getSignstateid()==2){
  38. downs=sign.getTime().substring(11,19);
  39. }
  40. }
  41. }
  42. request.removeAttribute("advmsg");
  43. request.removeAttribute("msg");
  44. request.removeAttribute("singmsg");
  45. %>
  46.  <tr>
  47.     <td height="50" colspan="4" align="center" class="title">签到</td>
  48.   </tr>
  49.   <tr>
  50.     <td width="180" rowspan="8" >&nbsp;</td>
  51.     <td height="50" colspan="2" align="center" class="advise" ><%=msg%></td>
  52.     <td width="180" rowspan="8" >&nbsp;</td>
  53.   </tr>
  54. <form name="form1" id="form1" method="post" action="sign">
  55.   <tr>
  56.     <td width="150" height="50" align="center" >上班:</td>
  57.     <td width="268" align="left" ><input type="text" name="up" readonly value="<%=up%>" /></td>
  58.   </tr>
  59.   <tr>
  60.     <td height="50" colspan="2" align="center" >
  61. <%
  62. if(ups!=""){
  63. out.print("签到时间:"+ups);
  64. }else{
  65. %>
  66.       <input type="submit" name="Submit" value="上班签到"/>
  67. <%
  68. }
  69. %>
  70.   </td>
  71.   </tr>
  72. </form>  
  73. <form name="form2" id="form2" method="post" action="sign">
  74.   <tr>
  75.     <td height="50" align="center" >下班:</td>
  76.     <td align="left" ><input type="text" name="down" readonly value="<%=down%>" /></td>
  77.   </tr>
  78.   <tr>
  79.     <td height="50" colspan="2" align="center" >
  80. <%
  81. if(downs!=""){
  82. out.print("签到时间:"+downs);
  83. }else{
  84. %>
  85.       <input type="submit" name="Submit2" value="下班签到" />
  86. <%
  87. }
  88. %>
  89.   </td>
  90.   </tr>
  91. </form>
  92.  <tr>
  93. <td height="27" colspan="2" align="right"><span class="return" onclick="javascript:history.go(-1);"><img src="../image/more.gif" width="30" height="9" />返回</span>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  94.  </tr>
  95.   <tr>
  96.     <td colspan="2" >&nbsp;</td>
  97.   </tr>
  98. </table>
  99. </body>
  100. </html>