<?php

class JSZoneView extends Slot {

	var $ModuleID = 1;
	var $SectionID = 14;
	var $module = 'Product';
	var $type = 1;
	var $item = 1;

	function __construct($pquery) {
		parent::__construct($pquery);
	}

	function init() {
		global $REGISTRY;
		if(!empty($REGISTRY['Page']['id'])) $this->Action->processEvent($this->SectionID,'open_js',array('class' => ucfirst($REGISTRY['Page']['entity']), 'module' => $REGISTRY['Page']['id'],'type' => $this->ID),$this);
	}

	function fillElements() {		
		foreach($this->PreparedTemplates as $key => $value) {
			if($value['type']['id']==$this->ID) {
				
				$this->TempFillEls = array(
					'type' => $value['type']['name'],
					'body' => $value['value'],
				);
			}
		}
	}
}
?>