Location: PHPKode > projects > HikaShop > front/views/product/tmpl/listing_list.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');
?>
<?php if($this->params->get('show_limit') && $this->pageInfo->elements->total){ ?>
<form action="<?php echo hikashop::completeLink(JRequest::getWord('ctrl').'&task='.JRequest::getWord('task').$this->itemid.'&cid='.reset($this->pageInfo->filter->cid)); ?>" method="post" name="adminForm_<?php echo $this->params->get('main_div_name').$this->category_selected;?>">
	<div class="hikashop_products_pagination">
	<?php echo $this->pagination->getListFooter(); ?>
	<span class="hikashop_results_counter"><?php echo $this->pagination->getResultsCounter(); ?></span>
	</div>
	<input type="hidden" name="filter_order_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
	<input type="hidden" name="filter_order_Dir_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php } ?>
<div class="hikashop_products" style="clear:both">
	<ul class="hikashop_product_list<?php echo $this->params->get('ul_class_name'); ?>">
	<?php 
		$width = (int)(100/$this->params->get('columns'));
		if(!empty($this->rows)){
			foreach($this->rows as $row){
				$link = hikashop::completeLink('product&task=show&cid='.$row->product_id.'&name='.$row->alias.$this->itemid.$this->category_pathway);
				?>
				<li class="hikashop_product_list_item" style="float:left;width:<?php echo $width;?>%;">
					<?php if($this->params->get('link_to_product_page',1)){ ?>
						<a href="<?php echo $link; ?>" class="hikashop_product_name_in_list">
					<?php }
						echo $row->product_name;
						if($this->params->get('show_price')){
							$this->row =& $row;
							$this->setLayout('listing_price');
							echo '&nbsp;'.$this->loadTemplate();
						} 
					if($this->params->get('link_to_product_page',1)){ ?>
						</a>
					<?php 
					}
					if($this->params->get('add_to_cart') && !empty($this->row->prices)){
						?><form action="<?php echo hikashop::completeLink('product&task=updatecart'); ?>" method="post" name="hikashop_product_form_<?php echo $this->row->product_id.'_'.$this->params->get('main_div_name'); ?>"><?php 
							$this->setLayout('quantity');
							echo $this->loadTemplate();
							?>
							<input type="hidden" name="product_id" value="<?php echo $this->row->product_id; ?>" />
							<input type="hidden" name="add" value="1"/>
							<input type="hidden" name="ctrl" value="product"/>
							<input type="hidden" name="task" value="updatecart"/>
						</form><?php 
					}
					?>
				</li>
				<?php 
			}
		}
	?>
	</ul>
</div>
Return current item: HikaShop