Location: PHPKode > projects > HikaShop > front/views/checkout/tmpl/step.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');
?>
<div id="hikashop_checkout_page" class="hikashop_checkout_page">
	<?php 
	global $Itemid;
	$url_itemid='';
	if(!empty($Itemid)){
		$url_itemid='&Itemid='.$Itemid;
	}
	if($this->display_checkout_bar){
		?>
			<div id="hikashop_cart_bar" class="hikashop_cart_bar">
			<?php 
			$already=true;
			foreach($this->steps as $k => $step){
				$step=explode('_',trim($step));
				$step_name = reset($step);
				if($this->display_checkout_bar==2 && $step_name=='end'){
					continue;
				}
				$class = '';
				if($k==$this->step){
					$already=false;
					$class .= ' hikashop_cart_step_current';
				}
				if($already){
					$class .= ' hikashop_cart_step_finished';
				}
			?>	<div class="hikashop_cart_step<?php echo $class;?>">
					<span>
					<?php if($k==$this->step){ ?>
							<?php echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name));?>
					<?php }else{ ?>
						<a href="<?php echo hikashop::completeLink('checkout&step='.$k.$url_itemid);?>">
							<?php echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name));?>
						</a>
					<?php } ?>
					</span>
				</div><?php 
			}
			?>
			</div>
		<?php
	}
	if(empty($this->noform)){
		?>
		<form action="<?php echo hikashop::completeLink('checkout&task=step'.$url_itemid); ?>" method="post" name="hikashop_checkout_form" enctype="multipart/form-data">
		<?php
	}
	$this->nextButton = true;
	foreach($this->layouts as $layout){
		$layout=trim($layout);
		if($layout=='end'){
			$this->continueShopping='';
		}
		$this->setLayout($layout);
		echo $this->loadTemplate();
	}
	if(empty($this->noform)){
		?>
		<input type="hidden" name="ctrl" value="checkout"/>
		<input type="hidden" name="task" value="step"/>
		<input type="hidden" name="previous" value="<?php echo $this->step; ?>"/>
		<input type="hidden" name="step" value="<?php echo $this->step+1; ?>"/>
		<?php echo JHTML::_( 'form.token' ); ?>
		<br style="clear:both"/>
		<?php 
		if($this->continueShopping){
			if(strpos($this->continueShopping,'Itemid')===false){
				if(strpos($this->continueShopping,'index.php?')!==false){
					$this->continueShopping.=$url_itemid;
				}
			}
			echo $this->cart->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,JRoute::_($this->continueShopping),'window.location=\''.JRoute::_($this->continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"');
		}
		if($this->nextButton){
			echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\'))document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"');
		}
		?>
		</form>
		<?php 
	}
	?>
</div>
<div class="clear_both"></div>
<?php 
if(JRequest::getWord('tmpl','')=='component'){
	exit;
}
Return current item: HikaShop