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

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

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

<form method="post" action="#">
<{xoops_token form=$actionForm}>
<table class="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->getShow('mid')}></td>
      <td><img src="<{$xoops_url}>/modules/<{$module->getShow('dirname')}>/<{$module->modinfo.image}>" alt="<{$module->getShow('name')}>" /><br />
        <input type="text" size="22" name="name[<{$module->getShow('mid')}>]" value="<{$module->getShow('name')}>" /></td>
      <td><{$module->getRenderedVersion()}></td>
      <td><{$module->get('last_update')|xoops_formattimestamp:l}></td>
      <td>
      <{if $module->get('hasmain')}>
        <input type="text" size="4" maxlength="4" name="weight[<{$module->getShow('mid')}>]" value="<{$module->getShow('weight','e')}>" />
      <{else}>
        <input type="hidden" name="weight[<{$module->getShow('mid')}>]" value="<{$module->getShow('weight','e')}>" />
      <{/if}>
      </td>
      <td><input type="checkbox" name="isactive[<{$module->getShow('mid')}>]" value="1" <{if $module->get('isactive')}>checked="checked"<{/if}> /></td>
      <td>
        <a href="index.php?action=ModuleUpdate&amp;dirname=<{$module->getShow('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->get('isactive') == 0 }>
          <a href="index.php?action=ModuleUninstall&amp;dirname=<{$module->getShow('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&amp;dirname=<{$module->getShow('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>
