
<form id="listform" action="" method="POST">
<table class="tblist" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr class="header"><th width="10%">ID</th><th width="15%"><?php echo L_G_REMARK;?></th><th width="73%"><?php echo L_G_DYNAMICLINKHTMLCODE; ?></th></tr>
<?php
$tr = '<tr onmouseout="this.className=\'listresult\';" onmouseover="this.className=\'listresultMouseOver\'" class="detailrow%s"><td>%s</td><td>%s</td><td><input class="htmlcode" type="text" value="%s" readonly="readonly" /></td></tr>';
$htmlcode = '<a href="%st.php?a_aid=%s&amp;a_bid=&amp;desturl=%s"><b>%s</b><br/>%s<img src="%ssb.php?a_aid=%s&amp;a_bid=" width="1" height="1" border="0" /></a>';
$scripts_url = urlencode($GLOBALS['Auth']->getSetting('Aff_scripts_url'));
foreach($this->listdata as $key=>$row) {
    $i = $key%2;
    $html = sprintf($htmlcode,
        $scripts_url,
        $GLOBALS['Auth']->userID,
        urlencode($row['target']),
        $row['subject'],
        $row['contentext'],
        $scripts_url,
        $GLOBALS['Auth']->userID
    );
    echo sprintf($tr,$i,$row['dlid'],$row['remark'],htmlspecialchars($html));
}
?>
<tr class="header">
<td width="98%" colspan="3" align="center">
<?php echo sprintf(L_G_PAGENAV,$this->page,$this->totalpage,$this->limit,$this->total);?>
<a href="index.php?md=Affiliate_Affiliates_Views_DynamicLink&action=merchants&page=<?php echo $this->page-1;?>"><?php echo L_G_PREPAGE;?></a>
<a href="index.php?md=Affiliate_Affiliates_Views_DynamicLink&action=merchants&page=<?php echo $this->page+1;?>"><?php echo L_G_NEXTPAGE;?></a> <input id="gopage" type="text" value="<?php echo $this->page+1;?>" />
<a id="jumpage" href="javascript:;"><?php echo L_G_REDIRECT;?></a></td>
</tr>
</table></form>