<?php 
/**
* @version      5.0.0 15.09.2018
* @author       MAXXmarketing GmbH
* @package      Jshopping
* @copyright    Copyright (C) 2010 webdesigner-profi.de. All rights reserved.
* @license      GNU/GPL
*/
defined('_JEXEC') or die();

$jshopConfig = \JSFactory::getConfig();
$lists = $this->lists;
\JHTML::_('bootstrap.tooltip');
?>
<div class="row">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<?php \JSHelperAdmin::displaySubmenuConfigs('general');?>
<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="1">

<div class="card jshop_edit">
<h3 class="card-header bg-primary text-white"><?php echo JText::_('JSHOP_GENERAL_PARAMETERS')?></h3>
<div class="card-body">
<table class="admintable table-striped">
<tr>
    <td class="key" style="width:220px">
        <?php echo JText::_('JSHOP_EMAIL_ADMIN')?>
    </td>
    <td>
        <input type="text" name="contact_email" class="inputbox form-control" value="<?php echo $jshopConfig->contact_email;?>" />
		<?php echo \JSHelperAdmin::tooltip(JText::_('JSHOP_EMAIL_ADMIN_INFO'));?>
    </td>
</tr>
<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_DEFAULT_LANGUAGE')?>
    </td>
    <td>
        <?php echo $lists['languages']; ?>
        <?php echo \JSHelperAdmin::tooltip(JText::_('JSHOP_INFO_DEFAULT_LANGUAGE'));?>
    </td>
</tr>
<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_TEMPLATE')?>
    </td>
    <td>
        <?php echo $lists['template'];?>
    </td>
</tr>
<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_DISPLAY_PRICE_ADMIN')?>
    </td>
    <td>
        <?php echo $lists['display_price_admin']; ?>        
    </td>
</tr>
<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_DISPLAY_PRICE_FRONT')?>
    </td>
    <td>
        <?php echo $lists['display_price_front']; ?> 
        <a class="btn btn-small btn-primary" href="index.php?option=com_jshopping&controller=configdisplayprice"><?php print JText::_('JSHOP_EXTENDED_CONFIG')?></a>        
    </td>
</tr>
<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_USE_SSL')?>
    </td>
    <td>
        <input type="hidden" name="use_ssl" value="0">
        <input type="checkbox" name="use_ssl"  value="1" <?php if ($jshopConfig->use_ssl) echo 'checked="checked"';?> />
    </td>
</tr>
<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_SAVE_INFO_TO_LOG')?>
    </td>
    <td>
        <input type="hidden" name="savelog" value="0">
        <input type="checkbox" name="savelog" id="savelog" value="1" <?php if ($jshopConfig->savelog) echo 'checked="checked"';?> onclick="if (!jQuery('#savelog').attr('checked')) jQuery('#savelogpaymentdata').attr('checked',false);" />
    </td>
</tr>
<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_SAVE_PAYMENTINFO_TO_LOG')?>
    </td>
    <td>
        <input type="hidden" name="savelogpaymentdata" value="0">
        <input type="checkbox" name="savelogpaymentdata" id="savelogpaymentdata" value="1" <?php if ($jshopConfig->savelogpaymentdata) echo 'checked="checked"';?> onclick="if (!jQuery('#savelog').attr('checked')) this.checked=false;" />
        <?php echo \JSHelperAdmin::tooltip(JText::_('JSHOP_SAVE_PAYMENTINFO_TO_LOG_INFO'));?>
    </td>
</tr>
<tr>
     <td class="key">
       <?php echo JText::_('JSHOP_STORE_DATE_FORMAT')?>
     </td>
     <td>
       <input size="55" type="text" class="inputbox form-control" name="store_date_format" value="<?php echo $jshopConfig->store_date_format?>" />
     </td>
</tr>
<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_SECURITYKEY')?>
    </td>
    <td>
        <input type="text" name="securitykey" class = "form-control" size="50" value="<?php print $jshopConfig->securitykey;?>" />
        <?php echo \JSHelperAdmin::tooltip(JText::_('JSHOP_INFO_SECURITYKEY'));?>
    </td>
</tr>

<tr>
    <td class="key">
        <?php echo JText::_('JSHOP_LICENSEKEY')?>
    </td>
    <td>
        <input type="text" name="licensekod" class = "form-control" size="50" value="<?php print $jshopConfig->licensekod;?>" />
        <a href="http://www.webdesigner-profi.de/joomla-webdesign/joomla-shop/forum/posts/22/373.html" target="_blank"><?php echo \JSHelperAdmin::tooltip(JText::_('JSHOP_INFO_LICENSEKEY'));?></a>
    </td>
</tr>
<?php $pkey="etemplatevar";if ($this->$pkey){print $this->$pkey;}?>
	
</table>
</div>
</div>
<?php print $this->tmp_html_end?>
</form>
</div>
</div>
</div>