<%@ include file="/WEB-INF/decorators/include.jsp"%>

<html>
<head></head>
<body>
<h4 class="title"><fmt:message key="login.title" /></h4>

	<c:if test="${not empty param.login_error}">
		<div class="errorBox">
			<fmt:message key="login.message.error" />
		</div>
	</c:if>
	
	<table width="100%">
	<tr>
		<td class="newuser"><div class="titleLogin"><fmt:message key="login.label.createnewuser" /></div></td>
		<td class="existingaccount"><div class="titleLogin"><fmt:message key="login.label.alreadyaccount" /></div></td>
	</tr>
	
	<tr>
	<td valign="top" width="50%">

		<p class="content_login">
		<fmt:message key="login.label.createaccount" />
		</p>
		<center><a class="register_link" href="registerUser.htm">
			<fmt:message key="login.label.register" />
		</a></center>
	</td>
	
	<td>
	<form action="<c:url value='j_acegi_security_check'/>" method="POST" id="mainformlogin2">
	<table  class="content_table">
	<tr>
	<td width="100" align="left">
		<fmt:message key="login.label.login" />
	</td>
	<td align="left" width="200">
		<input id="username" type='text' name='j_username' />
	</td>
	</tr>
	<tr>
	<td align="left">
		<fmt:message key="login.label.password" />
	</td>
	<td align="left">
		<input id="password" type='password' name='j_password' />
	</td>
	</tr>
	<tr>
	<td align="left">
		<fmt:message key='login.label.rememberme' />
	</td>
	<td align="left">
		<input type="checkbox" name="_acegi_security_remember_me"/>&nbsp;&nbsp;
	</td>
	</tr>
	<tr>
	<td colspan="2" align="right">
		<a href="<c:url value="/forgotPassword.htm"/>" class="forgot_pwd">
		<fmt:message key="login.label.forgotPasswordHeading"/>
		</a>
	</td>
	</tr>
	</table>
	</form>
	
	<br />
	<center><a class="submit_link" href="javascript:document.getElementById('mainformlogin2').submit();">
			<fmt:message key="login.btn.connexion" />
	</a></center>
	<script type="text/javascript">	new LoginManager('username', 'password');</script>

	</td></tr>
	</table>
	
</body>
</html>
