
<h3><?php echo L_G_MANAGE_DYNLINK; ?></h3>
<p><?php echo L_G_MANAGE_DESCDYNLINK; ?></p>

<div class="mt10">
    <input class="btn" type="button" value="<?php echo L_G_ADD_DYNLINK;?>" onclick="javascript:window.location.href='index.php?md=Affiliate_Merchants_Views_DynamicLink&action=add';" />
</div>


<form id="listform" action="" method="POST">
<table class="tblist mt10" cellspacing="0" cellpadding="0" border="0" width="98%">
<tr class="header">
<td width="5%" align="center"><?php echo L_G_DELETE; ?></td>
<td width="22%"><?php echo L_G_TARGETURL; ?></td>
<td width="22%"><?php echo L_G_TITLE; ?></td>
<td width="22%"><?php echo L_G_DESCRIPTION; ?></td>
<td width="22%"><?php echo L_G_REMARK; ?></td>
<td width="5%" align="center"><?php echo L_G_ACTION; ?></td>
</tr>
<?php
$tr = '<tr onmouseout="this.className=\'listresult\';" onmouseover="this.className=\'listresultMouseOver\'" class="detailrow%s"><td align="center"><input class="checkbox" type="checkbox" value="%s" name="checkeditems[]" /></td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td align="center"><a href="index.php?md=Affiliate_Merchants_Views_DynamicLink&action=edit&id=%s"><img src="'.QUnit_UI_TemplatePage::getImage('edit.gif').'" title="'.L_G_EDIT.'" /></a></td></tr>';
foreach($this->listdata as $key=>$row) {
    $i = $key%2;
    echo sprintf($tr,
        $i,
        $row['dlid'],
        htmlspecialchars($row['target']),
        htmlspecialchars($row['subject']),
        htmlspecialchars($row['contentext']),
        $row['remark'],
        $row['dlid']
    );
}
?>
<tr class="header">
<td width="49%" colspan="3" style="border-color:#B3CED9;">
<a id="selectall" href="javascript:;"><?php echo L_G_SELALL;?></a> /
<a id="unselectall" href="javascript:;"><?php echo L_G_SELNONE;?></a> /
<a id="antiselect" href="javascript:;"><?php echo L_G_ANISEL;?></a>
<a id="delete" href="javascript:;"><?php echo L_G_DELSEL;?></a>
<input type="hidden" value="yes" name="commited" />
<input type="hidden" value="delete" name="action" />
</td>
<td width="49%" colspan="3" style="border-color:#B3CED9;" align="right">
<?php echo sprintf(L_G_PAGENAV,$this->page,$this->totalpage,$this->limit,$this->total);?>
<a href="index.php?md=Affiliate_Merchants_Views_DynamicLink&page=<?php echo $this->page-1;?>"><?php echo L_G_PREPAGE;?></a>
<a href="index.php?md=Affiliate_Merchants_Views_DynamicLink&page=<?php echo $this->page+1;?>"><?php echo L_G_NEXTPAGE;?></a> <input style="width:30px;text-align:center;" 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>