<?php
//global $Debug;$Debug = true;
class ShoppingStatusView extends Slot {

	var $ModuleID = 3;
	var $SectionID = 1;
	var $entry = array();
	var $module = 0;
  	var $prodFlag = 0;

   	function Constructor($args) {
		parent::Constructor($args);
	}

	function init() {
		global $Server; 
		//$Action = $_SESSION['Server']->getAction(2);
		$handler = $Server->getHandler(22);
		$this->PreparedTemplates = $handler->getShoppingStatus(array());
//		$this->Action->processEvent($this->SectionID,'getcart_status',array(),$this);
	}

	function fillElements() {
	    if($this->PreparedTemplates['qty']) {
            $this->TempFillEls['qty'] = $this->PreparedTemplates['qty'];
		    $this->TempFillEls['total'] = number_format((empty($this->PreparedTemplates['total'])? 0: $this->PreparedTemplates['total'] ) ,2);
            $this->TempFillEls['display'] = '';
        } else $this->TempFillEls['display'] = 'hidden';
	}

}
?>