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


<!-- top info start -->
<table class="mt10" cellpadding="0" cellspacing="0" border="0" width="780">
<tr>
    <td width="50%" valign="top"><?php echo L_G_TRANSACTION_DESCRIPTION?></td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td width="50%" align="right"><?php showLoadedDataDiv("index_cache.php?md=Affiliate_Merchants_Views_TransactionManager&action=showtransactionstats", true); ?></td>
</tr>
</table>
<!-- top info end -->


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


<!-- filter form start -->
<form name="FilterForm" id="FilterForm" action="index.php" method="GET">
<input type="hidden" name="md" value='Affiliate_Merchants_Views_TransactionManager' />
<input type="hidden" name="type" value="all" />
<input type="hidden" name="filtered" value="1" />
<input type="hidden" id="list_page" name="list_page" value="<?php echo $_REQUEST['list_page']?>" />
<input type="hidden" id="action" name="action" value='' />
<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" name="numrows" value="<?php echo $_REQUEST['numrows']?>" />
<?php QUnit_Global::includeTemplate('tm_filter.tpl.php'); //搜索表格 ?>
</form>
<!-- filter form end -->

<!-- filter form end -->
<form name="ListForm" id="ListForm" action="index.php" method="POST">
<table class="mt10" cellpadding="0" cellspacing="0" border="0" width="780">
<tr><td>
    <table class="tblist mt10 mb10">
    <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=tmdl_status value="<?php echo $_REQUEST['tmdl_status']?>">
<input type="hidden" name=md value='Affiliate_Merchants_Views_TransactionManager'>
<input type="hidden" name=commited value='yes'>
<input type="hidden" name="massaction" id="massaction" value="">
</form>
<!-- filter form end -->




