<?php /* Smarty version 2.6.19, created on 2008-04-17 09:52:32
         compiled from backend/img_select.tpl */ ?>
<form action="<?php echo $this->_tpl_vars['action']; ?>
" method="post">
<?php echo $this->_tpl_vars['firms_lang']['search']; ?>
:<br>
<input type="text" value="<?php echo $this->_tpl_vars['search']; ?>
" name="search"> <input type="submit" name="submit_search" value="<?php echo $this->_tpl_vars['firms_lang']['img_submit']; ?>
">
</form>
<table style="width: 100%;">
  <?php unset($this->_sections['p']);
$this->_sections['p']['name'] = 'p';
$this->_sections['p']['loop'] = is_array($_loop=$this->_tpl_vars['imgs']) ? 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 class="index right">
      <img src="<?php echo $this->_tpl_vars['baseurl']; ?>
pictures/<?php echo $this->_tpl_vars['path']; ?>
/<?php echo $this->_tpl_vars['imgs'][$this->_sections['p']['index']]; ?>
" alt=""><br>
      <input type="button" value="<?php echo $this->_tpl_vars['firms_lang']['select']; ?>
" onclick="window.opener.document.getElementById('<?php echo $this->_tpl_vars['element']; ?>
').value = '<?php echo $this->_tpl_vars['imgs'][$this->_sections['p']['index']]; ?>
'">
    </td>
  </tr>
  <?php endfor; else: ?>
  <tr>
    <td class="index">
      <?php echo $this->_tpl_vars['firms_lang']['imgs_none']; ?>

    </td>
  </tr>
  <?php endif; ?>
</table>