<div class="adminnavi">
  <a href="./index.php"><{$smarty.const._MI_USER_NAME}></a>
  &raquo;&raquo; <a href="./index.php?action=AvatarList"><{$smarty.const._MI_USER_ADMENU_AVATAR_MANAGE}></a>
  &raquo;&raquo; 
  <{if $actionForm->get('avatar_id')}>
    <{$smarty.const._AD_USER_LANG_AVATAR_EDIT}>
  <{else}>
    <{$smarty.const._AD_USER_LANG_AVATAR_NEW}>
  <{/if}>
</div>

<{if $actionForm->get('avatar_id')}>
  <h3><{$smarty.const._AD_USER_LANG_AVATAR_EDIT}></h3>
<{else}>
  <h3><{$smarty.const._AD_USER_LANG_AVATAR_NEW}></h3>
<{/if}>

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

<form action="?action=AvatarEdit" method="post" enctype="multipart/form-data">
  <{xoops_token form=$actionForm}>
  <{xoops_input type=hidden name=avatar_id value=$actionForm->get('avatar_id')}>
  <table class="outer">
    <tr>
      <th colspan="2">
        <{if $actionForm->get('avatar_id')}>
          <{$smarty.const._AD_USER_LANG_AVATAR_EDIT}>
        <{else}>
          <{$smarty.const._AD_USER_LANG_AVATAR_NEW}>
        <{/if}>
      </th>
    </tr>
    <{if $actionForm->get('avatar_id')}>
    <tr>
      <td class="head"><{$smarty.const._AD_USER_LANG_AVATAR_ID}></td>
      <td class="<{cycle values="odd,even"}>"><b><{$actionForm->get('avatar_id')}></b></td>
    </tr>
    <{/if}>
    <tr>
      <td class="head"><{$smarty.const._AD_USER_LANG_AVATAR_NAME}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=text name=avatar_name value=$actionForm->get('avatar_name') size=15 maxlength=100}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_USER_LANG_AVATAR_FILE}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=file name=avatar_file size=30}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_USER_LANG_AVATAR_DISPLAY}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=radio name=avatar_display value=1 default=$actionForm->get('avatar_display')}><{$smarty.const._YES}>
        <{xoops_input type=radio name=avatar_display value=0 default=$actionForm->get('avatar_display')}><{$smarty.const._NO}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_USER_LANG_AVATAR_WEIGHT}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=text name=avatar_weight value=$actionForm->get('avatar_weight')}>
      </td>
    </tr>
    <tr>
      <td class="foot" colspan="2">
        <input class="formButton" type="submit" value="<{$smarty.const._SUBMIT}>" />
      </td>
    </tr>
  </table>
</form>
