Location: PHPKode > projects > HikaShop > back/views/config/tmpl/display.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');
?>
<div id="page-modules">
	<table width="100%">
		<tr>
			<td valign="top">
				<fieldset class="adminform">
					<legend><?php echo JText::_( 'GENERAL_DISPLAY_OPTIONS' ); ?></legend>
					<table class="admintable" cellspacing="1">
						<tr>
							<td class="key">
									<?php echo JText::_('DISPLAY_CHECKOUT_BAR'); ?>
							</td>
							<td>
								<?php echo $this->checkout->display('config[display_checkout_bar]',$this->config->get('display_checkout_bar')); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('BUTTON_STYLE'); ?>
							</td>
							<td>
								<?php echo $this->button->display('config[button_style]',$this->config->get('button_style')); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('MENU_STYLE'); ?>
							</td>
							<td>
								<?php echo $this->menu_style->display('config[menu_style]',$this->config->get('menu_style')); ?>
							</td>
						</tr>
						<?php 
						$no_checked='';
						$jcomments_checked='';
						$jomcomment_checked='';
						switch($this->config->get('comments_feature')){
							default:
								$no_checked = ' CHECKED';
								break;
							case 'jcomments':
								$jcomments_checked = ' CHECKED';
								break;
							case 'jomcomment':
								$jomcomment_checked = ' CHECKED';
								break;
						}
						$jcomments_disable='';
						if(!file_exists(HIKASHOP_ROOT.'components'.DS.'com_jcomments'.DS.'jcomments.php')){
							$jcomments_disable=' DISABLED';
						}
						$jom_comment_disable='';
						if(!file_exists(HIKASHOP_ROOT.'plugins'.DS.'content'.DS.'jom_comment_bot.php')){
							$jom_comment_disable=' DISABLED';
						}	 ?>
						<tr>
							<td class="key" >
							<?php echo JText::_('COMMENTS_ENABLED_ON_PRODUCTS'); ?>
							</td>
							<td>
								<input name="config[comments_feature]" id="config[comments_feature]" value=""<?php echo $no_checked;?> size="1" type="radio">
								<label for="config[comments_feature]"><?php echo JText::_('HIKASHOP_NO');?></label>
								<input name="config[comments_feature]" id="config[comments_feature]jcomments" value="jcomments"<?php echo $jcomments_checked;?> size="1" type="radio"<?php echo $jcomments_disable;?>>
								<label for="config[comments_feature]jcomments">jComments</label>
								<input name="config[comments_feature]" id="config[comments_feature]jomcomment" value="jomcomment"<?php echo $jomcomment_checked;?> size="1" type="radio"<?php echo $jom_comment_disable;?>>
								<label for="config[comments_feature]jomcomment">jomComment</label>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('PRODUCT_SHOW_MODULES'); ?>
							</td>
							<td>
								<input type="hidden" name="config[product_show_modules]'; ?>" id="menumodules"  value="<?php echo $this->config->get('product_show_modules'); ?>" />
								<a id="linkmenumodules" title="<?php echo JText::_('SELECT_MODULES'); ?>"  href="" rel="{handler: 'iframe', size: {x: 650, y: 375}}" onclick="this.href='<?php echo hikashop::completeLink('modules&task=selectmodules&control=menu&name=modules',true); ?>&modules='+document.getElementById('menumodules').value;SqueezeBox.fromElement(this,{parse: 'rel'});return false;">
									<button onclick="return false"><?php echo JText::_('SELECT'); ?></button>
								</a>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('CHARACTERISTICS_DISPLAY'); ?>
							</td>
							<td>
								<?php echo $this->characteristicdisplayType->display('config[characteristic_display]',$this->config->get('characteristic_display'));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('CHARACTERISTICS_VALUES_ORDER'); ?>
							</td>
							<td>
								<?php echo $this->characteristicorderType->display('config[characteristics_values_sorting]',$this->config->get('characteristics_values_sorting'));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('APPEND_CHARACTERISTICS_VALUE_TO_PRODUCT_NAME'); ?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[append_characteristic_values_to_product_name]','',$this->config->get('append_characteristic_values_to_product_name',1));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('CHARACTERISTICS_DISPLAY_TEXT'); ?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[characteristic_display_text]','',$this->config->get('characteristic_display_text'));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('CATALOGUE_MODE'); ?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[catalogue]','',$this->config->get('catalogue'));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('QUANTITY_FIELD'); ?>
							</td>
							<td>
								<?php echo $this->quantity->display('config[show_quantity_field]',$this->config->get('show_quantity_field'));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('CHECKOUT_SHOW_CART_DELETE'); ?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[checkout_cart_delete]','',$this->config->get('checkout_cart_delete'));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('CONTINUE_SHOPPING_BUTTON_URL');?>
							</td>
							<td>
								<input name="config[continue_shopping]" type="text" value="<?php echo $this->config->get('continue_shopping');?>" />
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('AFTER_ADD_TO_CART'); ?>
							</td>
							<td>
								<?php echo $this->cart_redirect->display('config[redirect_url_after_add_cart]',$this->config->get('redirect_url_after_add_cart'));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('FORCE_MENU_ON_CHECKOUT'); ?>
							</td>
							<td>
								<?php echo $this->elements->hikashop_menu;?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('AUTO_SUBMIT_SHIPPING_AND_PAYMENT_SELECTION'); ?>
							</td>
							<td>
								<?php 	echo JHTML::_('select.booleanlist', 'config[auto_submit_methods]','',$this->config->get('auto_submit_methods',1)); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('WHEN_CART_IS_EMPTY'); ?>
							</td>
							<td>
								<input name="config[redirect_url_when_cart_is_empty]" value="<?php echo $this->escape($this->config->get('redirect_url_when_cart_is_empty'));?>"/>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('LIMIT_NUMBER_OF_ITEMS_IN_CART'); ?>
							</td>
							<td>
								<?php 
								if(hikashop::level(1)){
									$item_limit = $this->config->get('cart_item_limit',0);
									if(empty($item_limit)){
										$item_limit = JText::_('UNLIMITED');
									}
									?>
									<input name="config[cart_item_limit]" type="text" value="<?php echo $item_limit;?>" onfocus="if(this.value=='<?php echo JText::_('UNLIMITED',true); ?>') this.value='';" />
								<?php }else{
									echo '<small style="color:red">'.JText::_('ONLY_COMMERCIAL').'</small>';
								} ?>
							</td>
						</tr>
							<tr>
								<td class="key">
									<?php echo JText::_('HIKA_REGISTRATION'); ?>
								</td>
								<td>
									<?php if(hikashop::level(1)){ 
										echo $this->registration->display( 'config[simplified_registration]',$this->config->get('simplified_registration'));
									}else{
										echo '<small style="color:red">'.JText::_('ONLY_COMMERCIAL').'</small>';
									}	 ?>
								</td>
							</tr>
							<tr>
								<td class="key">
									<?php echo JText::_('PRINT_INVOICE_FRONTEND'); ?>
								</td>
								<td>
									<?php if(hikashop::level(1)){ 
										echo JHTML::_('select.booleanlist', 'config[print_invoice_frontend]','',$this->config->get('print_invoice_frontend'));
									}else{
										echo '<small style="color:red">'.JText::_('ONLY_COMMERCIAL').'</small>';
									} ?>
								</td>
							</tr>
							<tr>
								<td class="key">
									<?php echo JText::_('ALLOW_CUSTOMERS_TO_PAY_ORDERS_AFTERWARD'); ?>
								</td>
								<td>
									<?php if(hikashop::level(1)){ 
										echo JHTML::_('select.booleanlist', 'config[allow_payment_button]','',$this->config->get('allow_payment_button'));
									}else{
										echo '<small style="color:red">'.JText::_('ONLY_COMMERCIAL').'</small>';
									} ?>
								</td>
							</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('CATEGORY_EXPLORER'); ?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[category_explorer]','',$this->config->get('category_explorer'));?>
							</td>
						</tr>
					</table>
				</fieldset>
				<fieldset class="adminform">
					<legend><?php echo 'CSS' ?></legend>
					<table class="admintable" cellspacing="1">
						<tr>
							<td class="key" >
							<?php echo JText::_('CSS_FRONTEND'); ?>
							</td>
							<td>
								<?php echo $this->elements->css_frontend;?>
							</td>
						</tr>
						<tr>
							<td class="key" >
							<?php echo JText::_('CSS_BACKEND'); ?>
							</td>
							<td>
								<?php echo $this->elements->css_backend;?>
							</td>
						</tr>
					</table>
				</fieldset>
				<fieldset class="adminform">
					<legend><?php echo JText::_( 'MODULES_MAIN_DEFAULT_OPTIONS' ); ?></legend>
					<table class="admintable" cellspacing="1">
						<tr>
							<td class="key">
								<?php echo JText::_('TYPE_OF_CONTENT');?>
							</td>
							<td>
								<?php echo $this->contentType->display('config[default_params][content_type]',$this->default_params['content_type'],$this->js,false); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('TYPE_OF_LAYOUT');?>
							</td>
							<td>
								<?php echo $this->layoutType->display('config[default_params][layout_type]',$this->default_params['layout_type'],$this->js,false);?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('NUMBER_OF_COLUMNS');?>
							</td>
							<td>
								<input name="config[default_params][columns]" type="text" value="<?php echo $this->default_params['columns'];?>" />
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('NUMBER_OF_ITEMS');?>
							</td>
							<td>
								<input name="config[default_params][limit]" type="text" value="<?php echo $this->default_params['limit'];?>" />
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('ORDERING_DIRECTION');?>
							</td>
							<td>
								<?php echo $this->orderdirType->display('config[default_params][order_dir]',$this->default_params['order_dir']);?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('SUB_ELEMENTS_FILTER');?>
							</td>
							<td>
								<?php echo $this->childdisplayType->display('config[default_params][filter_type]',@$this->default_params['filter_type']);?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('CATEGORY_PARENT');?>
							</td>
							<td>
								<?php $link = hikashop::completeLink('category&task=selectparentlisting&filter_id=product&values='.$this->default_params['selectparentlisting'].'&control=config_default_params_',true); ?>
								<span id="changeParent">
									<?php echo $this->element->category_id.' '.htmlspecialchars($this->element->category_name, ENT_COMPAT, 'UTF-8');?>
								</span>
								<input class="inputbox" id="config_default_params_selectparentlisting" name="config[default_params][selectparentlisting]" type="hidden" size="20" value="<?php echo $this->default_params['selectparentlisting'];?>">
								<a id="linkconfig_default_params_selectparentlisting" title="<?php echo JText::_('SELECT_A_CATEGORY')?>"  href="<?php echo $link;?>" rel="{handler: 'iframe', size: {x: 650, y: 375}}" onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;">
									<button onclick="return false"><?php echo JText::_('SELECT'); ?></button>
								</a>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('MODULE_CLASS_SUFFIX');?>
							</td>
							<td>
								<input name="config[default_params][moduleclass_sfx]" type="text" value="<?php echo @$this->default_params['moduleclass_sfx'];?>" />
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('MODULES_TO_DISPLAY_UNDER_MAIN_ZONE');?>
							</td>
							<td>
								<input type="hidden" name="config[default_params][modules]" id="modules_display"  value="<?php echo @$this->default_params['modules']; ?>" />
								<?php $link = hikashop::completeLink('modules&task=selectmodules',true); ?>
								<a id="linkmodules_display" title="<?php echo JText::_('SELECT_MODULES')?>"  href="" rel="{handler: 'iframe', size: {x: 650, y: 375}}" onclick="this.href='<?php echo $link;?>&modules='+document.getElementById('modules_display').value;SqueezeBox.fromElement(this,{parse: 'rel'});return false;">
									<button onclick="return false"><?php echo JText::_('SELECT'); ?></button>
								</a>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('SYNCHRO_WITH_ITEM');?>
							</td>
							<td>
								<?php 
									echo JHTML::_('select.booleanlist', 'config[default_params][content_synchronize]' , '',$this->default_params['content_synchronize']); 
								?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('USE_NAME_INSTEAD_TITLE');?>
							</td>
							<td>
								<?php 
									echo JHTML::_('select.booleanlist', 'config[default_params][use_module_name]' , '',@$this->default_params['use_module_name']); 
								?>
							</td>
						</tr>
					</table>
				</fieldset>
			</td>
			<td valign="top">
				<fieldset class="adminform">
					<legend><?php echo JText::_( 'DEFAULT_PARAMS_FOR_PRODUCTS' ); ?></legend>
					<table class="admintable" cellspacing="1">
						<tr>
							<td class="key">
								<?php echo JText::_('ORDERING_FIELD');?>
							</td>
							<td>
								<?php echo $this->orderType->display('config[default_params][product_order]',$this->default_params['product_order'],'product');?>
							</td>
						</tr>
						<tr>
							<td class="key" valign="top">
								<?php echo JText::_('RANDOM_ITEMS');?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[default_params][random]' , '',$this->default_params['random']); ?>
							</td>
						</tr>
						<tr>
							<td class="key" valign="top">
								<?php echo JText::_('CONTENT_ON_PRODUCT_PAGE');?>
							</td>
							<td>
								<?php echo $this->productSyncType->display('config[default_params][product_synchronize]' , $this->default_params['product_synchronize']); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('DISPLAY_PRICE');?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[default_params][show_price]' , '',$this->default_params['show_price']); ?>
							</td>
						</tr>
						<tr id="price_with_tax_line">
							<td class="key">
								<?php echo JText::_('SHOW_TAXED_PRICES');?>
							</td>
							<td>
								<?php echo $this->pricetaxType->display('config[default_params][price_with_tax]' , $this->default_params['price_with_tax']); ?>
							</td>
						</tr>
						<tr id="show_original_price_line">
							<td class="key">
								<?php echo JText::_('ORIGINAL_CURRENCY_PRICE');?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[default_params][show_original_price]' , '',$this->default_params['show_original_price']); ?>
							</td>
						</tr>
						<tr id="show_discount_line">
							<td class="key">
								<?php echo JText::_('SHOW_DISCOUNTED_PRICE');?>
							</td>
							<td>
								<?php echo $this->discountDisplayType->display('config[default_params][show_discount]' ,$this->default_params['show_discount']); ?>
							</td>
						</tr>
						<tr id="price_display_type_line">
							<td class="key">
								<?php echo JText::_('PRICE_DISPLAY_METHOD');?>
							</td>
							<td>
								<?php echo $this->priceDisplayType->display( 'config[default_params][price_display_type]',$this->default_params['price_display_type']); ?>
							</td>
						</tr>
						<tr id="show_price_weight_line">
							<td class="key">
								<?php echo JText::_('WEIGHT_UNIT_PRICE');?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[show_price_weight]' , '',$this->config->get('show_price_weight')); ?>
							</td>
						</tr>
					</table>
				</fieldset>
				<fieldset class="adminform">
					<legend><?php echo JText::_( 'DEFAULT_PARAMS_FOR_CATEGORIES' ); ?></legend>
					<table class="admintable" cellspacing="1">
						<tr>
							<td class="key">
								<?php echo JText::_('ORDERING_FIELD');?>
							</td>
							<td>
								<?php echo $this->orderType->display('config[default_params][category_order]',$this->default_params['category_order'],'category');?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('SHOW_SUB_CATEGORIES');?>
							</td>
							<td>
								<?php echo $this->listType->display('config[default_params][child_display_type]',$this->default_params['child_display_type']);?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('NUMBER_OF_SUB_CATEGORIES');?>
							</td>
							<td>
								<input name="config[default_params][child_limit]" type="text" value="<?php echo @$this->default_params['child_limit'];?>" />
							</td>
						</tr>
					</table>
				</fieldset>
				<fieldset class="adminform">
					<legend><?php echo JText::_( 'DEFAULT_PARAMS_FOR_DIV' ); ?></legend>
					<table class="admintable" cellspacing="1">
						<tr>
							<td class="key">
								<?php echo JText::_('TYPE_OF_ITEM_LAYOUT');?>
							</td>
							<td>
								<?php echo $this->itemType->display('config[default_params][div_item_layout_type]',$this->default_params['div_item_layout_type'],$this->js);?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('ITEM_BOX_COLOR');?>
							</td>
							<td>
								<?php echo $this->colorType->displayAll('','config[default_params][background_color]',@$this->default_params['background_color']); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('ITEM_BOX_MARGIN');?>
							</td>
							<td>
								<input name="config[default_params][margin]" type="text" value="<?php echo @$this->default_params['margin'];?>" />px
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('ITEM_BOX_ROUND_CORNER');?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[default_params][rounded_corners]' , '',@$this->default_params['rounded_corners']); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('TEXT_CENTERED');?>
							</td>
							<td>
								<?php echo JHTML::_('select.booleanlist', 'config[default_params][text_center]' , '',@$this->default_params['text_center']); ?>
							</td>
						</tr>
					</table>
				</fieldset>
				<fieldset class="adminform">
					<legend><?php echo JText::_( 'FOOTER' ); ?></legend>
					<table class="admintable" cellspacing="1">
						<tr>
							<td class="key" >
							<?php echo JText::_('SHOW_FOOTER'); ?>
							</td>
							<td>
								<?php echo $this->elements->show_footer; ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_('AFFILIATE');?>
							</td>
							<td>
								<input name="config[partner_id]" type="text" value="<?php echo $this->config->get('partner_id')?>" />
							</td>
						</tr>
					</table>
				</fieldset>
			</td>
		</tr>
	</table>
</div>
Return current item: HikaShop