<?php
/**
 * @package	HikaShop for Joomla!
 * @version	4.7.4
 * @author	hikashop.com
 * @copyright	(C) 2010-2023 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
class hikashopViewType{
	function load(){
		$this->values = array();
		$this->values[] = JHTML::_('select.option', 2,JText::_('FRONT_END_AND_BACK_END'));
		$this->values[] = JHTML::_('select.option', 0,JText::_('FRONT_END'));
		$this->values[] = JHTML::_('select.option', 1,JText::_('BACK_END'));
	}
	function display($map,$value){
		$this->load();
		return JHTML::_('select.genericlist',   $this->values, $map, 'class="custom-select" size="1" onchange="document.adminForm.submit();return false;"', 'value', 'text', (int)$value );
	}
}
