Location: PHPKode > projects > HikaShop > back/views/product/tmpl/addcategory.php
<?php
/**
 * @package		HikaShop for Joomla!
 * @version		1.4.3
 * @author		hikashop.com
 * @copyright	(C) 2010 HIKARI SOFTWARE. All rights reserved.
 * @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>
<table class="adminlist" cellpadding="1" width="100%">
	<tbody id="result">
	<?php
	$k = 0;
				for($i = 0,$a = count($this->rows);$i<$a;$i++){
					$row =& $this->rows[$i];
					$id=rand();
					?>
					<tr id="category_<?php echo $row->category_id.'_'.$id;?>">
						<td>
							<a href="<?php echo hikashop::completeLink('category&task=edit&cid='.$row->category_id); ?>"><?php echo $row->category_name; ?></a>
						</td>
						<td align="center">
							<a href="#" onclick="return deleteRow('category_div_<?php echo $row->category_id.'_'.$id;?>','category[<?php echo $row->category_id;?>][<?php echo $id;?>]','category_<?php echo $row->category_id.'_'.$id;?>');"><img src="<?php echo HIKASHOP_IMAGES; ?>delete.png"/></a>
						</td>
						<td width="1%" align="center">
							<?php echo $row->category_id; ?>
							<div id="category_div_<?php echo $row->category_id.'_'.$id;?>">
								<input type="hidden" name="category[<?php echo $row->category_id;?>]" id="category[<?php echo $row->category_id;?>][<?php echo $id;?>]" value="<?php echo $row->category_id;?>"/>
							</div>
						</td>
					</tr>
					<?php 
					$k = 1-$k; 
				}	
	?>
	</tbody>
</table>
Return current item: HikaShop