<div class="adminnavi">
  <a href="./index.php"><{$smarty.const._MI_BASE_NAME}></a>
  &raquo;&raquo; <a href="./index.php?action=CommentList"><{$smarty.const._MI_BASE_MENU_COMMENT_MANAGE}></a>
  <{if $actionForm->get('com_id')}>
    &raquo;&raquo; <span class="adminnaviTitle"><{$smarty.const._AD_BASE_LANG_COMMENT_EDIT}></span>
  <{else}>
    &raquo;&raquo; <span class="adminnaviTitle"><{$smarty.const._AD_BASE_LANG_COMMENT_NEW}></span>
  <{/if}>
</div>

<h3 class="admintitle">
<{if $actionForm->get('com_id')}>
  <{$smarty.const._AD_BASE_LANG_COMMENT_EDIT}>
<{else}>
  <{$smarty.const._AD_BASE_LANG_COMMENT_NEW}>
<{/if}>
</h3>

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

<form action="" method="post">
  <{xoops_token form=$actionForm}>
  <{xoops_input type=hidden name=com_id value=$actionForm->get('com_id')}>
  <table class="outer">
    <tr>
      <td class="head"><{$smarty.const._MD_BASE_LANG_COM_TITLE}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=text name=com_title value=$actionForm->get('com_title') size=60 maxlength=255}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._MD_BASE_LANG_COM_ICON}></td>
      <td class="<{cycle values="odd,even"}>">
        <{foreach item=icon from=$subjectIconArr}>
          <{xoops_input type=radio name=com_icon value=$icon->get('filename') default=$actionForm->get('com_icon')}><img src="<{$xoops_url}>/images/subject/<{$icon->getShow('filename')}>" />
        <{/foreach}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._MD_BASE_LANG_COM_TEXT}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_dhtmltarea type=text rows=15 cols=60 name=com_text value=$actionForm->get('com_text')}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_COM_SIG}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=radio name=com_sig value=1 default=$actionForm->get('com_sig')}><{$smarty.const._YES}>
        <{xoops_input type=radio name=com_sig value=0 default=$actionForm->get('com_sig')}><{$smarty.const._NO}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_COM_STATUS}></td>
      <td class="<{cycle values="odd,even"}>">
        <select name="com_status">
          <{xoops_optionsArray label=name value=id from=$statusArr default=$actionForm->get('com_status')}>
        </select>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_CONTROL}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=checkbox name=dohtml value=1 default=$actionForm->get('dohtml')}>
        <{$smarty.const._MD_BASE_LANG_DOHTML}><br />
        <{xoops_input type=checkbox name=dosmiley value=1 default=$actionForm->get('dosmiley')}>
        <{$smarty.const._MD_BASE_LANG_DOSMILEY}><br />
        <{xoops_input type=checkbox name=doxcode value=1 default=$actionForm->get('doxcode')}>
        <{$smarty.const._MD_BASE_LANG_DOXCODE}><br />
        <{xoops_input type=checkbox name=doimage value=1 default=$actionForm->get('doimage')}>
        <{$smarty.const._AD_BASE_LANG_DOIMAGE}><br />
        <{xoops_input type=checkbox name=dobr value=1 default=$actionForm->get('dobr')}>
        <{$smarty.const._MD_BASE_LANG_DOBR}>
      </td>
    </tr>
    <tr>
      <td colspan="2" class="foot">
        <input class="formButton" type="submit" value="<{$smarty.const._SUBMIT}>" />
        <input class="formButton" type="submit" value="<{$smarty.const._BACK}>" name="_form_control_cancel" />
      </td>
    </tr>
  </table>
</form>
