Location: PHPKode > projects > HikaShop > back/types/tax.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');
?>
<?php
class hikashopTaxType{
	function load($form){
		$this->values = array();
		$this->values[] = JHTML::_('select.option', '',JText::_('ALL_CUSTOMER_TYPES'));
		$this->values[] = JHTML::_('select.option', 'individual',JText::_('INDIVIDUAL'));
		$this->values[] = JHTML::_('select.option', 'company_without_vat_number',JText::_('COMPANY_WITHOUT_VAT_NUMBER'));
		$this->values[] = JHTML::_('select.option', 'company_with_vat_number',JText::_('COMPANY_WITH_VAT_NUMBER'));
	}
	function display($map,$value,$form=true){
		$this->load($form);
		$options = 'class="inputbox" size="1"';
		if(!$form){
			$options .=' onchange="document.adminForm.submit();"';
		}
		return JHTML::_('select.genericlist',   $this->values, $map, $options, 'value', 'text', $value );
	}
}
Return current item: HikaShop