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


<form class="mt10" action="index.php" method="get">
    <input type="hidden" name="md" value="Affiliate_Merchants_Views_PZoneArticleCates" />
    <input type="hidden" name="action" value="add" />
    <input type="submit" class="btn" value="<?php echo L_G_PZONE_ADDARTICLECATES; ?>" />
</form>
<div class="clear"></div>


<form id="listform" action="" method="POST">
<table class="tblist mt10" cellspacing="0" cellpadding="0" border="0" width="780">
<tr class="header">
<td width="10%" align="center"><?php echo L_G_SELSELECT; ?></td>
<td width="20%"><?php echo L_G_OTHER_NAME; ?></td>
<td width="35%"><?php echo L_G_AFFSIGNUPFORMAT_DESCRIPTION; ?></td>
<td width="12%" align="center"><?php echo L_G_PZONE_SHOW2NAV; ?></td>
<td width="15%" align="center"><?php echo L_G_PZONE_ADDTIME; ?></td>
<td width="8%" align="center"><?php echo L_G_ACTION; ?></td>
</tr>
<?php
$tr = '<tr onMouseover="this.className=\'listresultMouseOver\'" onMouseOut="this.className=\'listresult\';" class="detailrow%s"><td align="center"><input class="%s" type="checkbox" value="%s" name="checkeditems[]" %s /></td><td>%s</td><td>%s</td><td align="center">%s</td><td align="center">%s</td><td align="center"><a href="index.php?md=Affiliate_Merchants_Views_PZoneArticleCates&action=edit&id=%s" title="'.L_G_EDIT.'"><img  src="'.QUnit_UI_TemplatePage::getImage('edit.gif').'" /></a></td></tr>';
foreach($this->listdata as $key=>$row) {
    $i = $key%2;
    $counts = !empty($row['articlecounts'])?'('.$row['articlecounts'].')':'';
    echo sprintf($tr,
        $i,
        $row['ID']=='syscates'?'':'checkbox',
        $row['ID'],
        $row['ID']=='syscates'?'disabled="disabled"':'',
        htmlspecialchars($row['catename']).$counts,
        empty($row['catedesc'])?'------':htmlspecialchars($row['catedesc']),
        $row['show2nav']=='yes'?L_G_YES:L_G_NO,
        $row['dateinserted'],
        $row['ID']
    );
}
?>
<tr class="header">
<td width="30%" colspan="2" 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="70%" colspan="4" 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_PZoneArticleCates&page=<?php echo $this->page-1;?>"><?php echo L_G_PREPAGE; ?></a>
<a href="index.php?md=Affiliate_Merchants_Views_PZoneArticleCates&page=<?php echo $this->page+1;?>"><?php echo L_G_NEXTPAGE; ?></a> <input id="gopage" type="text" value="<?php echo $this->page+1;?>" style="width:30px;text-align:center;" />
<a id="jumpage" href="javascript:;"><?php echo L_G_REDIRECT;?></a></td>
</tr>
</table></form>