public function index($params){
		
		parent::set('active', 'zaposlenje');
		
		parent::set('pos', $this->db->getPositions());
		
		parent::defaultJs(array('carriere'));
	}
	public function index($params){
		
		parent::set('active', 'rezervacije');
		parent::set('at', $this->db->getAccomodationTypes());
		
		parent::defaultJs(array('online_booking', 'ui.datepicker'));
		parent::defaultCss(array('datepicker'));
	}
	public function edit($params){
		//Check session user
		parent::userInfoAndSession();
		
		if(isset($params['step']) && !empty($params['step'])){
			switch(strtolower($params['step'])){
				case 'first':
					$e = $this->db->getAccomodationType($params);
					//Check for image of event
					$eName = $this->db->getOldFileName($params['id']);
					$e = array_merge($e, array('image' => $eName['image']));
					
					parent::set('type', $e); 
					parent::set('destination', $this->db->getDestinations());
					parent::set('transport', $this->db->getTransport());
				break;
				case 'second':
					parent::defaultJs(array('ui.datepicker'));
					parent::defaultCss(array('datepicker'));
					parent::set('output', $this->db->getDates($params));	
				break;
				case 'third':
					parent::set('transport', $this->db->getSelectedTransport($params));
					parent::set('price', $this->db->getSetDatePrices($params));
				break;
				default: 
			}
		}else{
			
			$e = $this->db->getAccomodationType($params);
			//Check for image of event
			$eName = $this->db->getOldFileName($params['id']);
			$e = array_merge($e, array('image' => $eName['image']));
			
			parent::set('type', $e); 
			parent::set('destination', $this->db->getDestinations());
			parent::set('transport', $this->db->getTransport());
		}
		
		//Set page
		parent::set('active', 'accomodation_type');
		
		//Set action
		$params = array_merge($params, array('action' => 'edit'));
		parent::set('params', $params);
	}