<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; <span class="adminnaviTitle"><{$smarty.const._AD_BASE_LANG_MODUPDATE_CONF}></span>
</div>

<h3 class="admintitle"><{$smarty.const._AD_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._AD_BASE_LANG_MOD_MID}></th>
    <th><{$smarty.const._AD_BASE_LANG_MOD_NAME}></th>
    <th><{$smarty.const._AD_BASE_LANG_WEIGHT}></th>
    <th><{$smarty.const._AD_BASE_LANG_ISACTIVE}></th>
  </tr>

<{foreach item=mid from=$mids}>
  <tr class="<{cycle values='odd,even'}>">
    <td class="base_list_id"><{$mid}></td>
    <td class="base_list_name">
      <{if $actionForm->get('name',$mid) == $moduleObjects[$mid]->getProperty('name')}>
        <{$actionForm->get('name',$mid)|escape}>
      <{else}>
         (<{$moduleObjects[$mid]->getShow('name')}>) &raquo; <b  class="base_module_error"><{$actionForm->get('name',$mid)|escape}></b>
      <{/if}>
    </td>
    <td class="base_list_order">
      <{if $actionForm->get('weight',$mid) == $moduleObjects[$mid]->getProperty('weight')}>
        <{$actionForm->get('weight',$mid)|escape}>
      <{else}>
         (<{$moduleObjects[$mid]->getShow('weight')}>) &raquo; <b  class="base_module_error"><{$actionForm->get('weight',$mid)|escape}></b>
      <{/if}>
    </td>
    <td class="base_list_select">
      <{if $actionForm->get('isactive',$mid)|intval == $moduleObjects[$mid]->getProperty('isactive')}>
        <{$smarty.const._AD_BASE_LANG_NO_CHANGE}>
      <{else}>
        (<{if $moduleObjects[$mid]->getProperty('isactive') == 1 }>
          <{$smarty.const._AD_BASE_LANG_ISACTIVE}>
        <{else}>
          <{$smarty.const._AD_BASE_LANG_DEACTIVATE}>
        <{/if}>) 
        &raquo;
        <b class="base_module_error">
        <{if $actionForm->get('isactive',$mid) == 1}>
          <{$smarty.const._AD_BASE_LANG_ISACTIVE}>
        <{else}>
          <{$smarty.const._AD_BASE_LANG_DEACTIVATE}>
        <{/if}></b>
      <{/if}>
      <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}>
    </td>
  </tr>
<{/foreach}>
  <tr>
    <td class="foot" colspan="4">
      <input type="submit" value="<{$smarty.const._AD_BASE_LANG_UPDATE}>" class="formButton" />
      <input class="formButton" type="submit" value="<{$smarty.const._BACK}>" name="_form_control_cancel" />
    </td>
  </tr>
</table>
</form>
