LoginTwo.jsp
2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<%@ page import="java.util.*" %>
<%@ page import="weaver.hrm.*" %>
<%@ page import="weaver.systeminfo.*" %>
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/web/inc/WebServer.jsp" %>
<jsp:useBean id="CustomerInfoComInfo" class="weaver.crm.Maint.CustomerInfoComInfo" scope="page" />
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link href="/web/css/style_wev8.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
User user = new User() ;
//相当于init.jsp--begin
response.setHeader("cache-control", "no-cache");
response.setHeader("pragma", "no-cache");
response.setHeader("expires", "Mon 1 Jan 1990 00:00:00 GMT");
user = HrmUserVarify.checkUser (request , response) ;
//相当于init.jsp--end
if((user != null)&&user.getLogintype().equals("2")) {
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="90" background="/web/images/bg_login_wev8.gif">
<tr height="35">
<td colspan="2" valign="top" ><img src="/web/images/icon_login-in_wev8.gif" ></td>
</tr>
<tr>
<td width="18"></td>
<td align="center" valign="top" >
<table width="80%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="left">
<%
String username = "" ;
username=Util.toScreen(user.getUsername(),7);
out.print(username);
%>,<%=SystemEnv.getHtmlLabelName(27306, user.getLanguage())%>!
</td>
</tr>
<tr>
<td align="left">
<a href="/web/login/Logout.jsp" target="_top"><img src="/web/images/button_login-out_wev8.gif" border="0">
</td>
</tr>
</a>
</table>
</td>
</tr>
</table>
<%}else{%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="90" background="/web/images/bg_login_wev8.gif">
<tr height="35">
<td colspan="2" valign="top" ><img src="/web/images/icon_login_wev8.gif" ></td>
</tr>
<tr>
<td width="18"></td>
<td align="center" valign="top" >
<table width="80%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td>
<a href="<%=webServerForLogin%>" target="_top"><img src="/web/images/button_login_wev8.gif" border="0">
</a> <a href="<%=webServerRegist%>" target="_top"><img src="/web/images/button_reg_wev8.gif" border="0"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%}%>
</body>
</html>