<?php 
/**
* @version      4.9.0 13.08.2013
* @author       MAXXmarketing GmbH
* @package      Jshopping
* @copyright    Copyright (C) 2010 webdesigner-profi.de. All rights reserved.
* @license      GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
JHtml::_('bootstrap.tooltip');
$lists=$this->lists;
$jshopConfig=$this->config;
?>
<div id="j-sidebar-container" class="span2">
    <?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php displaySubmenuConfigs('otherconfig');?>
<div class="jshop_edit"> 
<form action="index.php?option=com_jshopping&controller=config" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
<?php print $this->tmp_html_start?>
<input type="hidden" name="task" value="">
<input type="hidden" name="tab" value="10">
<div class="col100">
<fieldset class="adminform">
<legend><?php echo _JSHOP_OC;?></legend>
<table class="admintable table-striped">
<tr>
    <td class="key" style="width:220px">
        <?php echo _JSHOP_EXTENDED_TAX_RULE_FOR?>
    </td>
    <td>
        <?php print $lists['tax_rule_for'];?>
    </td>
</tr>

<tr>
    <td class="key">
        <?php echo _JSHOP_SAVE_ALIAS_AUTOMATICAL?>
    </td>
    <td>
        <input type="hidden" name="create_alias_product_category_auto" value="0">
        <input type="checkbox" name="create_alias_product_category_auto" value="1" <?php if ($jshopConfig->create_alias_product_category_auto) echo 'checked="checked"';?> />
    </td>
</tr>

<?php foreach($this->other_config as $k){?>
<tr>
	<td class="key">
		<?php if (defined("_JSHOP_OC_".$k)) print constant("_JSHOP_OC_".$k); else print $k;?>
	</td>
	<td>
        <?php if (in_array($k, $this->other_config_checkbox)){?>
            <input type="hidden" name="<?php print $k?>" value="0">
            <input type="checkbox" name="<?php print $k?>" value="1" <?php if ($jshopConfig->$k==1) print 'checked'?>>
        <?php }elseif (isset($this->other_config_select[$k])){?>
            <?php 
            $option = array();
            foreach($this->other_config_select[$k] as $k2=>$v2){
                $option_name = $v2;
                if (defined("_JSHOP_OC_".$k."_".$v2)){
                    $option_name = constant("_JSHOP_OC_".$k."_".$v2);
                }
                $option[] = JHTML::_('select.option', $k2, $option_name, 'id', 'name');
            }
            print JHTML::_('select.genericlist', $option, $k, 'class = "inputbox"', 'id', 'name', $jshopConfig->$k);
            ?>
        <?php }else{?>
		    <input type="text" name="<?php print $k?>" value="<?php echo $jshopConfig->$k?>">
        <?php }?>
        
		<?php if (defined("_JSHOP_OC_".$k."_INFO")) echo JHTML::tooltip(constant("_JSHOP_OC_".$k."_INFO"));?>
	</td>
</tr>
<?php } ?>
<?php $pkey="etemplatevar";if ($this->$pkey){print $this->$pkey;}?>
</table>
</fieldset>
</div>
<div class="clr"></div>
<?php print $this->tmp_html_end?>
</form>
</div>
</div>