{***************************************************************************
*  You can find the license in the docs directory
*
*  Unicode Reminder メモ
***************************************************************************}
{* OCSTYLE *}
<div class="content2-pagetitle">
	<img src="resource2/{$opt.template.style}/images/misc/32x32-profile.png" style="align: left; margin-right: 10px;" width="32" height="32" alt="{t}Login{/t}" />
	{t}Login{/t}
</div>

<form action="login.php" method="post" enctype="application/x-www-form-urlencoded" style="display: inline;">
	<input type="hidden" name="target" value="{$target|escape}" />
	<input type="hidden" name="action" value="login" />
	{if $error!=LOGIN_OK}
		<div class="content-txtbox-noshade">
			<p style="line-height: 1.6em;">
				{if $error==LOGIN_BADUSERPW}
					{t}The login was not successfull.{/t}<br />
					{t}The entered username/e-mail or the specified password did not match.{/t}<br />
          {t}Here you can find more troubleshooting:{/t} <a href="{$opt.cms.login}">{t}Problems with login{/t}</a>
				{elseif $error==LOGIN_TOOMUCHLOGINS}
					{t}The login was not successfull.{/t}<br />
					{t 1=$opt.page.max_logins_per_hour}Your tried to login more than %1 times in the last hour. The next login will not be allowed before one hour since the first try has passed.{/t}<br />
          {t}Here you can find more troubleshooting:{/t} <a href="{$opt.cms.login}">{t}Problems with login{/t}</a>
				{elseif $error==LOGIN_USERNOTACTIVE}
					{t}Your account is not acivated.{/t}<br />
					{t}&gt;<a href="activation.php">Here</a>&lt; you can activate your account.{/t}<br />
          {t}Here you can find more troubleshooting:{/t} <a href="{$opt.cms.login}">{t}Problems with login{/t}</a>
				{elseif $error==LOGIN_EMPTY_USERPASSWORD}
					{t}Please fill in username and password!{/t}
				{elseif $error==LOGIN_LOGOUT_OK}
					{t}Logout was successful.{/t}
				{else}
					{t}The login was not successfull.{/t}<br />
					{t 1=$opt.mail.contact}If this problem persists over a longer time, please contact us at <a href="mailto:%1">%1</a>.{/t}<br />
          {t}Here you can find more troubleshooting:{/t} <a href="{$opt.cms.login}">{t}Problems with login{/t}</a>
				{/if}
			</p>
			<div class="buffer" style="width: 500px;">&nbsp;</div>
		</div> 
	{/if}

	<table class="table">
		<tr>
			<td>{t}Username{/t}:</td>
			<td><input name="email" maxlength="80" type="text" class="textboxes" value="{$username}" class="input200" /></td>
		</tr>
		<tr>
			<td>{t}Password{/t}:</td>
			<td><input name="password" maxlength="60" type="password" class="textboxes" value="" class="input200" /></td>
		</tr>
		<tr><td class="spacer" colspan="2"></td></tr>

		<tr>
			<td class="header-small" colspan="2">
				<input type="reset" value="{t}Reset{/t}" class="formbuttons" />&nbsp;&nbsp;
				<input type="submit" value="{t}Login{/t}" class="formbuttons" />
			</td>
		</tr>
	</table>
</form>

<div class="content-txtbox-noshade">
	<p style="line-height: 1.6em;">
		{t}Not registered?{/t} <a href="register.php">{t}Register{/t}</a><br />
		{t}Forgotten your password?{/t} <a href="newpw.php">{t}Create a new password{/t}</a><br />
		{t}Forgotten your E-Mail-Address?{/t} <a href="remindemail.php">{t}Remind me{/t}</a><br />
		{t}Here you can find more troubleshooting:{/t} <a href="http://blog.geocaching.de/?page_id=268">{t}Problems with login{/t}</a>.
	</p>
	<div class="buffer" style="width: 500px;">&nbsp;</div>
</div>
