<?php
/**
* @package   yoo_enterprise
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
?>

<form action="<?php echo JRoute::_('index.php?view=category&id='.$this->category->slug); ?>" method="post" name="adminForm">

<?php if ($this->params->get('show_limit')) : ?>
<div class="filter">
	<?php
		echo JText::_('Display Num') .'&nbsp;';
		echo $this->pagination->getLimitBox();
	?>
</div>
<?php endif; ?>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="joomlatable">
	<?php if ( $this->params->get( 'show_headings' ) ) : ?>
	<tr>
		<th align="right" width="5">
			<?php echo JText::_('Num'); ?>
		</th>
		<?php if ( $this->params->get( 'show_name' ) ) : ?>
		<th align="left" width="90%">
			<?php echo JText::_( 'Feed Name' ); ?>
		</th>
		<?php endif; ?>
		<?php if ( $this->params->get( 'show_articles' ) ) : ?>
		<th width="10%" align="center" nowrap="nowrap">
			<?php echo JText::_( 'Num Articles' ); ?>
		</th>
		<?php endif; ?>
	 </tr>
	<?php endif; ?>
	
	<?php foreach ($this->items as $item) : ?>
	<tr class="<?php if ($item->odd) { echo 'even'; } else { echo 'odd'; } ?>">
		<td align="right" width="5">
			<?php echo $item->count + 1; ?>
		</td>
		<td width="90%">
			<a href="<?php echo $item->link; ?>" class="category<?php echo $this->params->get( 'pageclass_sfx' ); ?>"><?php echo $item->name; ?></a>
		</td>
		<?php if ( $this->params->get( 'show_articles' ) ) : ?>
		<td width="10%" align="center">
			<?php echo $item->numarticles; ?>
		</td>
		<?php endif; ?>
	</tr>
	<?php endforeach; ?>

</table>

<div class="pagination">
	<p class="results">
		<?php echo $this->pagination->getPagesCounter(); ?>
	</p>
	<?php echo $this->pagination->getPagesLinks(); ?>
</div>

</form>