<!-- 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">
  <tr>
    <td class="header"> {t}Add file{/t} </td>
    <td class="headeraction"> [ <a class="ptr" onclick="hideElement('upload');">X</a> ] </td>
  </tr>
  <tr>
    <td colspan="2">
      {t}File{/t}: <input type="file" name="upfile" class="tinput" size="60" />
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <input type="submit" value="{t}Upload{/t}" />
    </td>
  </tr>
</table>

</form>
{else}
<table class="stdtable" cellspacing="0">
  <tr>
    <td class="header"> {t}Uploads disabled{/t} </td>
    <td class="headeraction"> [ <a class="ptr" onclick="hideElement('upload');">X</a> ] </td>
  </tr>
  <tr>
    <td colspan="2"> {t}Uploads are disabled.{/t} </td>
  </tr>
</table>

{/if}
</div>

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