<div class="adminnavi">
  <a href="./index.php"><{$smarty.const._MI_BASE_NAME}></a>
  &raquo;&raquo; <a href="./index.php?action=ModuleList"><{$smarty.const._MI_BASE_MENU_MODULELIST}></a>
  &raquo;&raquo; <{$smarty.const._MD_A_BASE_LANG_MODUPDATE_CONF}>
</div>

<h3><{$smarty.const._MD_A_BASE_LANG_MODUPDATE_CONF}></h3>

<form method="post">
  <{xoops_token form=$actionForm}>
  <{xoops_input type=hidden name=confirm value=1}>
<table class="outer">
  <tr>
    <th><{$smarty.const._MD_A_BASE_LANG_MID}></th>
    <th><{$smarty.const._MD_A_BASE_LANG_NAME}></th>
    <th><{$smarty.const._MD_A_BASE_LANG_WEIGHT}></th>
    <th><{$smarty.const._MD_A_BASE_LANG_ISACTIVE}></th>
  </tr>

<{foreach item=mid from=$mids}>
  <tr class="<{cycle values='odd,even'}>" style="text-align:center;">
    <td><{$mid}></td>
    <td>
      <{if $actionForm->get('name',$mid) == $moduleObjects[$mid]->getProperty('name')}>
        <{$actionForm->get('name',$mid)|escape}>
      <{else}>
         (<{$moduleObjects[$mid]->getShow('name')}>) &raquo; <b style="color:#ff0000;"><{$actionForm->get('name',$mid)|escape}></b>
      <{/if}>
    </td>
    <td>
      <{if $actionForm->get('weight',$mid) == $moduleObjects[$mid]->getProperty('weight')}>
        <{$actionForm->get('weight',$mid)|escape}>
      <{else}>
         (<{$moduleObjects[$mid]->getShow('weight')}>) &raquo; <b style="color:#ff0000;"><{$actionForm->get('weight',$mid)|escape}></b>
      <{/if}>
    </td>
    <td>
      <{if $actionForm->get('isactive',$mid) == $moduleObjects[$mid]->getProperty('isactive')}>
        <{$smarty.const._MD_A_BASE_LANG_NO_CHANGE}>
      <{else}>
        (<{if $moduleObjects[$mid]->getProperty('isactive') == 1 }>
          <{$smarty.const._MD_A_BASE_LANG_ISACTIVE}>
        <{else}>
          <{$smarty.const._MD_A_BASE_LANG_DEACTIVATE}>
        <{/if}>) 
        &raquo;
        <b style="color:#ff0000;">
        <{if $actionForm->get('isactive',$mid) == 1}>
          <{$smarty.const._MD_A_BASE_LANG_ISACTIVE}>
        <{else}>
          <{$smarty.const._MD_A_BASE_LANG_DEACTIVATE}>
        <{/if}></b>
      <{/if}>
    </td>
  </tr>
  <input type="hidden" name="name[<{$mid}>]" value="<{$actionForm->get('name',$mid)|escape}>" />
  <input type="hidden" name="weight[<{$mid}>]" value="<{$actionForm->get('weight',$mid)|escape}>" />
  <{if $actionForm->get('isactive',$mid)}>
    <input type="hidden" name="isactive[<{$mid}>]" value="1" />
  <{else}>
    <input type="hidden" name="isactive[<{$mid}>]" value="0" />
  <{/if}>
<{/foreach}>
  <tr>
    <td class="foot" colspan="4">
      <input type="submit" value="<{$smarty.const._MD_A_BASE_LANG_UPDATE}>" class="formButton" />
      <input class="formButton" type="submit" value="<{$smarty.const._BACK}>" name="_form_control_cancel" />
    </td>
  </tr>
</table>
</form>
