<%@ include file="taglibs.jsp"%>
<%
String messageErr="errors.logon.connect" ;
if (request.getAttribute("messageError")!= null && request.getAttribute("messageError")!= ""){
messageErr = (String)request.getAttribute("messageError");
}
%>
<script type="text/javascript" language="Javascript1.1">
function openWindow()
{
alert ('<bean:message key="<%=messageErr%>"/>');
}
// On vérifie si l'ecran est situé dans une popup
// dans cette cas, on ferme et renvoye le login au opener
// On vérifie seulement deux niveaus car c'est le maximum possible dans l'appli.
if (opener && opener.dialogWin && opener.dialogWin.win == window)
{
// si l'ecran est situé dans une popup
var target = opener
if (opener.opener && opener.opener.dialogWin && opener.opener.dialogWin.win == window)
{
// si le popup vient d'une autre popup
target = opener.opener
}
// login page
target.document.location.href='<%=strContextPath%>/'
// auto-ferme
close()
}
</script>
<html:form action="/login.do" focus="login">
<logic:messagesPresent>
<body onload="openWindow();" >
</logic:messagesPresent>
<logic:messagesNotPresent>
<body>
</logic:messagesNotPresent>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
bgcolor="#333333" height="67">
<tr>
<td width="937" height="67" valign="middle"
background="<%=strImagesPath%>/LOGO.gif"> </td>
<td width="33" align="center" valign="middle"
background="<%=strImagesPath%>/bg_bleu_5.gif"> </td>
<td width="25" align="center" valign="middle"
background="<%=strImagesPath%>/bg_bleu_5.gif"> </td>
</tr>
</table>
<table width="100%" height="500" border="0" cellspacing="0"
cellpadding="0" leftmargin="0" topmargin="0" class="stylZCtext">
<tr>
<td valign="middle" width="965" height="500">
<table width="325" height="185" align="center" class="stylZCtext"
cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<!--Partie basse -->
<tr>
<td width="60%">
<table align="center" width="310" height="169" border="0"
cellpadding="0" cellspacing="0" class="Ta">
<tr>
<td width="54%" height="20" class="TiTa">
<div align="left" style="font-size: 8pt"> <bean:message
key="label.autentification" /></div>
</td>
<td width="46%" height="20" class="TiTa">
<div align="center"></div>
</td>
</tr>
<tr>
<td height="20" class="TeTaB"> </td>
<td height="20" class="TeTaB"> </td>
</tr>
<tr>
<td width="54%" height="24" class="TeTaB">
<div align="right"><bean:message key="label.login" /> :
</div>
</td>
<td width="46%" height="24" class="TeTaB">
<div align="left"><html:text property="login" size="16"
maxlength="50" /></div>
</td>
</tr>
<tr>
<td width="54%" height="24" class="TeTaB">
<div align="right"><bean:message key="label.password" /> :
</div>
</td>
<td width="46%" height="24" class="TeTaB">
<div align="left"><html:password property="password" size="16"
maxlength="30" /></div>
</td>
</tr>
<tr>
<td width="54%" class="TeTaB" align="center"><img
src="<%=strImagesPath%>/phone_modem1d.gif" border="0"></td>
<td width="46%" class="TeTaB">
<table>
<tr>
<td height="50%" class="TeTaB">
<div align="right"><html:submit property="submit"
value="Valider" styleClass="stylBtnLog" /></div>
</td>
<td height="50%" class="TeTaB">
<div align="center"><html:reset value="Annuler"
styleClass="stylBtnLog" /></div>
</td>
</tr>
<tr>
<td height="25%"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="TeTaB" align="center"> </td>
<td class="TeTaB"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html:form>