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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
|
<?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:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>Authentification utilisateurs</title>
<style type="text/css">
html,body {
height: 100%;
}
div#distance {
margin-bottom: -10em;
width: 1px;
height: 50%;
float: left;
}
body {
background: url(images/bg-login.jpg) repeat-x center;
margin: 0;
padding: 0;
font-family: Helvetica, Arial, Tahoma, serif;
font-size: 9pt;
}
h1 {
font-size: 250%;
text-transform: uppercase;
letter-spacing: -1px;
font-weight: bold;
width: 450px;
margin: 0 0 35px 0;
padding: 0;
}
h1 a {
color: #fff;
text-decoration: none;
}
h1 a:hover {
color: #ccc;
}
fieldset,form {
margin: 0;
padding: 0;
border: 0;
outline: 0;
}
fieldset legend {
display: none;
}
ol {
margin: 0;
padding: 0;
list-style: none;
}
ol li {
float: left;
margin-right: 15px;
}
label {
display: block;
}
label.field-title {
width: 75px;
color: #fff;
font-weight: bold;
float: left;
padding-top: 3px;
}
label.txt-field input {
border: none;
outline: none;
background: none;
padding: 2px 0 0 8px;
}
label.remember {
color: #ccc;
float: left;
width: 200px;
margin-top: 20px;
margin-left: 75px;
margin-right: 215px;
}
div.align-right {
float: left;
width: 56px;
margin-top: 20px;
}
</style>
</h:head>
<h:body style="background-repeat:no-repeat;background-image:url(img/bg.bmp);" >
<f:view>
<h:form>
<p:growl id="growl" showDetail="true" sticky="true" life="950" />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<table background="img/lo.png" style="margin-right:10%; float:right">
<tr><td colspan="3"><img src="img/auth.png" /></td></tr>
<tr ><td style="color:#FFFFFF ;font-weight:bold;">
Nom utilisateur</td><td colspan="2"><p:inputText
id="username" value="#{UtilisateurBean.login}" title="Login"
style="border-radius: 10px"
requiredMessage="le champ login est Obligatoire."
required="true" /> <h:message for="username" /></td></tr>
<tr ><td style="color:#FFFFFF ;font-weight:bold;">
Mot de passe</td><td colspan="2"><p:password
id="pass" value="#{UtilisateurBean.password}" required="true"
style="border-radius: 10px"
requiredMessage="Entrer un passzord valide" /> <h:message
for="pass" /></td></tr>
<tr ><td style="color:#FFFFFF ;font-weight:bold;">
se connecter en tant que</td><td colspan="2"><p:selectOneRadio
id="options" value="#{UtilisateurBean.typeRole}">
<f:selectItem itemLabel="Administrateur"
itemValue="Administrateur" />
<f:selectItem itemLabel="Administrateur Audit"
itemValue="Administrateur Audit" />
<f:selectItem itemLabel="Planificateur"
itemValue="Planificateur" />
<f:selectItem itemLabel="Auditeur" itemValue="Auditeur" />
</p:selectOneRadio></td></tr>
<tr ><td style="color:#FFFFFF ;font-weight:bold;"></td><td></td><td align="right">
<p:commandButton id="logins"
style="background-image:url('images/bt-login.gif');background-repeat: no-repeat;height: 21px;width: 56px;border-style: none;border-radius: 10px"
value=" " action="#{UtilisateurBean.connection_role}"
update="growl" /></td></tr>
</table>
<h:messages tooltip="true" layout="table" />
</h:form>
</f:view>
</h:body>
</html> |
Partager