Location: PHPKode > projects > Chalange > com_chalange/administrator/views/categoriesadmin/tmpl/default.php
<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php JHTML::_('behavior.tooltip'); ?>

<?php
	JToolBarHelper::title( JText::_( 'Categories Manager' ), 'plugin.png' );
	JToolBarHelper::editList();
	JToolBarHelper::deleteList();
	JToolBarHelper::addNew();
	JToolBarHelper::help( 'screen.plugins' );
	$ordering = ($this->lists['order'] == 'p.folder' || $this->lists['order'] == 'p.ordering');
	$rows =& $this->items;

?>
<form action="index.php" method="post" name="adminForm">
	<table class="adminlist">
		<thead>
		<?php $n= count($this->categories); ?>
		<tr>
			<th width="20">
				<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo $n;?>);"/>
			</th>
			<th width="5"> ID </th>
			<th> <?php echo JText::_('Description')?></th>
			<th> <?php echo JText::_('genre')?></th>
		</tr>
		</thead>
		<?php 
			$k=0;
			for ($i=0; $i<$n; $i++){
				$row=& $this->categories[$i];
				$checked=JHTML::_('grid.id',$i,$row->id);
				$link='index.php?option=com_chalange&view=categoryAdmin&task=edit&cid[]='.$row->id;
		?>
		<tr class="<?php echo "row$k";?>">
			<td>
				<?php echo $checked;?>
			</td>
			<td>
				<?php echo $row->id;?>
			</td>
			<td>
				<a href="<?php echo $link?>"><?php echo $row->description;?></a>
			</td>
			<td>
				<?php echo JText::_('genre'.$row->genre);?>
			</td>
		</tr>
		<?php
				$k=1-$k; 
			}
		?>
	</table>
	<input type="hidden" name="option" value="com_chalange"/> 
	<input type="hidden" name="task" value=""/> 
	<input type="hidden" name="boxchecked" value="0"/> 
	<input type="hidden" name="controller" value="categories"/> 
</form>
Return current item: Chalange