<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>
  <{if !$installed }>
    &raquo;&raquo; <a href="./index.php?action=InstallList"><{$smarty.const._MD_A_BASE_LANG_MODINSTALL}></a>
  <{/if}>
  &raquo;&raquo; <{$smarty.const._MD_A_BASE_LANG_INFORMATION}>
</div>

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

<h5><{$smarty.const._MD_A_BASE_LANG_MOD_BASIC_INFO}></h5>
<table class="outer">
  <tr>
    <th colspan="3"><{$smarty.const._MD_A_BASE_LANG_MOD_BASIC_INFO}></th>
  </tr>
  <tr>
    <td class="head" rowspan="6" style="text-align:center;">
      <img src="<{$xoops_url}>/modules/<{$module->getShow('dirname')}>/<{$module->modinfo.image}>" alt="<{$module->getShow('name')}>" title="<{$module->getShow('name')}>" />
      <div><{$module->modinfo.name|escape}></div>
    </td>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_NAME}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->getShow('name')}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_MOD_DIR_NAME}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->getShow('dirname')}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_VERSION}></td>
	<td class="<{cycle values='odd,even'}>"><{math equation="v/100" v=$module->get('version') format="%.2f"}>
	<{if $module->get('version') != $module->modinfo.version * 100 }>
	  &raquo; <b style="color:red;"><{math equation=$module->modinfo.version format="%.2f"}></b>
	<{/if}>
	</td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_MID}></td>
	<td class="<{cycle values='odd,even'}>">
	  <{if $module->get('mid')}>
	    <{$module->getShow('mid')}>
	  <{else}>
	    --
	  <{/if}>
	</td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_LASTUPDATE}></td>
	<td class="<{cycle values='odd,even'}>">
	  <{if $module->get('last_update')}>
        <{$module->get('last_update')|xoops_formattimestamp:l}>
      <{else}>
        --
      <{/if}>
    </td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_MOD_DESC}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->modinfo.description|escape}></td>
  </tr>
</table>

<hr />
<h5><{$smarty.const._MD_A_BASE_LANG_MOD_LICENSE_INFO}></h5>
<table class="outer">
  <tr>
	<td class="head" style="width:30%;"><{$smarty.const._MD_A_BASE_LANG_MODULE_LICENSE}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->modinfo.license|escape}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_MOD_AUTHOR}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->modinfo.author|escape}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_MOD_CREDITS}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->modinfo.credits|escape}></td>
  </tr>
</table>

<hr />
<h5><{$smarty.const._MD_A_BASE_LANG_SQL_INFO}></h5>
<{if $module->modinfo.tables}>
<table class="outer">
  <tr>
	<td class="head" style="width:30%;"><{$smarty.const._MD_A_BASE_LANG_SQL_HAS_MAIN}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_ACTIVE}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_SQL_ENGINE}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_SQL_MYSQL}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_SQL_FILE_NAME}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->modinfo.sqlfile.mysql}></td>
  </tr>
</table>
<br />
<table class="outer">
  <tr>
	<th><{$smarty.const._MD_A_BASE_LANG_TABLE_NUM}></th>
	<th><{$smarty.const._MD_A_BASE_LANG_TABLE_NAME}></th>
	<th><{$smarty.const._MD_A_BASE_LANG_TABLE_PROPERTIES}></th>
  </tr>
<{foreach from=$module->modinfo.tables item=table key=table_key}>
  <tr>
	<td class="head"><{$table_key}></td>
	<td class="<{cycle values='odd,odd,even,even'}>"><{$table|escape}></td>
	<td class="<{cycle values='odd,odd,even,even'}>">xxxxxxxxxxxxx</td>
  </tr>
<{/foreach}>
</table>
<{else}>
  <div><{$smarty.const._MD_A_BASE_LANG_NO_SQL}></div>
<{/if}>

<hr />
<h5><{$smarty.const._MD_A_BASE_LANG_MAINMENU_INFO}></h5>
<{if $module->get('hasmain')}>

<table class="outer">
  <tr>
	<td class="head" style="width:30%;"><{$smarty.const._MD_A_BASE_LANG_MAINMENU_HAS_MAIN}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_ACTIVE}></td>
  </tr>
</table>

<br />
<table class="outer">
  <tr>
	<th><{$smarty.const._MD_A_BASE_LANG_SUBMENU_NAME}></th>
	<th><{$smarty.const._MD_A_BASE_LANG_SUBMENU_URL}></th>
  </tr>
  <{foreach from=$module->modinfo.sub item=sub }>
  <tr class="<{cycle values="odd,even"}>">
    <td><{$sub.name}></td>
    <td><{$sub.url}></td>
  </tr>
  <{foreachelse}>
  <tr class="<{cycle values='odd,even'}>">
    <td colspan="2"><{$smarty.const._MD_A_BASE_LANG_NO_SUBMENU}></td>
  </tr>
  <{/foreach}>
</table>

<{else}>
<div><{$smarty.const._MD_A_BASE_LANG_NO_MAINMENU}></div>
<{/if}>

<hr />
<h5><{$smarty.const._MD_A_BASE_LANG_ADMIN_MENU}></h5>
<{if $module->get('hasadmin')}>
<table class="outer">
  <tr>
	<td class="head" style="width:30%;"><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_HAS_MAIN}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_ACTIVE}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_INDEX}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->modinfo.adminindex|escape}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_MENU}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->modinfo.adminmenu|escape}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._HELP}></td>
	<td class="<{cycle values='odd,even'}>"><{$module->modinfo.help|escape}></td>
  </tr>
</table>
<{if $module->adminmenu}>
<br />
<table class="outer">
  <tr>
	<th><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_KEY}></th>
	<th><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_NAME}></th>
	<th><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_URL}></th>
  </tr>
  <{foreach from=$module->adminmenu item=admin key=admin_key}>
  <tr>
	<td class="head"><{$admin_key|escape}></td>
    <td class="<{cycle values="odd,odd,even,even"}>"><{$admin.title|escape}></td>
    <td class="<{cycle values="odd,odd,even,even"}>"><{$admin.link|escape}></td>
  </tr>
  <{/foreach}>
</table>
<{/if}>
<{else}>
  <div><{$smarty.const._MD_A_BASE_LANG_NO_ADMINMENU}></div>
<{/if}>


<hr />
<h5><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_INFO}></h5>
<{if $module->modinfo.templates}>
<table class="outer">
  <tr>
	<td class="head" style="width:30%;"><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_HAS_MAIN}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_ACTIVE}></td>
  </tr>
  <tr>
	<td class="head"><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_ENGINE}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_SMARTY}></td>
  </tr>
</table>
<br />
<table class="outer">
  <tr>
	<th><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_KEY}></th>
	<th><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_FILE}></th>
	<th><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_DESC}></th>
  </tr>
<{foreach from=$module->modinfo.templates item=template key=template_key}>
  <tr>
	<td class="head"><{$template_key}></td>
	<td class="<{cycle values='odd,odd,even,even'}>"><{$template.file|escape}></td>
	<td class="<{cycle values='odd,odd,even,even'}>"><{$template.description|escape}></td>
  </tr>
<{/foreach}>
</table>
<{else}>
  <div><{$smarty.const._MD_A_BASE_LANG_NO_TEMPLATE}></div>
<{/if}>

<hr />
<h5><{$smarty.const._MD_A_BASE_LANG_BLOCKS_INFO}></h5>

<{foreach from=$module->modinfo.blocks item=block key=block_num }>
<table class="outer">
  <tr>
	<th><{$smarty.const._MD_A_BASE_LANG_BLOCK_KEY}> (<{$block_num|escape}>)</th>
	<th><{$smarty.const._MD_A_BASE_LANG_BLOCK_VAL}></th>
  </tr>
  <{foreach from=$block key=block_key item=block_val name=block }>
  <tr>
	<td class="head" style="width:30%;"><{$block_key|escape}></td>
	<{if $block_key == "name" }>
	  <td class="<{cycle values='odd,even' name=block}>"><b><{$block_val|escape}></b></td>
	<{else}>
	  <td class="<{cycle values='odd,even' name=block}>"><{$block_val|escape}></td>
	<{/if}>
  </tr>
  <{/foreach}>
</table>
<br />
<{foreachelse}>
  <div><{$smarty.const._MD_A_BASE_LANG_NO_BLOCK}></div>
<{/foreach}>

<hr />
<h5><{$smarty.const._MD_A_BASE_LANG_CONFIG_INFO}></h5>

<{foreach from=$module->modinfo.config item=config key=conf_num}>
<table class="outer">
  <tr>
	<th><{$smarty.const._MD_A_BASE_LANG_CONFIG_KEY}> (<{$conf_num}>)</th>
	<th><{$smarty.const._MD_A_BASE_LANG_CONFIG_VAL}></th>
  </tr>
  <{foreach from=$config key=config_key item=config_val name=config}>
  <tr>
	<td class="head" style="width:30%;"><{$config_key|escape}></td>
	<td class="<{cycle values="odd,even" name=config}>">
	  <{if $config_key == "name" }>
	    <b><{$config_val|escape}></b>
      <{elseif $config_key == options }>
	    <{foreach from=$config_val item=opt key=opt_key }>
	      <{$opt_key}> &raquo; <{$opt|escape}><br />
	    <{/foreach}>
	  <{else}>
	    <{$config_val|escape}>
	  <{/if}>
	</td>
  </tr>
  <{/foreach}>
</table>
<br />
<{foreachelse}>
  <div><{$smarty.const._MD_A_BASE_LANG_NO_CONFIG}></div>
<{/foreach}>

<hr />
<h5><{$smarty.const._MD_A_BASE_LANG_FEATURE_SVC_INFO}></h5>
<table class="outer">
<{if $module->get('hassearch')}>
  <tr>
	<td class="head" style="width:30%;"><{$smarty.const._MD_A_BASE_LANG_SEARCH_SVC}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_ACTIVE}></td>
  </tr>
<{/if}>
<{if $module->get('hascomments')}>
  <tr>
	<td class="head" style="width:30%;"><{$smarty.const._MD_A_BASE_LANG_COMMENT_SVC}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_ACTIVE}></td>
  </tr>
<{/if}>

<{if $module->get('hasnotification')}>
  <tr>
	<td class="head" style="width:30%;"><{$smarty.const._MD_A_BASE_LANG_NOTIF_SVC}></td>
	<td class="<{cycle values='odd,even'}>"><{$smarty.const._MD_A_BASE_LANG_ACTIVE}></td>
  </tr>
<{/if}>
</table>
