<!-- BEGIN {$smarty.template} -->

<div id="upload">

{if !$smarty.const.PHPAGA_UPLOADS_DISABLED}
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="returl" value="{$returl|rawurlencode}" />
<input type="hidden" name="file_rel_type" value="{$file_rel_type}" />
<input type="hidden" name="file_rel_id" value="{$file_rel_id}" />

<table class="stdtable" cellspacing="0">
  <caption><em>{t}Add files{/t}</em>
    <a class="ptr" onclick="hideElement('upload');"><img src="img/phpaga/close.png" alt="X" title="{t}Close{/t}"></a>
  </caption>
  <tr>
    <td colspan="2">
      {t}File{/t}: <input type="file" name="upfiles[]" class="tinput" size="60" />
    </td>
  </tr>
  <tr>
    <td colspan="2">
      {t}File{/t}: <input type="file" name="upfiles[]" class="tinput" size="60" />
    </td>
  </tr>  <tr>
    <td colspan="2">
      {t}File{/t}: <input type="file" name="upfiles[]" class="tinput" size="60" />
    </td>
  </tr>  <tr>
    <td colspan="2">
      {t}File{/t}: <input type="file" name="upfiles[]" class="tinput" size="60" />
    </td>
  </tr>  <tr>
    <td colspan="2">
      {t}File{/t}: <input type="file" name="upfiles[]" class="tinput" size="60" />
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <input type="submit" value="{t}Upload{/t}" />
    </td>
  </tr>
</table>

</form>
{else}
<div class="errmsg">
  <div><span><a class="ptr" onclick="hideElement('upload');"><img src="img/phpaga/close.png" alt="X" title="{t}Close{/t}"></a></span>{t}Uploads disabled{/t}</div>
  {t}Uploads are disabled.{/t}
</div>

{/if}
</div>

<!-- END {$smarty.template} -->
