<?php /* Smarty version 2.6.18, created on 2007-06-04 23:57:47
         compiled from usersList.tpl */ ?>
<?php if ($this->_tpl_vars['actionInfo'] != ""): ?>
  <div class="note">
    <?php echo $this->_tpl_vars['actionInfo']; ?>

  </div>
<?php endif; ?>
<div align="center">
<?php unset($this->_sections['listStart']);
$this->_sections['listStart']['name'] = 'listStart';
$this->_sections['listStart']['loop'] = is_array($_loop=$this->_tpl_vars['loopCount']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['listStart']['start'] = (int)0;
$this->_sections['listStart']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['listStart']['show'] = true;
$this->_sections['listStart']['max'] = $this->_sections['listStart']['loop'];
if ($this->_sections['listStart']['start'] < 0)
    $this->_sections['listStart']['start'] = max($this->_sections['listStart']['step'] > 0 ? 0 : -1, $this->_sections['listStart']['loop'] + $this->_sections['listStart']['start']);
else
    $this->_sections['listStart']['start'] = min($this->_sections['listStart']['start'], $this->_sections['listStart']['step'] > 0 ? $this->_sections['listStart']['loop'] : $this->_sections['listStart']['loop']-1);
if ($this->_sections['listStart']['show']) {
    $this->_sections['listStart']['total'] = min(ceil(($this->_sections['listStart']['step'] > 0 ? $this->_sections['listStart']['loop'] - $this->_sections['listStart']['start'] : $this->_sections['listStart']['start']+1)/abs($this->_sections['listStart']['step'])), $this->_sections['listStart']['max']);
    if ($this->_sections['listStart']['total'] == 0)
        $this->_sections['listStart']['show'] = false;
} else
    $this->_sections['listStart']['total'] = 0;
if ($this->_sections['listStart']['show']):

            for ($this->_sections['listStart']['index'] = $this->_sections['listStart']['start'], $this->_sections['listStart']['iteration'] = 1;
                 $this->_sections['listStart']['iteration'] <= $this->_sections['listStart']['total'];
                 $this->_sections['listStart']['index'] += $this->_sections['listStart']['step'], $this->_sections['listStart']['iteration']++):
$this->_sections['listStart']['rownum'] = $this->_sections['listStart']['iteration'];
$this->_sections['listStart']['index_prev'] = $this->_sections['listStart']['index'] - $this->_sections['listStart']['step'];
$this->_sections['listStart']['index_next'] = $this->_sections['listStart']['index'] + $this->_sections['listStart']['step'];
$this->_sections['listStart']['first']      = ($this->_sections['listStart']['iteration'] == 1);
$this->_sections['listStart']['last']       = ($this->_sections['listStart']['iteration'] == $this->_sections['listStart']['total']);
?>
  <a href="index.php?site=user&amp;action=list&amp;step=<?php echo $this->_sections['listStart']['index']*5; ?>
">[<?php echo $this->_sections['listStart']['index']; ?>
]</a>&nbsp;
<?php endfor; endif; ?>
</div>
<br />

<table class="list" border="0" width="100%">
  <tr class="head">
    <td width="10%" align="left" style="border-right-width: 0px">
      <?php if ($this->_tpl_vars['startIndex'] > 0): ?>&nbsp;<a href="index.php?site=user&amp;action=list&amp;step=<?php echo $this->_tpl_vars['startIndex']-5; ?>
">späť</a><?php endif; ?>
    </td>
    <td align="center" style="border-left-width: 0px; border-right-width: 0px"><?php echo $this->_tpl_vars['startIndex']+1; ?>
..<?php echo $this->_tpl_vars['startIndex']+5; ?>
<br /><br /></td>
    <td width="10%" align="right" style="border-left-width: 0px">
      <?php if ($this->_tpl_vars['startIndex'] < ( $this->_tpl_vars['loopCount']-1 ) * 5): ?><a href="index.php?site=user&amp;action=list&amp;step=<?php echo $this->_tpl_vars['startIndex']+5; ?>
">ďalej</a>&nbsp;<?php endif; ?>
    </td>
  </tr>
</table>
<table class="list" width="100%">
  <?php $_from = $this->_tpl_vars['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['user']):
?>
  <tr>
    <td style="border-right-width: 0px; text-align: right;"><?php echo $this->_tpl_vars['user']['namePrefix']; ?>
&nbsp;</td>
    <td style="width: 40%; border-left-width: 0px"><?php echo $this->_tpl_vars['user']['surname']; ?>
 <?php echo $this->_tpl_vars['user']['name']; ?>
 <?php echo $this->_tpl_vars['user']['nameSuffix']; ?>
</td>
    <td style="width: 40%"></td>
    <td><a href="index.php?site=user&amp;action=info&amp;id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[detaily]</a></td>
    <td><a href="index.php?site=user&amp;action=edit&amp;id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[editovať]</a></td>
    <td><a href="index.php?site=user&amp;action=delete&amp;id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[zmazať]</a></td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>
</table>
<table class="list" border="0" width="100%">
  <tr class="head">
    <td width="10%" align="left" style="border-right-width: 0px">
      <?php if ($this->_tpl_vars['startIndex'] > 0): ?>&nbsp;<a href="index.php?site=user&amp;action=list&amp;step=<?php echo $this->_tpl_vars['startIndex']-5; ?>
">späť</a><?php endif; ?>
    </td>
    <td align="center" style="border-left-width: 0px; border-right-width: 0px"><br /><?php echo $this->_tpl_vars['startIndex']+1; ?>
..<?php echo $this->_tpl_vars['startIndex']+5; ?>
</td>
    <td width="10%" align="right" style="border-left-width: 0px">
      <?php if ($this->_tpl_vars['startIndex'] < ( $this->_tpl_vars['loopCount']-1 ) * 5): ?><a href="index.php?site=user&amp;action=list&amp;step=<?php echo $this->_tpl_vars['startIndex']+5; ?>
">ďalej&nbsp;</a><?php endif; ?>
    </td>
  </tr>
</table>
<br />
