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

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

<?php QUnit_Global::includeTemplate('filter_pzonearticles.tpl.php'); ?>

<form id="listform" action="" method="POST">
<table class="tblist mt10" cellspacing="0" cellpadding="0" border="0" width="780">
<tr class="header">
<td width="5%" align="center"><?php echo L_G_SELSELECT; ?></td>
<td width="26%"><?php echo L_G_PZONE_ARTICLETITLE; ?></td>
<td width="37%"><?php echo L_G_DESCRIPTION; ?></td>
<td width="12%" align="center"><?php echo L_G_PZONE_SHOW2NAV; ?></td>
<td width="12%" align="center"><?php echo L_G_PZONE_UPDATETIME; ?></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="checkbox" type="checkbox" value="%s" name="checkeditems[]" /></td><td>%s</td><td valign="top">%s</td><td align="center">%s</td><td align="center">%s</td><td align="center"><a href="index.php?md=Affiliate_Merchants_Views_PZoneArticles&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;
    echo sprintf($tr,
        $i,
        $row['ID'],
        '<b>['.htmlspecialchars($row['catename']).']</b> '.$row['title'].'<br /><span style="color:gray;">By: '.$row['author'].'</span>',
        cut_str(strip_tags($row['context']),45),
        $row['show2nav']=='yes'?L_G_YES:L_G_NO,
        $row['postime'],
        $row['ID']
    );
}
?>
<tr class="header">
<td width="31%" 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="69%" 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_PZoneArticles&page=<?php echo $this->page-1;echo $this->searchlink;?>"><?php echo L_G_PREPAGE; ?></a>
<a href="index.php?md=Affiliate_Merchants_Views_PZoneArticles&page=<?php echo $this->page+1;echo $this->searchlink;?>"><?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>