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

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" language="java"%>
  2. <%@ page import="oa.data.*,java.util.*"%>
  3. <jsp:useBean id="str" scope="page" class="oa.sys.Str"/>
  4. <%
  5.   request.setCharacterEncoding("GBK"); 
  6. %>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  10. <title>登录</title>
  11. <link href="../css/style.css" rel="stylesheet" type="text/css" />
  12. <script language="javascript" src="../js/oa.js">
  13. </script>
  14. <style type="text/css">
  15. <!--
  16. body {
  17. margin-right: -40px;
  18. margin-bottom: -20px;
  19. }
  20. .style3 {color: #C60001; font-weight: bold; }
  21. .style4 {font-weight: bold}
  22. .style5 {color: #C60001}
  23. -->
  24. </style></head>
  25. <body>
  26. <table width="102%" height="99%" border="0"  cellpadding="0" cellspacing="0" background="../image/back.gif"class="top2">
  27.   <form name="form1" id="form1" method="post" action="em" onSubmit="return login()">
  28.     <tr>
  29.       <td width="451" height="246" rowspan="6">&nbsp;</td>
  30.       <td height="138" colspan="3" align="center" > </td>
  31.       <td width="70" rowspan="6" >&nbsp;</td>
  32.     </tr>
  33.     <tr>
  34.       <td height="17" colspan="3" align="center" ><span class="style3">员工登录</span></td>
  35.     </tr>
  36.     <tr>
  37.       <td width="20" align="center" >&nbsp;</td>
  38.       <td width="65" height="21" align="center" ><div align="center" class="style3">员工号:</div></td>
  39.       <td width="178" height="21" align="center" ><div align="left">
  40.         <input type="text" name="id" />
  41.       </div></td>
  42.     </tr>
  43.     <tr>
  44.       <td align="center" >&nbsp;</td>
  45.       <td height="21" align="center" ><div align="center" class="style3">密&nbsp;&nbsp;码:</div></td>
  46.       <td height="21" align="center" class="style4" ><div align="left">
  47.         <input type="password" name="password" />
  48.       </div></td>
  49.     </tr>
  50.     <tr>
  51.       <td height="23" colspan="3" align="center" class="style4" >
  52.   <input type="submit" name="tijiao" value="提交">
  53. &nbsp;
  54.       <input type="reset" name="Submit2" value="重置" /></td>
  55.     </tr>
  56.     <tr>
  57.       <td height="21" colspan="3" class="style4" >
  58.     <div align="center">
  59.           <%
  60.  // response.getCharacterEncoding();
  61.  
  62.          String msg=str.unicodeStr((String)request.getAttribute("error"));
  63. //msg=str.Chinese(msg);
  64. msg=str.chStr(msg);
  65.     if(msg!=null){
  66.       %>
  67.         <span class="style5"><%=msg%></span></div></td>
  68.         <%}
  69. request.removeAttribute("error");%>
  70.     </tr>
  71.   </form>
  72. </table>
  73. </body>
  74. </html>