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

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

<div class="tips"><{$smarty.const._AD_BASE_TIPS_THEME_ADMIN}></div>

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

<form action="./index.php?action=ThemeList" method="post" >
<{xoops_token form=$actionForm}>
<table class="outer">
  <tr>
    <th><{$smarty.const._AD_BASE_LANG_THEME}></th>
    <th><{$smarty.const._AD_BASE_LANG_PACKAGE}></th>
    <th colspan="2"><{$smarty.const._AD_BASE_LANG_CONTROL}></th>
  </tr>
  <{foreach item=theme from=$themes}>
    <{if $currentThemeName == $theme->get('name')}>
      <tr class="head" style="background-color:pink;text-align:center;">
    <{else}>
      <tr class="<{cycle values="odd,even"}>" style="text-align:center;">
    <{/if}>
      <td>
        <{if $theme->get('screenshot')}>
          <img src="<{$smarty.const.XOOPS_THEME_URL}>/<{$theme->getShow('dirname')}>/<{$theme->getShow('screenshot')}>" title="<{$theme->getShow('name')}>" width="120" height="90" /><br/>
        <{/if}>
        <!--- Sorry, please modify the following line --->
        <b><{$theme->getShow('name')}></b>
      </td>
      <td style="text-align:left;">
        <p><{$theme->getShow('description') != null}></p>
        <ul>
          <li><{$smarty.const._AD_BASE_LANG_VERSION}> : <{$theme->getShow('version')}>
          <li><{$smarty.const._AD_BASE_LANG_RENDER}> : <{$theme->getShow('render_system')}>
          <li><{$smarty.const._AD_BASE_LANG_FORMAT}> : <{$theme->getShow('format')}>
          <li><{$smarty.const._AD_BASE_LANG_AUTHOR}> : <{$theme->getShow('author')}>
          <{if $theme->get('url') != null}>
            <li><a href="<{$theme->getShow('url')}>"><{$smarty.const._AD_BASE_LANG_GET_THE_LATEST_VERSION}></a>
          <{/if}>
        </ul>
      </td>
      <td>
        <input type="checkbox" name="select[<{$theme->getShow('dirname')}>]" value="1" <{if $actionForm->get('select', $theme->get('dirname'))}>checked<{/if}>/>
      </td>
      <td>
        <{if $currentThemeName != $theme->get('dirname')}>
          <input name="choose[<{$theme->getShow('dirname')}>]" type="submit" value="<{$smarty.const._SELECT}>" class="formButton" />
        <{else}>
          <img src="<{"icons/active.gif"|theme}>" alt="<{$smarty.const._AD_LEGACYRENDER_LANG_SELECTED}>" title="<{$smarty.const._AD_LEGACYRENDER_LANG_SELECTED}>" style="vertical-align:middle;" />
        <{/if}>
      </td>
    </tr>
  <{/foreach}>
  <tr class="foot">
    <td colspan="2"></td>
    <td>
      <input type="submit" value="<{$smarty.const._SUBMIT}>" class="formButton" name="submit" />
    </td>
    <td></td>
  </tr>
</table>
</form>
