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

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

<div class="tips"><{$smarty.const._AD_LEGACYRENDER_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" method="post" >
<table class="outer">
  <tr>
    <th><{$smarty.const._AD_LEGACYRENDER_LANG_THEME}></th>
    <th><{$smarty.const._AD_LEGACYRENDER_LANG_PACKAGE}></th>
    <th colspan="2"><{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}></th>
  </tr>
  <{foreach item=theme from=$themes}>
    <{xoops_token form=$actionForm}>
    <{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->mPackage.Theme.ScreenShot}>
          <img src="<{$smarty.const.XOOPS_THEME_URL}>/<{$theme->get('name')}>/<{$theme->mPackage.Theme.ScreenShot}>" alt="<{$theme->get('name')}>" title="<{$theme->get('name')}>" width="120" height="90" /><br/>
        <{/if}>
        <!--- Sorry, please modify the following line --->
        <b><{$theme->getShow('name')}></b>
      </td>
      <td style="text-align:left;">
        <{if $theme->mPackage}>
          <ul>
            <li><{$smarty.const._AD_LEGACYRENDER_LANG_VERSION}> <{$theme->mPackage.Manifesto.Version}></li>
            <li><{$smarty.const._AD_LEGACYRENDER_LANG_AUTHOR}> <{$theme->mPackage.Theme.Author}></li>
            <li><{$smarty.const._AD_LEGACYRENDER_LANG_W3C}> <{$theme->mPackage.Theme.W3C}></li>
            <li><{$theme->mPackage.Theme.Description}></li>
            <{if $theme->mPackage.Manifesto.Url}>
              <li><a href="<{$theme->mPackage.Manifesto.Url}>"><{$smarty.const._AD_LEGACYRENDER_LANG_GET_ADDRESS}></a></li>
            <{/if}>
          </ul>
        <{else}>
          <{$smarty.const._AD_LEGACYRENDER_MESSAGE_NO_PACKAGE}>
        <{/if}>
      </td>
      <td>
        <input type="checkbox" name="select[<{$theme->get('id')}>]" value="1" <{if $actionForm->get('select', $theme->get('id'))}>checked<{/if}>/>
      </td>
      <td>
        <{if $currentThemeName!=$theme->get('name')}>
          <input name="choose[<{$theme->get('name')|escape}>]" 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}>
        <img src="<{'icons/info.gif'|theme}>" alt="<{$smarty.const._AD_LEGACYRENDER_LANG_INFORMATION}>" title="<{$smarty.const._AD_LEGACYRENDER_LANG_INFORMATION}>" style="vertical-align:middle;" />
      </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>
