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

<h3 class="admintitle"><{$smarty.const._MI_BASE_MENU_MODULELIST}></h3>

<ul class="toptab">
  <li><a href="index.php?action=InstallList"><{$smarty.const._AD_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._AD_BASE_LANG_MOD_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._AD_BASE_LANG_MOD_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._AD_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._AD_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._AD_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._AD_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._AD_BASE_LANG_CONTROL}></th>
  </tr>
  <{foreach item=module from=$moduleObjects}>
    <{if $module->get('hasmain') && $module->getShow('weight','e') != 0 }>
      <tr class="<{cycle values='odd,even'}> active">
    <{else}>
    <tr class="<{cycle values='odd,even'}>">
    <{/if}>
      <td class="base_list_id"><{$module->getShow('mid')}></td>
      <td class="base_list_image"><img src="<{$xoops_url}>/modules/<{$module->getShow('dirname')}>/<{$module->modinfo.image}>" alt="<{$module->getShow('name')}>" /><br />
        <input type="text" size="24" name="name[<{$module->getShow('mid')}>]" value="<{$module->getShow('name')}>" /></td>
      <td class="base_list_order"><{$module->getRenderedVersion()}></td>
      <td class="base_list_date"><{$module->get('last_update')|xoops_formattimestamp:l}></td>
      <td class="base_list_select">
<{*      <{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 class="base_list_select"><input type="checkbox" name="isactive[<{$module->getShow('mid')}>]" value="1" <{if $module->get('isactive')}>checked="checked"<{/if}> /></td>
      <td class="base_list_control">
        <a href="index.php?action=ModuleUpdate&amp;dirname=<{$module->getShow('dirname')}>"><img src="<{"icons/update.gif"|theme}>" alt="<{$smarty.const._AD_BASE_LANG_UPDATE}>" title="<{$smarty.const._AD_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._AD_BASE_LANG_UNINSTALL}>" title="<{$smarty.const._AD_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._AD_BASE_LANG_INFORMATION}>" title="<{$smarty.const._AD_BASE_LANG_INFORMATION}>" /></a>
      </td>
    </tr>
  <{/foreach}>
  <tr>
    <td class="foot" colspan="7">
      <input type="submit" value="<{$smarty.const._AD_BASE_LANG_UPDATE}>" class="formButton" />
    </td>
  </tr>
</table>
</form>
