<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.6.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><div class="iframedoc" id="iframedoc"></div>
<form action="<?php echo hikashop_completeLink('tax');?>" method="post"  name="adminForm" id="adminForm">
	<center>
	<table class="admintable">
		<tr>
			<td class="key">
					<?php echo JText::_( 'TAX_NAMEKEY' ); ?>
			</td>
			<td>
				<?php if(empty($this->element->tax_namekey)){?>
					<input type="text" name="data[tax][tax_namekey]" value="" />
				<?php }else{
					echo $this->element->tax_namekey;
					?><input type="hidden" name="data[tax][tax_namekey]" value="<?php echo $this->escape($this->element->tax_namekey ); ?>" /><?php
				}?>
			</td>
		</tr>
		<tr>
			<td class="key">
					<?php echo JText::_( 'RATE' ); ?>
			</td>
			<td>
				<input type="text" name="data[tax][tax_rate]" value="<?php echo $this->escape(@$this->element->tax_rate*100.0 ); ?>" />%
			</td>
		</tr>
<?php
if(!empty($this->extra_blocks['tax'])) {
	foreach($this->extra_blocks['tax'] as $r) {
		if(is_string($r))
			echo $r;
		if(is_object($r)) $r = (array)$r;
		if(is_array($r)) {
			if(!isset($r['name']) && isset($r[0]))
				$r['name'] = $r[0];
			if(!isset($r['value']) && isset($r[1]))
				$r['value'] = $r[1];
?>
		<tr>
			<td class="key"><?php echo JText::_(@$r['name']); ?></td>
			<td><?php echo @$r['value']; ?></td>
		</tr>
<?php
		}
	}
}
?>
	</table>
	</center>
	<div class="clr"></div>

	<input type="hidden" name="option" value="<?php echo HIKASHOP_COMPONENT;?>" />
	<input type="hidden" name="return" value="<?php echo $this->return;?>" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="ctrl" value="<?php echo JRequest::getString('ctrl');?>" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>
