<?php /* Smarty version 2.6.2, created on 2012-10-21 12:19:56
         compiled from user_signup.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'encurl', 'user_signup.tpl', 8, false),array('modifier', 'escape', 'user_signup.tpl', 39, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<h3>User Signup</h3>
<div class="signup">

<?php if ($this->_tpl_vars['frm']['display'] == 'confirmation'): ?>
 <?php if ($this->_tpl_vars['frm']['say'] == 'confirmed'): ?>
  <div class="ok">Thank you. Your account has been successfully confirmed. You can <a href="<?php echo ((is_array($_tmp="?a=login")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">login</a> now.</div>
 <?php else: ?>
  <div class="error">Sorry, confirmation code was not found. It means you have used broken link or your account was already confirmed.</div>
 <?php endif;  elseif ($this->_tpl_vars['frm']['display'] == 'added'): ?>
<div class="ok">Thank you. Your account has been successfully created. You can <a href="<?php echo ((is_array($_tmp="?a=login")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">login</a> now.</div>
<?php elseif ($this->_tpl_vars['frm']['display'] == 'confirm'): ?>
<div class="ok">
Thank you. Your account has been successfully created.<br>
You should confirm your e-mail address by following link we have sent to you.
</div>
<?php else: ?>

<?php if ($this->_tpl_vars['errors']): ?>
<ul class="error">                                                                      
<?php if ($this->_tpl_vars['errors']['turing']): ?><li> Invalid turing image provided</li><?php endif;  if ($this->_tpl_vars['errors']['username']): ?><li> Please, enter your Username.</li><?php endif;  if ($this->_tpl_vars['errors']['username_exists']): ?><li> Username already exists. Please, enter another one.</li><?php endif;  if ($this->_tpl_vars['errors']['email']): ?><li> Please, enter your email</li><?php endif;  if ($this->_tpl_vars['errors']['email_exists']): ?><li> Email already registered. Please, use password reminder to restore your password.</li><?php endif;  if ($this->_tpl_vars['errors']['invalid_email']): ?><li> Please, enter your valid email</li><?php endif;  if ($this->_tpl_vars['errors']['password']): ?><li> Please, define your password</li><?php endif;  if ($this->_tpl_vars['errors']['password2']): ?><li> Please, verify passwords you have entered. Both passwords shoudl be equal</li><?php endif; ?>
</ul>
<?php endif; ?>

<form method="post" action="">
<input type="hidden" name="action" value="signup">
<table class="form">
<tr>
 <th>Username</th>
 <td><input type="text" name="username" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['username'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall') : smarty_modifier_escape($_tmp, 'htmlall')); ?>
"></td>
</tr>
<tr>
 <th>Email</th>
 <td><input type="text" name="email" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['email'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall') : smarty_modifier_escape($_tmp, 'htmlall')); ?>
"></td>
</tr>
<tr>
 <th>Password</th>
 <td><input type="password" name="password" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['password'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall') : smarty_modifier_escape($_tmp, 'htmlall')); ?>
"></td>
</tr>
<tr>
 <th>Confirm Password</th>
 <td><input type="password" name="password2" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['password2'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall') : smarty_modifier_escape($_tmp, 'htmlall')); ?>
"></td>
</tr>
<?php if (count($_from = (array)$this->_tpl_vars['ecs'])):
    foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['data']):
?>
<tr>
 <th><?php echo $this->_tpl_vars['data']['name']; ?>
 <img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/".($this->_tpl_vars['data']['name']).".gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="<?php echo $this->_tpl_vars['data']['name']; ?>
"></th>
 <td><input type="text" name="account[<?php echo $this->_tpl_vars['id']; ?>
]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['account'][$this->_tpl_vars['id']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall') : smarty_modifier_escape($_tmp, 'htmlall')); ?>
"></td>
</tr>
<?php endforeach; unset($_from); endif;  if ($this->_tpl_vars['settings']['use_turing']): ?>
<tr>
  <th><img src="<?php echo ((is_array($_tmp="?a=turing&".($this->_tpl_vars['sesname'])."=".($this->_tpl_vars['sesid'])."&r=".($this->_tpl_vars['rand']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="turing code"></th>
  <td><input type=text name="turing" maxlength=6 size=6></td>
</tr>
<?php endif; ?>
<tr>
 <th></th>
 <td><input type="submit" value="Signup"></td>
</tr>
</table>
</form>

<?php endif; ?>

</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>