<?php /* Smarty version 2.6.19, created on 2008-04-14 16:29:12
         compiled from includes/adduser.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'includes/adduser.tpl', 2, false),array('function', 'insert_form', 'includes/adduser.tpl', 8, false),array('function', 'html_radios', 'includes/adduser.tpl', 11, false),)), $this); ?>
<div class="space"></div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=$this->_tpl_vars['webdoc']['template_dir'])) ? $this->_run_mod_handler('cat', true, $_tmp, "message.tpl") : smarty_modifier_cat($_tmp, "message.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if (! $this->_tpl_vars['no_display']): ?>
    
    <p>Add new user:</p>
    <form method="post" action="">
      <table class="record" border=0>
        <tr><th>Login:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'login','value' => $this->_tpl_vars['record']['login']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Password:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'password','name' => 'pass'), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Password again:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'password','name' => 'pass_again'), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Role:</th></tr><tr><td><?php echo smarty_function_html_radios(array('name' => 'role_id','values' => $this->_tpl_vars['values'],'output' => $this->_tpl_vars['names'],'selected' => $this->_tpl_vars['id'],'separator' => ' '), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Name:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'name','value' => $this->_tpl_vars['record']['name']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Surname:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'surname','value' => $this->_tpl_vars['record']['surname']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>E-mail:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'email','value' => $this->_tpl_vars['record']['email']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Active:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'checkbox','name' => 'active','value' => '1','checked' => $this->_tpl_vars['record']['active']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <?php if ($this->_tpl_vars['record']['person_id']): ?><?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'person_id','value' => $this->_tpl_vars['record']['person_id']), $this);?>
<?php endif; ?>
        <tr><td colspan="2"><?php if ($this->_tpl_vars['record']['person_id']): ?><?php echo smarty_function_insert_form(array('type' => 'submit','value' => 'Edit'), $this);?>
<?php else: ?><?php echo smarty_function_insert_form(array('type' => 'submit','value' => 'Add'), $this);?>
<?php endif; ?></td><tr>
      </table>
    </form>
<?php endif; ?>