
    <h3><?php echo L_G_PZONE_CHOOSETHEME; ?></h3>
    <div style="width:600px;"><p><?php echo L_G_PZONE_THEMES_DESC; ?></p></div>

    <form action="" method="post">
    <table class="listing tb2 mt10" width="760" border=0 cellspacing=0 cellpadding=3>
    <?php QUnit_Templates::printFilter(3, L_G_PZONE_CHOOSETHEME) ?>

    <?php
        foreach($this->a_themes as $theme) {
            $imgext = array('bmp','gif','jpg','jpeg','png');
            $shortcut_dir = '../templates/pzone/'.$theme['name'].'/shortcut.';
            foreach($imgext as $ext) {
                if(file_exists($shortcut = $shortcut_dir.$ext)) {
                    break;
                }
            }
            $ck = $theme['name']==$this->a_settings['theme']['svalue']?'checked="checked"':"";
    ?>

    <tr onMouseover="this.className='listresultMouseOver'" onMouseOut="this.className='listresult';">
      <td class="listheaderNoLineLeft" width="100"><center><input type=radio name=currtheme value="<?php echo $theme['name'];?>" <?php echo $ck; ?> /></center></td>
      <td width="300"><a href="../" target="_blank" title="<?php echo L_G_PZONE_DISPLAY; ?>"><img src="<?php echo $shortcut;?>" width="300" height="160" /></a></td>
      <td valign="top" style="color:gray;">
        <?php if(is_array($theme['data'])) echo join('<br />',$theme['data']);?>
      </td>
    </tr>

    <?php } ?>

    <tr>
      <td class="listheaderNoLineLeft" align=center colspan=3><center>
          <input type=hidden name="md" value="Affiliate_Merchants_Views_PZoneThemes">
          <input type=hidden name="action" value="changetheme">
          <input type=hidden name="commited" value="yes">
          <input type=hidden name="id" value="<?php echo $this->a_settings['theme']['ID'];?>">
          <input type=submit class=formbutton value='<?php echo L_G_SUBMIT?>'></center>
      </td>
    </tr>
    </table>
    </form>
