{include file="header.tpl"}

<div id="sidebar">
{include file="sidebar.tpl"}
</div>

<div class="mainContent">
<h1>{$smarty.const.LOGIN_WELCOME}</h1>

{if $single_mode}
	<p>{$smarty.const.SINGLE_USER}</p>
	<p>{$smarty.const.LOGIN_SINGLE}</p>
{else}
	<p>{$smarty.const.LOGIN_HELLO}</p>
{/if}

{if $success}
	<p class="green"><strong>{$success}</strong></p>
{elseif $error_message}
	<p class="red"><strong>{$error_message}</strong></p>
{/if}

<fieldset>
	<legend>{$smarty.const.LOGIN_BELOW_LEGEND}</legend>
		<form action="login.php" method="post">
			<p {if $user_error}class="error"{/if}><label for="user">{$smarty.const.USERNAME}</label>
			<input id="user" name="user" type="text" size="30" maxlength="30" value="{$formuser}" />
			</p>

			<p><label for="pass">{$smarty.const.PASSWORD}</label>
			<input id="pass" name="pass" type="password" size="30" maxlength="30" value="" />
			</p>

			<p><input name="submit" type="submit" value="{$smarty.const.LOGIN}" /></p> 
			<p><input type="checkbox"  value="1" name="remember" {if $formremember}checked="checked"{/if} />
			{$smarty.const.REMEMBER_ME}<br />
			{$smarty.const.FORGOT_PASSWD}</p>
		</form>
</fieldset>

</div>

{include file="footer.tpl"}