<?php include VIEW_DIR.'mobile/common/menu/public.tpl'; ?>

<?php if (SID !== ''): ?>
<form method="post" action="<?php e(HTTP_ACTION.'public/login/login/'); ?>" utn>
	<input type="hidden" name="<?php e(Auth_AutoLogin::POST_SERIAL); ?>" value="1">
	<input type="submit" name="login" value="<?php _e('Auto Sign In');?>"><br>
	<?php _e('It is necessary to register itself beforehand.');?><br>
</form><br>
<?php endif; ?>
<form method="post" action="<?php e(HTTP_ACTION.'public/login/login/'); ?>"><?php HTML::requires(); ?>
<?php if (!empty($this->_vars['request']['mismatch'])): ?>
	<img src="<?php e(BASE_URL); ?>resource/img/icons/exclamation.gif" width="16" height="16" alt="&gt;">&nbsp;
	<font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Invalid ID or password.'); ?></font><br>
	<font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please try again.'); ?></font>
<?php endif; ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td align="center" bgcolor="<?php Theme::exec()->bgTitleColor(); ?>"><font color="<?php Theme::exec()->columnColor(); ?>"><?php _e('Sign In'); ?></font></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('E-mail');?>:</td></tr>
	<tr><td><input type="text" name="email" value="<?php e($this->_vars['request']['email']); ?>"></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Password');?>:</td></tr>
	<tr><td><input type="password" name="password"></td></tr>
<?php if (SID === ''): ?>
	<tr><td><input type="checkbox" name="autologin" value="1"><?php _e('Keep me signed in');?></td></tr>
<?php endif; ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><input type="submit" name="login" value="<?php _e('Sign In');?>"></td></tr>
</table>
</form>
<font size="<?php Theme::exec()->fontSize(); ?>"><a href="<?php e(HTTP_ACTION); ?>public/login/reissue/"><?php _e('Forgot your password?');?></a></font>

<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade"><font size="<?php Theme::exec()->fontSize(); ?>">
<a href="<?php e(HTTP_ACTION); ?>public/content/view/about/"><?php _e('About'); ?></a><br> 
<a href="<?php e(HTTP_ACTION); ?>public/content/contact/"><?php _e('Contact'); ?></a><br> 
<a href="<?php e(HTTP_ACTION); ?>public/content/view/privacy/"><?php _e('Privacy'); ?></a><br>
<a href="<?php e(HTTP_ACTION); ?>public/content/view/terms/"><?php _e('Terms'); ?></a><br></font>
