<form action="{$action}" method="post">
{$firms_lang.search}:<br>
<input type="text" value="{$search}" name="search"> <input type="submit" name="submit_search" value="{$firms_lang.img_submit}">
</form>
<table style="width: 100%;">
  {section name=p loop=$imgs}
  <tr>
    <td class="index right">
      <img src="{$baseurl}pictures/{$path}/{$imgs[p]}" alt=""><br>
      <input type="button" value="{$firms_lang.select}" onclick="window.opener.document.getElementById('{$element}').value = '{$imgs[p]}'">
    </td>
  </tr>
  {sectionelse}
  <tr>
    <td class="index">
      {$firms_lang.imgs_none}
    </td>
  </tr>
  {/section}
</table>