<?php echo  $this->a_this->fetchTemplate('um_list_js'); ?>

<form name="FilterForm" id="FilterForm" action="index.php" method="get">
<input type="hidden" name="md" value='Affiliate_Merchants_Views_AffiliateManager' />
<input type="hidden" id="action" name="action" value="" />
<input type="hidden" name="filtered" value="1" />
<input type="hidden" id="sortby" name="sortby" value="<?php echo $_REQUEST['sortby']?>">
<input type="hidden" id="sortorder" name="sortorder" value="<?php echo $_REQUEST['sortorder']?>" />
<input type="hidden" id="list_page" name="list_page" value='<?php echo $_REQUEST['list_page']?>' />
<input type="hidden" name="numrows" value="<?php echo $_REQUEST['numrows']?>" />

<!-- top info table start -->
<table cellpadding="5" cellspacing="0" border="0" width="780" height="150">
<tr>
    <td width="50%" valign="top">
        <?php echo L_G_AFFILIATE_DESCRIPTION; ?>
        <?php //QUnit_Global::includeTemplate('um_actions.tpl.php'); ?>
    </td>
    <td width="50%" align="right" valign="top">
        <?php showLoadedDataDiv("index_cache.php?md=Affiliate_Merchants_Views_AffiliateManager&action=showaffstats", true); ?>
    </td>
</tr>
</table>
<!-- top info table end -->

<?php   //if export affiliates...
if($this->a_exportFileName != '') { ?>
<table class="listing mt10" border="0" cellspacing="0" cellpadding="5" width="780">
<?php QUnit_Templates::printFilter(1, L_G_EXPORTTOCSV); ?>
<tr>
    <td align="center"><?php echo L_G_DOWNLOADCSV; ?><p><a class="textlink" href="<?php echo $this->a_Auth->getSetting('Aff_export_url').$this->a_exportFileName?>"><b><?php echo $this->a_exportFileName?></b></a></p></td>
</tr>
</table>
<?php } ?>


<?php QUnit_Global::includeTemplate('um_filter.tpl.php');   //搜索条件表格 ?>
</form>

<form name="ListForm" id="ListForm" action="index.php" method="POST">
<table class="mt10" cellpadding="2" cellspacing="0" border="0" width="780">
<tr><td colspan="2">
    <table class="tblist">
		<tr class="header"><?php $this->a_this->printListHeader(); ?></tr>
        <?php
        if($this->a_allcount == 0) {
            $this->a_this->printNoRecords();
        } else {
            while($row = $this->a_list_data->getNextRecord())
            {
        ?>
            <tr class=listresult onMouseover="this.className='listresultMouseOver'" onMouseOut="this.className='listresult';">
                <?php $this->a_this->printListRow($row); ?>
            </tr>
        <?php
            }
        }
        ?>
        <tr><?php $this->a_this->printMassAction('listheaderLeft', true); ?></tr>
		</table>
</td></tr>
<tr>
    <td align="center" ><?php QUnit_Templates::printPaging($this->a_list_page, $this->a_list_pages, $this->a_allcount) ?></td>
</tr>
</table>


<input type="hidden" name="fromprofile" value="<?php echo $_REQUEST['fromprofile']?>">
<input type="hidden" name="umprof_status" value="<?php echo $_REQUEST['umprof_status']?>">
<input type="hidden" name="md" value='Affiliate_Merchants_Views_AffiliateManager'>
<input type="hidden" name="commited" value='yes'>
<input type="hidden" name="massaction" id="massaction" value="">
</form>
