This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/account/user_login.tpl
2011-05-03 09:49:01 +10:00

70 lines
2.4 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{if $smarty.const.SESS_LOGGED == true}
{$block->display('account:account')}
{else}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td valign="top">
<form method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading"><div style="text-align: center;">{t}Account Login{/t}</div></td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td style="width: 25%;">{t}Username{/t}</td>
<td style="width: 75%;"><input type="text" name="_username" id="loginUsername" value="{$VAR._username}" size="12"/></td>
</tr>
<tr>
<td style="width: 25%;">{t}Password{/t}</td>
<td style="width: 75%;"><input type="password" name="_password" size="12"/></td>
</tr>
<tr>
<td style="width: 25%;">
<input type="hidden" name="_login" value="Y"/>
{if $VAR._page != ''}
<input type="hidden" name="_page" value="{$VAR._page}"/>
{else}
<input type="hidden" name="_page" value="account:account"/>
{/if}
</td>
<td style="width: 75%;"><input type="submit" name="_login2" value="{t}Login{/t}" class="form_button"/></td>
</tr>
<tr align="right">
<td colspan="2"><a href="?_page=account:user_password">{t}Reset Password{/t}</a></td>
</tr>
{if $smarty.const.DEFAULT_ACCOUNT_STATUS == '1'}
<tr align="right">
<td colspan="2"><a href="?_page=account:user_verify">{t}Verify Account{/t}</a></td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<script type="text/javascript">document.getElementById('loginUsername').focus()</script>
</td>
<td>&nbsp;</td>
<td style="width: 65%;" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>{$block->display('account:user_add')}</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}