<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>
</div>

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

<div class="toptab">[ <a href="index.php?action=InstallList"><{$smarty.const._MD_A_BASE_LANG_MODINSTALL}></a> ]</div>

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

<form method="post">
<{xoops_token form=$actionForm}>
<table classs="outer">
  <tr>
    <th><{$smarty.const._MD_A_BASE_LANG_MID}><br />
      <a href="index.php?action=ModuleList&amp;sort=<{$smarty.const.MODULE_SORT_KEY_MID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>"></a>
      <a href="index.php?action=ModuleList&amp;sort=-<{$smarty.const.MODULE_SORT_KEY_MID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>"></a></th>
    <th><{$smarty.const._MD_A_BASE_LANG_NAME}><br />
      <a href="index.php?action=ModuleList&amp;sort=<{$smarty.const.MODULE_SORT_KEY_NAME}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>"></a>
      <a href="index.php?action=ModuleList&amp;sort=-<{$smarty.const.MODULE_SORT_KEY_NAME}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>"></a></th>
    <th><{$smarty.const._MD_A_BASE_LANG_VERSION}><br />
      <a href="index.php?action=ModuleList&amp;sort=<{$smarty.const.MODULE_SORT_KEY_VERSION}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>"></a>
      <a href="index.php?action=ModuleList&amp;sort=-<{$smarty.const.MODULE_SORT_KEY_VERSION}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>"></a></th>
    <th><{$smarty.const._MD_A_BASE_LANG_LASTUPDATE}><br />
      <a href="index.php?action=ModuleList&amp;sort=<{$smarty.const.MODULE_SORT_KEY_LASTUPDATE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>"></a>
      <a href="index.php?action=ModuleList&amp;sort=-<{$smarty.const.MODULE_SORT_KEY_LASTUPDATE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>"></a></th>
    <th><{$smarty.const._MD_A_BASE_LANG_WEIGHT}><br />
      <a href="index.php?action=ModuleList&amp;sort=<{$smarty.const.MODULE_SORT_KEY_WEIGHT}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>"></a>
      <a href="index.php?action=ModuleList&amp;sort=-<{$smarty.const.MODULE_SORT_KEY_WEIGHT}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>"></a></th>
    <th><{$smarty.const._MD_A_BASE_LANG_ISACTIVE}><br />
      <a href="index.php?action=ModuleList&amp;sort=<{$smarty.const.MODULE_SORT_KEY_ISACTIVE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>"></a>
      <a href="index.php?action=ModuleList&amp;sort=-<{$smarty.const.MODULE_SORT_KEY_ISACTIVE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>"></a></th>
    <th><{$smarty.const._MD_A_BASE_LANG_CONTROL}></th>
  </tr>
  <{foreach item=module from=$moduleObjects}>
    <tr class="<{cycle values='odd,even'}>" style="text-align:center;">
      <td><{$module->getVar('mid')}></td>
      <td><img src="<{$xoops_url}>/modules/<{$module->getVar('dirname')}>/<{$module->modinfo.image}>" alt="<{$module->getVar('name','e')}>" /><br />
        <input type="text" size="22" name="name[<{$module->getVar('mid')}>]" value="<{$module->getVar('name','e')}>"></td>
      <td><{$module->getRenderedVersion()}></td>
      <td><{$module->getVar('last_update')|xoops_formattimestamp:l}></td>
      <td>
      <{if $module->getVar('hasmain')}>
        <input type="text" size="4" maxlength="4" name="weight[<{$module->getVar('mid')}>]" value="<{$module->getVar('weight','e')}>" />
      <{else}>
        <input type="hidden" name="weight[<{$module->getVar('mid')}>]" value="<{$module->getVar('weight','e')}>" />
      <{/if}>
      </td>
      <td><input type="checkbox" name="isactive[<{$module->getVar('mid')}>]" value="1" <{if $module->getVar('isactive')}>checked<{/if}> /></td>
      <td>
        <a href="index.php?action=ModuleUpdate&dirname=<{$module->getVar('dirname')}>"><img src="<{"icons/update.gif"|theme}>" alt="<{$smarty.const._MD_A_BASE_LANG_UPDATE}>" title="<{$smarty.const._MD_A_BASE_LANG_UPDATE}>" /></a>
        <{if $module->getVar('isactive') == 0 }>
          <a href="index.php?action=ModuleUninstall&dirname=<{$module->getVar('dirname')}>"><img src="<{"icons/uninstall.gif"|theme}>" alt="<{$smarty.const._MD_A_BASE_LANG_UNINSTALL}>" title="<{$smarty.const._MD_A_BASE_LANG_UNINSTALL}>" /></a>
        <{/if}>
        <a href="index.php?action=ModuleInfo&dirname=<{$module->getVar('dirname')}>"><img src="<{"icons/info.gif"|theme}>" alt="<{$smarty.const._MD_A_BASE_LANG_INFORMATION}>" title="<{$smarty.const._MD_A_BASE_LANG_INFORMATION}>" /></a>
      </td>
    </tr>
  <{/foreach}>
  <tr>
    <td class="foot" colspan="7">
      <input type="submit" value="<{$smarty.const._MD_A_BASE_LANG_UPDATE}>" class="formButton" />
    </td>
  </tr>
</table>
</form>
