Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
2
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
3
<%@ taglib prefix="s" uri="/struts-tags" %>
4
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
5
 
6
 
7
<%@page import="org.sigmater.srm.SrmAuthenticationException"%>
8
<%@page import="java.util.Enumeration"%><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
9
	<head>
10
		<title>Sigmater - Login</title>
11
		<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> 
12
		<meta content="it" http-equiv="Content-Language" />
13
		<link href="<%=request.getContextPath()%>/img/favicon.ico" rel="shortcut icon" />
14
 
15
		<style type="text/css">
16
		<!--
17
 
18
		html,
19
		body {
20
		    background: url("../img/s3Body-bg-wave.gif") repeat scroll 0 0 #9A9B9B;
21
		    font-family: sans-serif;
22
		    height: 95%;
23
		    margin: 15px auto;
24
		    min-height: 95%;
25
		    width: 95%;
26
		}
27
 
28
		input.textfield:focus,
29
		input.textfield {
30
		    border: 1px solid;
31
		    font-size: 18px;
32
		    padding: 6px;
33
		    font-family: sans-serif;
34
   		}
35
 
36
		input.textfield:focus {
37
   			background-color:#ffff99;
38
   		}
39
 
40
   		input.button {
41
		    border: 1px solid;
42
		    cursor: pointer;
43
		    margin-top: 25px;
44
		    padding: 6px;
45
		    width: 120px;
46
   		}
47
 
48
   		label {
49
		    font-size: 14px;
50
   		}
51
 
52
   		#logo {
53
		    background-image: url("../img/logo.jpg");
54
		    background-position: right center;
55
		    background-repeat: no-repeat;
56
		    background-size: 300px auto;
57
      	}
58
 
59
		#messaggi {
60
			text-align:center;
61
			color:red;
62
			font-weight:bold;
63
		}
64
 
65
		#messaggi ul li {
66
			list-style:none;
67
		}
68
		// -->
69
		</style>
70
 
71
	</head> 
72
	<body style="background-color: white;">
73
		<div id="global" style="height:100%;">
74
			<div style="height:100%;">
75
				<table class="loginTable" style="width:100%;height:100%;background-color:#f2f2f2;border:1px solid black;" border="0" cellpadding="0" cellspacing="40">
76
					<tr>
77
						<td id="logo" style="width:45%;">
78
						</td>
79
						<td style="width:55%;">
80
							<form id="LoginForm" action="<%=request.getContextPath()%>/j_spring_security_check" method="post">
81
								<table style="border-top: 1px solid lightgray;border-bottom: 1px solid lightgray;" border="0" cellpadding="3" cellspacing="0">
82
									<tr>
83
										<td colspan="2" style="text-align:right;height:30px;">
84
										</td>
85
									</tr>
86
									<tr>
87
										<td style="text-align:right;width:130px;">
88
											<label for="username">Username:</label>
89
										</td>
90
										<td><input class="textfield" id="username" type="text" name="j_username" /></td>
91
									</tr>
92
									<tr>
93
										<td style="text-align:right;width:130px;">
94
											<label for="password">Password:</label>
95
										</td>
96
										<td><input class="textfield" id="password" type="password" autocomplete="off" name="j_password" /></td>
97
									</tr>
98
									<tr>
99
										<td colspan="2" style="text-align:right;">
100
											<%
101
												String message = "";
102
												Object exception = session.getAttribute("SPRING_SECURITY_LAST_EXCEPTION");
103
												if (exception != null) {
104
													if (exception instanceof SrmAuthenticationException) {
105
														message = "Username e/o password non corretti.";
106
													} else {
107
														message = exception.toString();
108
													}
109
												}
110
											%>
111
											<div id="messaggi">
112
												<ul><li><%=message%></li></ul>
113
											</div>
114
											<input class="button" type="submit" value="Accedi" />
115
										</td>
116
									</tr>
117
									<tr>
118
										<td colspan="2" style="text-align:right;height:30px;">
119
										</td>
120
									</tr>
121
								</table>
122
							</form>
123
						</td>
124
					</tr>
125
				</table>
126
			</div>
127
		</div>
128
	</body>
129
</html>
130