<?php /* Smarty version 2.6.19, created on 2008-04-16 13:39:26
         compiled from backend/firms_list.tpl */ ?>
<h4><?php echo $this->_tpl_vars['firms_lang']['title']; ?>
:</h4><br>
<a href="<?php echo $this->_tpl_vars['baseurl']; ?>
admin/new_firm/<?php echo $this->_tpl_vars['jazyk']; ?>
"><?php echo $this->_tpl_vars['firms_lang']['create']; ?>
</a><br><br>

<form action="<?php echo $this->_tpl_vars['baseurl']; ?>
admin/firms/<?php echo $this->_tpl_vars['jazyk']; ?>
" method="post">
  <input type="submit" name="delete" value="<?php echo $this->_tpl_vars['firms_lang']['delete_marked']; ?>
">
  <table>
    <tr> 
      <th><?php echo $this->_tpl_vars['firms_lang']['name']; ?>
</th><th><?php echo $this->_tpl_vars['firms_lang']['category']; ?>
</th><th></th>
    </tr>
    <?php unset($this->_sections['p']);
$this->_sections['p']['name'] = 'p';
$this->_sections['p']['loop'] = is_array($_loop=$this->_tpl_vars['firms']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['p']['show'] = true;
$this->_sections['p']['max'] = $this->_sections['p']['loop'];
$this->_sections['p']['step'] = 1;
$this->_sections['p']['start'] = $this->_sections['p']['step'] > 0 ? 0 : $this->_sections['p']['loop']-1;
if ($this->_sections['p']['show']) {
    $this->_sections['p']['total'] = $this->_sections['p']['loop'];
    if ($this->_sections['p']['total'] == 0)
        $this->_sections['p']['show'] = false;
} else
    $this->_sections['p']['total'] = 0;
if ($this->_sections['p']['show']):

            for ($this->_sections['p']['index'] = $this->_sections['p']['start'], $this->_sections['p']['iteration'] = 1;
                 $this->_sections['p']['iteration'] <= $this->_sections['p']['total'];
                 $this->_sections['p']['index'] += $this->_sections['p']['step'], $this->_sections['p']['iteration']++):
$this->_sections['p']['rownum'] = $this->_sections['p']['iteration'];
$this->_sections['p']['index_prev'] = $this->_sections['p']['index'] - $this->_sections['p']['step'];
$this->_sections['p']['index_next'] = $this->_sections['p']['index'] + $this->_sections['p']['step'];
$this->_sections['p']['first']      = ($this->_sections['p']['iteration'] == 1);
$this->_sections['p']['last']       = ($this->_sections['p']['iteration'] == $this->_sections['p']['total']);
?>
    <tr>
      <td><?php echo $this->_tpl_vars['firms'][$this->_sections['p']['index']]['firma_meno']; ?>
</td><td><?php echo $this->_tpl_vars['firms'][$this->_sections['p']['index']]['firma_kategoria']; ?>
</td>
      <td><input type="checkbox" name="firm_id[]" value="<?php echo $this->_tpl_vars['firms'][$this->_sections['p']['index']]['firma_id']; ?>
"/> <a href="<?php echo $this->_tpl_vars['baseurl']; ?>
admin/firm_edit/<?php echo $this->_tpl_vars['jazyk']; ?>
/<?php echo $this->_tpl_vars['firms'][$this->_sections['p']['index']]['firma_id']; ?>
"><?php echo $this->_tpl_vars['firms_lang']['edit']; ?>
</a></td>
    </tr>
    <?php if ($this->_sections['p']['index'] % 100 == 99): ?>
    <tr>
      <td colspan="3"><input type="submit" name="delete" value="<?php echo $this->_tpl_vars['firms_lang']['delete_marked']; ?>
"></td>
    </tr>
    <?php endif; ?>
    <?php endfor; endif; ?>
  </table>
  <input type="submit" name="delete" value="<?php echo $this->_tpl_vars['firms_lang']['delete_marked']; ?>
">
</form>