<?php /* Smarty version 2.6.25, created on 2012-07-15 08:13:21
         compiled from content.tpl */ ?>
<?php if ($this->_tpl_vars['show_title'] == 1): ?>
<?php echo $this->_tpl_vars['TITLE']; ?>

<br/>
<?php endif; ?>
<form method="post" action="<?php echo @DOC_ROOT; ?>
/login.php" onsubmit="ajaxFunction();">

 <?php if (( @REQUIRE_REGISTERED_USER == 1 || @REQUIRE_REGISTERED_USER_ARTICLE == 1 ) && empty ( $this->_tpl_vars['user_details'] )): ?><table border="0" align="center" width="40%" style="padding-top: 10px; z-index: -1; height: 0px">
	<tr>
   	<td>User:</td>
      <td>
       	<input type="text" name="user" value="<?php echo $this->_tpl_vars['user']; ?>
" size="10" maxlength="<?php echo @USER_LOGIN_MAX_LENGTH; ?>
" class="text" />
      </td>
   </tr>
   <tr>
   	<td>Password:</td>
      <td>
      	<input type="password" name="pass" value="" size="10" maxlength="<?php echo @USER_PASSWORD_MAX_LENGTH; ?>
" class="text" />
      </td>
   </tr>
   <tr>
       <td colspan="2" align="center"><input type="submit" name="submit" value="Login" class="btn" /></td>
   </tr>
   <tr>
   	<td colspan="2" style="text-align: left;">
   		<input type="checkbox" name="rememberMe">&nbsp;&nbsp; Keep me logged in.
      </td>        
   </tr>
</table>
<ul class="boxPopCats">
	<li><a href="<?php echo @DOC_ROOT; ?>
/profile.php?mode=register" title="Register">Register</a></li>
	<li><a href="<?php echo @DOC_ROOT; ?>
/profile.php?mode=sendpassword" title="Recover your password">I forgot my password</a></li>
</ul><?php elseif (( @REQUIRE_REGISTERED_USER == 1 || @REQUIRE_REGISTERED_USER_ARTICLE == 1 )): ?>
	<br />
	<div align="center" style="font-weight: bold; ">Welcome <?php echo $this->_tpl_vars['user_details']['NAME']; ?>
!</div>
	<ul class="boxPopCats">
		<li><a href="<?php echo @DOC_ROOT; ?>
/profile.php?mode=logged" title="Edit your account settings">My Account</a></li>
		<li><a href="<?php echo @DOC_ROOT; ?>
/logout.php" title="Log out of this account">Sign Out</a></li>
	</ul>
<?php endif; ?>
</form>