login.xhtml
2.89 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:c="http://java.sun.com/jstl/core">
<f:loadBundle basename="messages" var="msg" />
<head>
<title>#{msg['sistema.label.tituloSistema']}</title>
<link rel="shortcut icon" href="#{msg['sistema.label.imageFavicon']}"/>
<a4j:loadStyle src="css/estilo.css" />
</head>
<body onload="javascript:document.forms[0].j_username.focus();">
<div id="main">
<div id="topo">
<img src="#{msg['sistema.label.imageLogo']}" alt="Logo da Administração" width="250" height="90" />
<h1>#{msg['sistema.label.tituloSistema']}</h1>
<h2><h:outputText value="#{msg['sistema.label.instituicao']}"/></h2>
</div>
<div id="login">
<img src="#{msg['sistema.label.imageSecurity']}" width="167" height="179" />
<form id="form1" name="form1" method="post" action="j_spring_security_check">
<fieldset style="width:270px">
<legend>Área de Login</legend>
<dl>
<dt><label for="j_username">Usuário </label></dt>
<dd><input type="text" name="j_username" id="j_username" style="text-transform:none;" /></dd>
<dt><label for="j_password">Senha </label></dt>
<dd><input type="password" name="j_password" id="j_password" /></dd>
<dl style="margin-left: 175px">
<dt>
<input type="submit" value="Autenticar"/>
</dt>
</dl>
<br/>
<h:messages styleClass="messages" globalOnly="true"/>
<font color="red">
<h:outputText value="#{messageLogin}" />
</font>
</dl>
</fieldset>
</form>
</div>
<div id="rodape">
<h:outputText value="#{msg['sistema.label.fonteRecursos']}"/>
<span class="versao">
#{msg['sistema.label.sistemaVersao']}
<font style="color:red; padding-left:20px">
[e-mail: <h:outputText value="#{msg['sistema.label.emailSuporte']}" style="none"/>]
</font>
</span>
</div>
</div>
<!--<ui:include src="/public/retrieveLogin.xhtml"/>-->
<rich:jQuery selector="#login #j_username" timing="onload" query="focus(function(){jQuery(this).addClass('comFoco')})"/>
<rich:jQuery selector="#login #j_username" timing="onload" query="blur(function(){jQuery(this).removeClass('comFoco')})"/>
<rich:jQuery selector="#login #j_password" timing="onload" query="focus(function(){jQuery(this).addClass('comFoco')})"/>
<rich:jQuery selector="#login #j_password" timing="onload" query="blur(function(){jQuery(this).removeClass('comFoco')})"/>
</body>
</html>