<{if $actionForm->hasError()}>
<div class="error">
  <ul>
    <{foreach item=message from=$actionForm->getErrorMessages()}>
      <li><{$message|escape}></li>
    <{/foreach}>
  </ul>
</div>
<{/if}>

<form action="<{$xoops_url}>/imagemanager.php?op=upload" method="post" enctype="multipart/form-data" style="margin:10px 0;">
  <{xoops_token form=$actionForm}>
  <{xoops_input type=hidden name=imgcat_id value=$actionForm->get('imgcat_id')}>
  <{xoops_input type=hidden name=target value=$target}>
  <table class="outer" cellspacing="1">
    <tr>
      <td class="head"><{$smarty.const._MD_LEGACY_LANG_IMAGE_FILE}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=file name=image_name}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._MD_LEGACY_LANG_IMAGE_NICENAME}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=text name=image_nicename value=$actionForm->get('image_nicename') size=30 maxlength=255}>
      </td>
    </tr>
    <tr class="foot">
      <td colspan="2" style="text-align:center;">
        <input class="formButton" type="submit" value="<{$smarty.const._SUBMIT}>" />
        <input type="button" value="<{$smarty.const._BACK}>" onclick="javascript:history.back()" class="formButton" />
      </td>
    </tr>
  </table>
</form>