function content_560ec4878bae26_01331015($_smarty_tpl)
    {
        ?>

<div class="translatable">
<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display:none;<?php 
            }
            ?>
float: left;">
	<input size="30" type="text" id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
	name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
		value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"
		onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();" onblur="updateLinkRewrite();"/>
</div>
<?php 
        }
        ?>
</div>
<?php 
    }
    function content_56617d8cbfba17_13235252($_smarty_tpl)
    {
        if ($_smarty_tpl->tpl_vars['check_product_association_ajax']->value) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['class_input_ajax'] = new Smarty_variable('check_product_name ', null, 0);
        } else {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['class_input_ajax'] = new Smarty_variable('', null, 0);
        }
        ?>

<div id="product-informations" class="panel product-tab">
	<input type="hidden" name="submitted_tabs[]" value="Informations" />
	<h3 class="tab"> <i class="icon-info"></i> <?php 
        echo smartyTranslate(array('s' => 'Information'), $_smarty_tpl);
        ?>
</h3>
	<script type="text/javascript">
		
		var msg_select_one = "<?php 
        echo smartyTranslate(array('s' => 'Please select at least one product.', 'js' => 1), $_smarty_tpl);
        ?>
";
		var msg_set_quantity = "<?php 
        echo smartyTranslate(array('s' => 'Please set a quantity to add a product.', 'js' => 1), $_smarty_tpl);
        ?>
";

		<?php 
        if (isset($_smarty_tpl->tpl_vars['ps_force_friendly_product']->value) && $_smarty_tpl->tpl_vars['ps_force_friendly_product']->value) {
            ?>
			var ps_force_friendly_product = 1;
		<?php 
        } else {
            ?>
			var ps_force_friendly_product = 0;
		<?php 
        }
        ?>
		<?php 
        if (isset($_smarty_tpl->tpl_vars['PS_ALLOW_ACCENTED_CHARS_URL']->value) && $_smarty_tpl->tpl_vars['PS_ALLOW_ACCENTED_CHARS_URL']->value) {
            ?>
			var PS_ALLOW_ACCENTED_CHARS_URL = 1;
		<?php 
        } else {
            ?>
			var PS_ALLOW_ACCENTED_CHARS_URL = 0;
		<?php 
        }
        ?>
		<?php 
        echo $_smarty_tpl->tpl_vars['combinationImagesJs']->value;
        ?>

		<?php 
        if ($_smarty_tpl->tpl_vars['check_product_association_ajax']->value) {
            ?>
				var search_term = '';
				$('document').ready( function() {
					$(".check_product_name")
						.autocomplete(
							'<?php 
            echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts', true));
            ?>
', {
								minChars: 3,
								max: 10,
								width: $(".check_product_name").width(),
								selectFirst: false,
								scroll: false,
								dataType: "json",
								formatItem: function(data, i, max, value, term) {
									search_term = term;
									// adding the little
									if ($('.ac_results').find('.separation').length == 0)
										$('.ac_results').css('background-color', '#EFEFEF')
											.prepend('<div style="color:#585A69; padding:2px 5px"><?php 
            echo smartyTranslate(array('s' => 'Use a product from the list'), $_smarty_tpl);
            ?>
<div class="separation"></div></div>');
									return value;
								},
								parse: function(data) {
									var mytab = new Array();
									for (var i = 0; i < data.length; i++)
										mytab[mytab.length] = { data: data[i], value: data[i].name };
									return mytab;
								},
								extraParams: {
									ajax: 1,
									action: 'checkProductName',
									id_lang: <?php 
            echo $_smarty_tpl->tpl_vars['id_lang']->value;
            ?>

								}
							}
						)
						.result(function(event, data, formatted) {
							// keep the searched term in the input
							$('#name_<?php 
            echo $_smarty_tpl->tpl_vars['id_lang']->value;
            ?>
').val(search_term);
							jConfirm('<?php 
            echo smartyTranslate(array('s' => 'Do you want to use this product?'), $_smarty_tpl);
            ?>
&nbsp;<strong>'+data.name+'</strong>', '<?php 
            echo smartyTranslate(array('s' => 'Confirmation'), $_smarty_tpl);
            ?>
', function(confirm){
								if (confirm == true)
									document.location.href = '<?php 
            echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts', true);
            ?>
&updateproduct&id_product='+data.id_product;
								else
									return false;
							});
						});
				});
		<?php 
        }
        ?>
	</script>

	<?php 
        if (isset($_smarty_tpl->tpl_vars['display_common_field']->value) && $_smarty_tpl->tpl_vars['display_common_field']->value) {
            ?>
	<div class="alert alert-warning" style="display: block"><?php 
            echo smartyTranslate(array('s' => 'Warning, if you change the value of fields with an orange bullet %s, the value will be changed for all other shops for this product', 'sprintf' => $_smarty_tpl->tpl_vars['bullet_common_field']->value), $_smarty_tpl);
            ?>
</div>
	<?php 
        }
        ?>

	<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_tab' => "Informations"), 0);
        ?>


	<div class="form-group">
		<label class="control-label col-lg-3" for="simple_product">
			<?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Type'), $_smarty_tpl);
        ?>

		</label>
		<div class="col-lg-9">
			<div class="radio">
				<label for="simple_product">
					<input type="radio" name="type_product" id="simple_product" value="<?php 
        echo Product::PTYPE_SIMPLE;
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['product_type']->value == Product::PTYPE_SIMPLE) {
            ?>
checked="checked"<?php 
        }
        ?>
 >
					<?php 
        echo smartyTranslate(array('s' => 'Standard product'), $_smarty_tpl);
        ?>
</label>
			</div>
			<div class="radio">
				<label for="pack_product">
					<input type="radio" name="type_product" <?php 
        if ($_smarty_tpl->tpl_vars['is_in_pack']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 id="pack_product" value="<?php 
        echo Product::PTYPE_PACK;
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['product_type']->value == Product::PTYPE_PACK) {
            ?>
checked="checked"<?php 
        }
        ?>
 > <?php 
        echo smartyTranslate(array('s' => 'Pack of existing products'), $_smarty_tpl);
        ?>
</label>
			</div>
			<div class="radio">
				<label for="virtual_product">
					<input type="radio" name="type_product" id="virtual_product" <?php 
        if ($_smarty_tpl->tpl_vars['is_in_pack']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 value="<?php 
        echo Product::PTYPE_VIRTUAL;
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['product_type']->value == Product::PTYPE_VIRTUAL) {
            ?>
checked="checked"<?php 
        }
        ?>
 >
					<?php 
        echo smartyTranslate(array('s' => 'Virtual product (services, booking, downloadable products, etc.)'), $_smarty_tpl);
        ?>
</label>
			</div>

			<div class="row">
				<div id="warn_virtual_combinations" class="alert alert-warning" style="display:none"><?php 
        echo smartyTranslate(array('s' => 'You cannot use combinations with a virtual product.'), $_smarty_tpl);
        ?>
</div>
				<div id="warn_pack_combinations" class="alert alert-warning" style="display:none"><?php 
        echo smartyTranslate(array('s' => 'You cannot use combinations with a pack.'), $_smarty_tpl);
        ?>
</div>
			</div>

		</div>
	</div>

	<div id="product-pack-container" <?php 
        if ($_smarty_tpl->tpl_vars['product_type']->value != Product::PTYPE_PACK) {
            ?>
style="display:none"<?php 
        }
        ?>
></div>

	<hr />

	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "name", 'type' => "default", 'multilang' => "true"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2 required" for="name_<?php 
        echo $_smarty_tpl->tpl_vars['id_lang']->value;
        ?>
">
			<span class="label-tooltip" data-toggle="tooltip" title="<?php 
        echo smartyTranslate(array('s' => 'The public name for this product.'), $_smarty_tpl);
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Invalid characters:'), $_smarty_tpl);
        ?>
 &lt;&gt;;=#{}">
				<?php 
        echo smartyTranslate(array('s' => 'Name'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-5">
			<?php 
        ob_start();
        if (!$_smarty_tpl->tpl_vars['product']->value->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')) {
            echo "copy2friendlyUrl";
        }
        $_tmp1 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_class' => (string) $_smarty_tpl->tpl_vars['class_input_ajax']->value . $_tmp1 . " updateCurrentText", 'input_value' => $_smarty_tpl->tpl_vars['product']->value->name, 'input_name' => "name", 'required' => true), 0);
        ?>

		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-lg-3" for="reference">
			<span class="label-tooltip" data-toggle="tooltip"
			title="<?php 
        echo smartyTranslate(array('s' => 'Your internal reference code for this product.'), $_smarty_tpl);
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Allowed special characters:'), $_smarty_tpl);
        ?>
 .-_#\">
				<?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Reference code'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-5">
			<input type="text" id="reference" name="reference" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->reference);
        ?>
" />
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-lg-3" for="ean13">
			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'This type of product code is specific to Europe and Japan, but is widely used internationally. It is a superset of the UPC code: all products marked with an EAN will be accepted in North America.'), $_smarty_tpl);
        ?>
">
				<?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'EAN-13 or JAN barcode'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-3">
			<input maxlength="13" type="text" id="ean13" name="ean13" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->ean13);
        ?>
" />
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-lg-3" for="upc">
			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'This type of product code is widely used in the United States, Canada, the United Kingdom, Australia, New Zealand and in other countries.'), $_smarty_tpl);
        ?>
">
				<?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'UPC barcode'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-3">
			<input maxlength="12" type="text" id="upc" name="upc" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->upc, ENT_QUOTES, 'UTF-8', true);
        ?>
" />
		</div>
	</div>

	<hr/>

	
	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "active", 'type' => "radio", 'onclick' => ''), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2">
			<?php 
        echo smartyTranslate(array('s' => 'Enabled'), $_smarty_tpl);
        ?>

		</label>
		<div class="col-lg-9">
			<span class="switch prestashop-switch fixed-width-lg">
				<input onclick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" type="radio" name="active" id="active_on" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->active || !$_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {
            ?>
checked="checked" <?php 
        }
        ?>
 />
				<label for="active_on" class="radioCheck">
					<?php 
        echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
        ?>

				</label>
				<input onclick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);"  type="radio" name="active" id="active_off" value="0" <?php 
        if (!$_smarty_tpl->tpl_vars['product']->value->active && $_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
				<label for="active_off" class="radioCheck">
					<?php 
        echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
        ?>

				</label>
				<a class="slide-button btn"></a>
			</span>
		</div>
	</div>

	<div class="form-group redirect_product_options" style="display:none">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "redirect_type", 'type' => "radio", 'onclick' => ''), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="redirect_type">
			<?php 
        echo smartyTranslate(array('s' => 'Redirect when disabled'), $_smarty_tpl);
        ?>

		</label>
		<div class="col-lg-5">
			<select name="redirect_type" id="redirect_type">
				<option value="404" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->redirect_type == '404') {
            ?>
 selected="selected" <?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'No redirect (404)'), $_smarty_tpl);
        ?>
</option>
				<option value="301" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->redirect_type == '301') {
            ?>
 selected="selected" <?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Redirected permanently (301)'), $_smarty_tpl);
        ?>
</option>
				<option value="302" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->redirect_type == '302') {
            ?>
 selected="selected" <?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Redirected temporarily (302)'), $_smarty_tpl);
        ?>
</option>
			</select>
		</div>
	</div>
	<div class="form-group redirect_product_options" style="display:none">
		<div class="col-lg-9 col-lg-offset-3">
			<div class="alert alert-info">
				<?php 
        echo smartyTranslate(array('s' => '404 Not Found = Do not redirect and display a 404 page.'), $_smarty_tpl);
        ?>
<br/>
				<?php 
        echo smartyTranslate(array('s' => '301 Moved Permanently = Permanently display another product instead.'), $_smarty_tpl);
        ?>
<br/>
				<?php 
        echo smartyTranslate(array('s' => '302 Moved Temporarily = Temporarily display another product instead.'), $_smarty_tpl);
        ?>

			</div>	
		</div>
	</div>

	<div class="form-group redirect_product_options redirect_product_options_product_choise" style="display:none">	
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "id_product_redirected", 'type' => "radio", 'onclick' => ''), 0);
        ?>
</span></div>	
		<label class="control-label col-lg-2" for="related_product_autocomplete_input">
			<?php 
        echo smartyTranslate(array('s' => 'Related product:'), $_smarty_tpl);
        ?>

		</label>
		<div class="col-lg-7">
			<input type="hidden" value="" name="id_product_redirected" />

			<div class="input-group">
				<input type="text" id="related_product_autocomplete_input" name="related_product_autocomplete_input" autocomplete="off" class="ac_input" />
				<span class="input-group-addon"><i class="icon-search"></i></span>
			</div>

			<div class="form-control-static">
				<span id="related_product_name"><i class="icon-warning-sign"></i>&nbsp;<?php 
        echo smartyTranslate(array('s' => 'No related product.'), $_smarty_tpl);
        ?>
</span>
				<span id="related_product_remove" style="display:none">
					<a class="btn btn-default" href="#" onclick="removeRelatedProduct(); return false" id="related_product_remove_link">
						<i class="icon-remove text-danger"></i>
					</a>
				</span>
			</div>
			
		</div>
		<script>
			var no_related_product = '<?php 
        echo smartyTranslate(array('s' => 'No related product'), $_smarty_tpl);
        ?>
';
			var id_product_redirected = <?php 
        echo intval($_smarty_tpl->tpl_vars['product']->value->id_product_redirected);
        ?>
;
			var product_name_redirected = '<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['product_name_redirected']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
';
		</script>
	</div>

	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "visibility", 'type' => "default"), 0);
        ?>
</span></div>		
		<label class="control-label col-lg-2" for="visibility">
			<?php 
        echo smartyTranslate(array('s' => 'Visibility'), $_smarty_tpl);
        ?>

		</label>
		<div class="col-lg-3">
			<select name="visibility" id="visibility">
				<option value="both" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'both') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Everywhere'), $_smarty_tpl);
        ?>
</option>
				<option value="catalog" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'catalog') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Catalog only'), $_smarty_tpl);
        ?>
</option>
				<option value="search" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'search') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Search only'), $_smarty_tpl);
        ?>
</option>
				<option value="none" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'none') {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Nowhere'), $_smarty_tpl);
        ?>
</option>
			</select>
		</div>
	</div>

	<div id="product_options" class="form-group">
		<div class="col-lg-12">
			<div class="form-group">
				<div class="col-lg-1">
					<span class="pull-right">
						<?php 
        if (isset($_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value) && $_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value) {
            ?>
							<?php 
            echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_checkbox' => "true", 'field' => "available_for_order", 'type' => "default"), 0);
            ?>

							<?php 
            echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_checkbox' => "true", 'field' => "show_price", 'type' => "show_price"), 0);
            ?>

							<?php 
            echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_checkbox' => "true", 'field' => "online_only", 'type' => "default"), 0);
            ?>

						<?php 
        }
        ?>
					</span>
				</div>	
				<label class="control-label col-lg-2" for="available_for_order">
					<?php 
        echo smartyTranslate(array('s' => 'Options'), $_smarty_tpl);
        ?>

				</label>
				<div class="col-lg-9">
					<div class="checkbox">
						<label for="available_for_order">
							<input type="checkbox" name="available_for_order" id="available_for_order" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->available_for_order) {
            ?>
checked="checked"<?php 
        }
        ?>
 >
							<?php 
        echo smartyTranslate(array('s' => 'Available for order'), $_smarty_tpl);
        ?>
</label>
					</div>
					<div class="checkbox">
						<label for="show_price">
							<input type="checkbox" name="show_price" id="show_price" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->show_price) {
            ?>
checked="checked"<?php 
        }
        ?>
 <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->available_for_order) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 >
							<?php 
        echo smartyTranslate(array('s' => 'Show price'), $_smarty_tpl);
        ?>
</label>
					</div>
					<div class="checkbox">
						<label for="online_only">
							<input type="checkbox" name="online_only" id="online_only" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->online_only) {
            ?>
checked="checked"<?php 
        }
        ?>
 >
							<?php 
        echo smartyTranslate(array('s' => 'Online only (not sold in your retail store)'), $_smarty_tpl);
        ?>
</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "condition", 'type' => "default"), 0);
        ?>
</span></div>				
				<label class="control-label col-lg-2" for="condition">
					<?php 
        echo smartyTranslate(array('s' => 'Condition'), $_smarty_tpl);
        ?>

				</label>
				<div class="col-lg-3">
					<select name="condition" id="condition">
						<option value="new" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'new') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'New'), $_smarty_tpl);
        ?>
</option>
						<option value="used" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'used') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Used'), $_smarty_tpl);
        ?>
</option>
						<option value="refurbished" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'refurbished') {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Refurbished'), $_smarty_tpl);
        ?>
</option>
					</select>
				</div>	
			</div>
		</div>
	</div>
	<hr/>
	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "description_short", 'type' => "tinymce", 'multilang' => "true"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="description_short_<?php 
        echo $_smarty_tpl->tpl_vars['id_lang']->value;
        ?>
">
			<span class="label-tooltip" data-toggle="tooltip" title="<?php 
        echo smartyTranslate(array('s' => 'Appears in the product list(s), and at the top of the product page.'), $_smarty_tpl);
        ?>
">
				<?php 
        echo smartyTranslate(array('s' => 'Short description'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-9">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/textarea_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_name' => 'description_short', 'class' => "autoload_rte", 'input_value' => $_smarty_tpl->tpl_vars['product']->value->description_short, 'max' => $_smarty_tpl->tpl_vars['PS_PRODUCT_SHORT_DESC_LIMIT']->value), 0);
        ?>

		</div>
	</div>
	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "description", 'type' => "tinymce", 'multilang' => "true"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="description_<?php 
        echo $_smarty_tpl->tpl_vars['id_lang']->value;
        ?>
">
			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'Appears in the body of the product page.'), $_smarty_tpl);
        ?>
">
				<?php 
        echo smartyTranslate(array('s' => 'Description'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-9">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/textarea_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_name' => 'description', 'class' => "autoload_rte", 'input_value' => $_smarty_tpl->tpl_vars['product']->value->description), 0);
        ?>

		</div>
	</div>
	<?php 
        if ($_smarty_tpl->tpl_vars['images']->value) {
            ?>
	<div class="form-group">
		<div class="col-lg-9 col-lg-offset-3">
			<div class="alert alert-info">
				<?php 
            echo smartyTranslate(array('s' => 'Would you like to add an image in your description?'), $_smarty_tpl);
            ?>

				<a class="addImageDescription" href="javascript:void(0);"><?php 
            echo smartyTranslate(array('s' => 'Click here'), $_smarty_tpl);
            ?>
</a>.
			</div>
		</div>
	</div>
	<div id="createImageDescription" class="panel" style="display:none">
		<div class="form-group">
			<label class="control-label col-lg-3" for="smallImage_0"><?php 
            echo smartyTranslate(array('s' => 'Select your image'), $_smarty_tpl);
            ?>
</label>
			<div class="col-lg-9">
				<ul class="list-inline">
					<?php 
            $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['image']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['images']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value) {
                $_smarty_tpl->tpl_vars['image']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['image']->key;
                ?>
					<li>
						<input type="radio" name="smallImage" id="smallImage_<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
" value="<?php 
                echo $_smarty_tpl->tpl_vars['image']->value['id_image'];
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['key']->value == 0) {
                    ?>
checked="checked"<?php 
                }
                ?>
 >
						<label for="smallImage_<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
" >
							<img src="<?php 
                echo $_smarty_tpl->tpl_vars['image']->value['src'];
                ?>
" alt="<?php 
                echo $_smarty_tpl->tpl_vars['image']->value['legend'];
                ?>
" />
						</label>
					</li>
					<?php 
            }
            ?>
				</ul>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="leftRight_1"><?php 
            echo smartyTranslate(array('s' => 'Position'), $_smarty_tpl);
            ?>
</label>
			<div class="col-lg-5">
				<p class="checkbox">
					<input type="radio" name="leftRight" id="leftRight_1" value="left" checked>							
					<label for="leftRight_1" ><?php 
            echo smartyTranslate(array('s' => 'left'), $_smarty_tpl);
            ?>
</label>
				</p>
				<p class="checkbox">
					<input type="radio" name="leftRight" id="leftRight_2" value="right">
					<label for="leftRight_2" ><?php 
            echo smartyTranslate(array('s' => 'right'), $_smarty_tpl);
            ?>
</label>
				</p>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="imageTypes_0"><?php 
            echo smartyTranslate(array('s' => 'Select the type of picture'), $_smarty_tpl);
            ?>
</label>
			<div class="col-lg-5">
				<?php 
            $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['type']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['imagesTypes']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
                $_smarty_tpl->tpl_vars['type']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['type']->key;
                ?>
				<p class="checkbox">
					<input type="radio" name="imageTypes" id="imageTypes_<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
" value="<?php 
                echo $_smarty_tpl->tpl_vars['type']->value['name'];
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['key']->value == 0) {
                    ?>
checked="checked"<?php 
                }
                ?>
>
					<label for="imageTypes_<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
" >
						<?php 
                echo $_smarty_tpl->tpl_vars['type']->value['name'];
                ?>
 <span><?php 
                echo smartyTranslate(array('s' => '%dpx by %dpx', 'sprintf' => array($_smarty_tpl->tpl_vars['type']->value['width'], $_smarty_tpl->tpl_vars['type']->value['height'])), $_smarty_tpl);
                ?>
</span>
					</label>
				</p>
				<?php 
            }
            ?>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="resultImage">
				<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
            echo smartyTranslate(array('s' => 'The tag to copy/paste into the description.'), $_smarty_tpl);
            ?>
">
					<?php 
            echo smartyTranslate(array('s' => 'Image tag to insert'), $_smarty_tpl);
            ?>

				</span>
			</label>
			<div class="col-lg-4">
				<input type="text" id="resultImage" name="resultImage" />
			</div>
			<p class="help-block"></p>
		</div>
	</div>
	<?php 
        }
        ?>

	<div class="form-group">
		<label class="control-label col-lg-3" for="tags_<?php 
        echo $_smarty_tpl->tpl_vars['id_lang']->value;
        ?>
">
			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'Each tag has to be followed by a comma. The following characters are forbidden: %s', 'sprintf' => '!&lt;;&gt;;?=+#&quot;&deg;{}_$%'), $_smarty_tpl);
        ?>
">
				<?php 
        echo smartyTranslate(array('s' => 'Tags:'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-9">
			<?php 
        if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
            ?>
			<div class="row">
			<?php 
        }
        ?>
				<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
					
					<script type="text/javascript">
						$().ready(function () {
							var input_id = 'tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
';
							$('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php 
            echo smartyTranslate(array('s' => 'Add tag', 'js' => 1), $_smarty_tpl);
            ?>
'});
							$('#<?php 
            echo $_smarty_tpl->tpl_vars['table']->value;
            ?>
_form').submit( function() {
								$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
							});
						});
					</script>
					
				<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
				<div class="translatable-field lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
					<div class="col-lg-9">
				<?php 
            }
            ?>
						<input type="text" id="tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" class="tagify updateCurrentText" name="tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" value="<?php 
            echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->getTags($_smarty_tpl->tpl_vars['language']->value['id_lang'], true));
            ?>
" />
				<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
					</div>
					<div class="col-lg-2">
						<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
							<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>

							<span class="caret"></span>
						</button>
						<ul class="dropdown-menu">
							<?php 
                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['language']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                    ?>
							<li>
								<a href="javascript:hideOtherLanguage(<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                    ?>
);"><?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                    ?>
</a>
							</li>
							<?php 
                }
                ?>
						</ul>
					</div>
				</div>
				<?php 
            }
            ?>
				<?php 
        }
        ?>
			<?php 
        if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
            ?>
			</div>
			<?php 
        }
        ?>
		</div>
	</div>
	<div class="panel-footer">
		<a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts'), ENT_QUOTES, 'UTF-8', true);
        ?>
" class="btn btn-default"><i class="process-icon-cancel"></i> <?php 
        echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl);
        ?>
</a>
		<button type="submit" name="submitAddproduct" class="btn btn-default pull-right"><i class="process-icon-save"></i> <?php 
        echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl);
        ?>
</button>
		<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right"><i class="process-icon-save"></i> <?php 
        echo smartyTranslate(array('s' => 'Save and stay'), $_smarty_tpl);
        ?>
</button>
	</div>
</div>
<script type="text/javascript">
	hideOtherLanguage(<?php 
        echo $_smarty_tpl->tpl_vars['default_form_language']->value;
        ?>
);
	var missing_product_name = '<?php 
        echo smartyTranslate(array('s' => 'Please fill product name input field', 'js' => 1), $_smarty_tpl);
        ?>
';
</script><?php 
    }
    function content_563b134fe91645_63568887($_smarty_tpl)
    {
        ?>

<script type="text/javascript">
var Customer = new Object();
var product_url = '<?php 
        echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts', true));
        ?>
';
var ecotax_tax_excl = parseFloat(<?php 
        echo $_smarty_tpl->tpl_vars['ecotax_tax_excl']->value;
        ?>
);
var priceDisplayPrecision = <?php 
        echo intval(@constant('_PS_PRICE_DISPLAY_PRECISION_'));
        ?>
;

$(document).ready(function () {
	Customer = {
		"hiddenField": jQuery('#id_customer'),
		"field": jQuery('#customer'),
		"container": jQuery('#customers'),
		"loader": jQuery('#customerLoader'),
		"init": function() {
			jQuery(Customer.field).typeWatch({
				"captureLength": 1,
				"highlight": true,
				"wait": 50,
				"callback": Customer.search
			}).focus(Customer.placeholderIn).blur(Customer.placeholderOut);
		},
		"placeholderIn": function() {
			if (this.value == '<?php 
        echo smartyTranslate(array('s' => 'All customers'), $_smarty_tpl);
        ?>
') {
				this.value = '';
			}
		},
		"placeholderOut": function() {
			if (this.value == '') {
				this.value = '<?php 
        echo smartyTranslate(array('s' => 'All customers'), $_smarty_tpl);
        ?>
';
			}
		},
		"search": function()
		{
			Customer.showLoader();
			jQuery.ajax({
				"type": "POST",
				"url": "<?php 
        echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomers'));
        ?>
",
				"async": true,
				"dataType": "json",
				"data": {
					"ajax": "1",
					"token": "<?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminCustomers'), $_smarty_tpl);
        ?>
",
					"tab": "AdminCustomers",
					"action": "searchCustomers",
					"customer_search": Customer.field.val()
				},
				"success": Customer.success
			});
		},
		"success": function(result)
		{
			if(result.found) {
				var html = '<ul class="list-unstyled">';
				jQuery.each(result.customers, function() {
					html += '<li><a class="fancybox" href="<?php 
        echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomers');
        ?>
&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1">'+this.firstname+' '+this.lastname+'</a>'+(this.birthday ? ' - '+this.birthday:'');
					html += ' - '+this.email;
					html += '<a onclick="Customer.select('+this.id_customer+', \''+this.firstname+' '+this.lastname+'\'); return false;" href="#" class="btn btn-default"><?php 
        echo smartyTranslate(array('s' => 'Choose'), $_smarty_tpl);
        ?>
</a></li>';
				});
				html += '</ul>';
			}
			else
				html = '<div class="alert alert-warning"><?php 
        echo smartyTranslate(array('s' => 'No customers found'), $_smarty_tpl);
        ?>
</div>';
			Customer.hideLoader();
			Customer.container.html(html);
			jQuery('.fancybox', Customer.container).fancybox();
		},
		"select": function(id_customer, fullname)
		{
			Customer.hiddenField.val(id_customer);
			Customer.field.val(fullname);
			Customer.container.empty();
			return false;
		},
		"showLoader": function() {
			Customer.loader.fadeIn();
		},
		"hideLoader": function() {
			Customer.loader.fadeOut();
		}
	};
	Customer.init();
});
</script>
<?php 
        $_smarty_tpl->_capture_stack[0][] = array('default', 'priceDisplayPrecisionFormat', null);
        ob_start();
        echo '%.' . @constant('_PS_PRICE_DISPLAY_PRECISION_') . 'f';
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
<div id="product-prices" class="panel product-tab">
	<input type="hidden" name="submitted_tabs[]" value="Prices" />
	<h3><?php 
        echo smartyTranslate(array('s' => 'Product price'), $_smarty_tpl);
        ?>
</h3>
	<div class="alert alert-info" <?php 
        if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value || $_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
style="display:none;"<?php 
        }
        ?>
>
		<?php 
        echo smartyTranslate(array('s' => 'You must enter either the pre-tax retail price, or the retail price with tax. The input field will be automatically calculated.'), $_smarty_tpl);
        ?>

	</div>
	<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_tab' => "Prices"), 0);
        ?>

	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "wholesale_price", 'type' => "default"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="wholesale_price">
			<span class="label-tooltip" data-toggle="tooltip" title="<?php 
        echo smartyTranslate(array('s' => 'The wholesale price is the price you paid for the product. Do not include the tax.'), $_smarty_tpl);
        ?>
"><?php 
        if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value || $_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            echo smartyTranslate(array('s' => 'Wholesale price'), $_smarty_tpl);
        } else {
            echo smartyTranslate(array('s' => 'Pre-tax wholesale price'), $_smarty_tpl);
        }
        ?>
</span>
		</label>
		<div class="col-lg-2">
			<div class="input-group">
				<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
				<input maxlength="27" name="wholesale_price" id="wholesale_price" type="text" value="<?php 
        ob_start();
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->wholesale_price), $_smarty_tpl);
        $_tmp1 = ob_get_clean();
        echo sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value, $_tmp1);
        ?>
" onchange="this.value = this.value.replace(/,/g, '.');" />
			</div>
			<?php 
        if (isset($_smarty_tpl->tpl_vars['pack']->value) && $_smarty_tpl->tpl_vars['pack']->value->isPack($_smarty_tpl->tpl_vars['product']->value->id)) {
            ?>
<p class="help-block"><?php 
            ob_start();
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price' => sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value, $_smarty_tpl->tpl_vars['pack']->value->noPackWholesalePrice($_smarty_tpl->tpl_vars['product']->value->id))), $_smarty_tpl);
            $_tmp2 = ob_get_clean();
            echo smartyTranslate(array('s' => 'The sum of wholesale prices of the products in the pack is %s%s%s', 'sprintf' => array($_smarty_tpl->tpl_vars['currency']->value->prefix, $_tmp2, $_smarty_tpl->tpl_vars['currency']->value->suffix)), $_smarty_tpl);
            ?>
</p><?php 
        }
        ?>
		</div>
	</div>
	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "price", 'type' => "price"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="priceTE">
			<span class="label-tooltip" data-toggle="tooltip" title="<?php 
        echo smartyTranslate(array('s' => 'The pre-tax retail price is the price for which you intend sell this product to your customers. It should be higher than the pre-tax wholesale price: the difference between the two will be your margin.'), $_smarty_tpl);
        ?>
"><?php 
        if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value || $_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            echo smartyTranslate(array('s' => 'Retail price'), $_smarty_tpl);
        } else {
            echo smartyTranslate(array('s' => 'Pre-tax retail price'), $_smarty_tpl);
        }
        ?>
</span>
		</label>
		<div class="col-lg-2">
			<div class="input-group">
				<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
				<input type="hidden" id="priceTEReal" name="price" value="<?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->price), $_smarty_tpl);
        ?>
"/>
				<input size="11" maxlength="27" id="priceTE" name="price_displayed" type="text" value="<?php 
        ob_start();
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->price), $_smarty_tpl);
        $_tmp3 = ob_get_clean();
        echo sprintf('%.6f', $_tmp3);
        ?>
" onchange="noComma('priceTE'); $('#priceTEReal').val(this.value);" onkeyup="$('#priceType').val('TE'); $('#priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return; calcPriceTI();" />
			</div>
		</div>
	</div>
	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "id_tax_rules_group", 'type' => "default"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="id_tax_rules_group">
			<?php 
        echo smartyTranslate(array('s' => 'Tax rule:'), $_smarty_tpl);
        ?>

		</label>
		<div class="col-lg-8">
			<script type="text/javascript">
				noTax = <?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
true<?php 
        } else {
            ?>
false<?php 
        }
        ?>
;
				taxesArray = new Array();
				<?php 
        $_smarty_tpl->tpl_vars['tax_by_group'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['tax_by_group']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['taxesRatesByGroup']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['tax_by_group']->key => $_smarty_tpl->tpl_vars['tax_by_group']->value) {
            $_smarty_tpl->tpl_vars['tax_by_group']->_loop = true;
            ?>
					taxesArray[<?php 
            echo $_smarty_tpl->tpl_vars['tax_by_group']->value['id_tax_rules_group'];
            ?>
] = <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tax_by_group']->value);
            ?>
;
				<?php 
        }
        ?>
				ecotaxTaxRate = <?php 
        echo $_smarty_tpl->tpl_vars['ecotaxTaxRate']->value / 100;
        ?>
;
			</script>
			<div class="row">
				<div class="col-lg-6">
					<select onchange="javascript:calcPrice(); unitPriceWithTax('unit');" name="id_tax_rules_group" id="id_tax_rules_group" <?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 >
						<option value="0"><?php 
        echo smartyTranslate(array('s' => 'No Tax'), $_smarty_tpl);
        ?>
</option>
					<?php 
        $_smarty_tpl->tpl_vars['tax_rules_group'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['tax_rules_groups']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['tax_rules_group']->key => $_smarty_tpl->tpl_vars['tax_rules_group']->value) {
            $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = true;
            ?>
						<option value="<?php 
            echo $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group'];
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['product']->value->getIdTaxRulesGroup() == $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group']) {
                ?>
selected="selected"<?php 
            }
            ?>
 >
					<?php 
            echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['tax_rules_group']->value['name']);
            ?>

						</option>
					<?php 
        }
        ?>
					</select>
				</div>
				<div class="col-lg-2">
					<a class="btn btn-link confirm_leave" href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminTaxRulesGroup'), ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;addtax_rules_group&amp;id_product=<?php 
        echo $_smarty_tpl->tpl_vars['product']->value->id;
        ?>
"<?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
 disabled="disabled"<?php 
        }
        ?>
>
						<i class="icon-plus-sign"></i> <?php 
        echo smartyTranslate(array('s' => 'Create new tax'), $_smarty_tpl);
        ?>
 <i class="icon-external-link-sign"></i>
					</a>
				</div>
			</div>
		</div>
	</div>
	<?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
	<div class="form-group">
		<div class="col-lg-9 col-lg-offset-3">
			<div class="alert">
				<?php 
            echo smartyTranslate(array('s' => 'Taxes are currently disabled:'), $_smarty_tpl);
            ?>

				<a href="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminTaxes'), ENT_QUOTES, 'UTF-8', true);
            ?>
"><?php 
            echo smartyTranslate(array('s' => 'Click here to open the Taxes configuration page.'), $_smarty_tpl);
            ?>
</a>
				<input type="hidden" value="<?php 
            echo $_smarty_tpl->tpl_vars['product']->value->getIdTaxRulesGroup();
            ?>
" name="id_tax_rules_group" />
			</div>
		</div>
	</div>
	<?php 
        }
        ?>
	<div class="form-group" <?php 
        if (!$_smarty_tpl->tpl_vars['ps_use_ecotax']->value) {
            ?>
 style="display:none;"<?php 
        }
        ?>
>
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "ecotax", 'type' => "default"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="ecotax">
			<span class="label-tooltip" data-toggle="tooltip" title="<?php 
        echo smartyTranslate(array('s' => 'The ecotax is a local set of taxes intended to "promote ecologically sustainable activities via economic incentives". It is already included in retail price: the higher this ecotax is, the lower your margin will be.'), $_smarty_tpl);
        ?>
"><?php 
        echo smartyTranslate(array('s' => 'Ecotax (tax incl.)'), $_smarty_tpl);
        ?>
</span>
		</label>
		<div class="input-group col-lg-2">
			<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
			<input maxlength="27" id="ecotax" name="ecotax" type="text" value="<?php 
        echo sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value, $_smarty_tpl->tpl_vars['product']->value->ecotax);
        ?>
" onkeyup="$('#priceType').val('TI');if (isArrowKey(event))return; calcPriceTE(); this.value = this.value.replace(/,/g, '.'); if (parseInt(this.value) > getE('priceTE').value) this.value = getE('priceTE').value; if (isNaN(this.value)) this.value = 0;" />
		</div>
	</div>
	<div class="form-group" <?php 
        if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value || $_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
style="display:none;"<?php 
        }
        ?>
 >
		<label class="control-label col-lg-3" for="priceTI"><?php 
        echo smartyTranslate(array('s' => 'Retail price with tax'), $_smarty_tpl);
        ?>
</label>
		<div class="input-group col-lg-2">
			<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
			<input id="priceType" name="priceType" type="hidden" value="TE" />
			<input id="priceTI" name="priceTI" type="text" value="" onchange="noComma('priceTI');" maxlength="27" onkeyup="$('#priceType').val('TI');if (isArrowKey(event)) return;  calcPriceTE();" />
		</div>
		<?php 
        if (isset($_smarty_tpl->tpl_vars['pack']->value) && $_smarty_tpl->tpl_vars['pack']->value->isPack($_smarty_tpl->tpl_vars['product']->value->id)) {
            ?>
<p class="col-lg-9 col-lg-offset-3 help-block"><?php 
            ob_start();
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price' => sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value, $_smarty_tpl->tpl_vars['pack']->value->noPackPrice($_smarty_tpl->tpl_vars['product']->value->id))), $_smarty_tpl);
            $_tmp4 = ob_get_clean();
            echo smartyTranslate(array('s' => 'The sum of prices of the products in the pack is %s%s%s', 'sprintf' => array($_smarty_tpl->tpl_vars['currency']->value->prefix, $_tmp4, $_smarty_tpl->tpl_vars['currency']->value->suffix)), $_smarty_tpl);
            ?>
</p><?php 
        }
        ?>
	</div>

	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "unit_price", 'type' => "unit_price"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="unit_price">
			<span class="label-tooltip" data-toggle="tooltip" title="<?php 
        echo smartyTranslate(array('s' => 'When selling a pack of items, you can indicate the unit price for each item of the pack. For instance, "per bottle" or "per pound".'), $_smarty_tpl);
        ?>
"><?php 
        echo smartyTranslate(array('s' => 'Unit price (tax excl.)'), $_smarty_tpl);
        ?>
</span>
		</label>
		<div class="col-lg-4">
			<div class="input-group">
				<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
				<input id="unit_price" name="unit_price" type="text" value="<?php 
        echo sprintf('%.6f', $_smarty_tpl->tpl_vars['unit_price']->value);
        ?>
" maxlength="27" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); unitPriceWithTax('unit');"/>
				<span class="input-group-addon"><?php 
        echo smartyTranslate(array('s' => 'per'), $_smarty_tpl);
        ?>
</span>
				<input id="unity" name="unity" type="text" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->unity);
        ?>
"  maxlength="255" onkeyup="if (isArrowKey(event)) return ;unitySecond();" onchange="unitySecond();"/>
			</div>
		</div>
	</div>
	<?php 
        if (isset($_smarty_tpl->tpl_vars['product']->value->unity) && $_smarty_tpl->tpl_vars['product']->value->unity) {
            ?>
	<div class="form-group">
		<div class="col-lg-9 col-lg-offset-3">
			<div class="alert alert-warning">
				<span><?php 
            echo smartyTranslate(array('s' => 'or'), $_smarty_tpl);
            ?>

					<?php 
            echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
            ?>
<span id="unit_price_with_tax">0.00</span><?php 
            echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
            ?>

					<?php 
            echo smartyTranslate(array('s' => 'per'), $_smarty_tpl);
            ?>
 <span id="unity_second"><?php 
            echo $_smarty_tpl->tpl_vars['product']->value->unity;
            ?>
</span><?php 
            if ($_smarty_tpl->tpl_vars['ps_tax']->value && $_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
                ?>
 <?php 
                echo smartyTranslate(array('s' => '(tax incl.)'), $_smarty_tpl);
            }
            ?>
				</span>
			</div>
		</div>
	</div>
	<?php 
        }
        ?>
	<div class="form-group">
		<div class="col-lg-1"><span class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field' => "on_sale", 'type' => "default"), 0);
        ?>
</span></div>
		<label class="control-label col-lg-2" for="on_sale">&nbsp;</label>
		<div class="col-lg-9">
			<div class="checkbox">
				<label class="control-label" for="on_sale" >
					<input type="checkbox" name="on_sale" id="on_sale" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->on_sale) {
            ?>
checked="checked"<?php 
        }
        ?>
 value="1" />
					<?php 
        echo smartyTranslate(array('s' => 'Display the "on sale" icon on the product page, and in the text found within the product listing.'), $_smarty_tpl);
        ?>

				</label>
			</div>
		</div>
	</div>
	<div class="form-group">
		<div class="col-lg-9 col-lg-offset-3">
			<div class="alert alert-warning">
				<strong><?php 
        echo smartyTranslate(array('s' => 'Final retail price:'), $_smarty_tpl);
        ?>
</strong>
				<span>
					<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        ?>

					<span id="finalPrice" >0.00</span>
					<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>

					<span<?php 
        if (!$_smarty_tpl->tpl_vars['ps_tax']->value) {
            ?>
 style="display:none;"<?php 
        }
        ?>
> (<?php 
        echo smartyTranslate(array('s' => 'tax incl.'), $_smarty_tpl);
        ?>
)</span>
				</span>
				<span<?php 
        if (!$_smarty_tpl->tpl_vars['ps_tax']->value) {
            ?>
 style="display:none;"<?php 
        }
        ?>
 >
				<?php 
        if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
            ?>
					/
				<?php 
        }
        ?>
					<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        ?>

				<span id="finalPriceWithoutTax"></span>
					<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>

					<?php 
        if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
            ?>
(<?php 
            echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl);
            ?>
)<?php 
        }
        ?>
				</span>
			</div>
		</div>
	</div>
	<div class="panel-footer">
		<a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts'), ENT_QUOTES, 'UTF-8', true);
        if (isset($_REQUEST['page']) && $_REQUEST['page'] > 1) {
            ?>
&amp;submitFilterproduct=<?php 
            echo intval($_REQUEST['page']);
        }
        ?>
" class="btn btn-default"><i class="process-icon-cancel"></i> <?php 
        echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl);
        ?>
</a>
		<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> <?php 
        echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl);
        ?>
</button>
		<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> <?php 
        echo smartyTranslate(array('s' => 'Save and stay'), $_smarty_tpl);
        ?>
</button>
	</div>
</div>
<?php 
        if (isset($_smarty_tpl->tpl_vars['specificPriceModificationForm']->value)) {
            ?>
<div class="panel">
	<h3><?php 
            echo smartyTranslate(array('s' => 'Specific prices'), $_smarty_tpl);
            ?>
</h3>
	<div class="alert alert-info">
		<?php 
            echo smartyTranslate(array('s' => 'You can set specific prices for clients belonging to different groups, different countries, etc.'), $_smarty_tpl);
            ?>

	</div>
	<div class="form-group">
		<div class="col-lg-12">
			<a class="btn btn-default" href="#" id="show_specific_price">
				<i class="icon-plus-sign"></i> <?php 
            echo smartyTranslate(array('s' => 'Add a new specific price'), $_smarty_tpl);
            ?>

			</a>
			<a class="btn btn-default" href="#" id="hide_specific_price" style="display:none">
				<i class="icon-remove text-danger"></i> <?php 
            echo smartyTranslate(array('s' => 'Cancel new specific price'), $_smarty_tpl);
            ?>

			</a>
		</div>
	</div>
	<script type="text/javascript">
		var product_prices = new Array();
		<?php 
            $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['combination']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['combinations']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value) {
                $_smarty_tpl->tpl_vars['combination']->_loop = true;
                ?>
			product_prices['<?php 
                echo $_smarty_tpl->tpl_vars['combination']->value['id_product_attribute'];
                ?>
'] = '<?php 
                echo addcslashes($_smarty_tpl->tpl_vars['combination']->value['price'], '\'');
                ?>
';
		<?php 
            }
            ?>
	</script>
	<div id="add_specific_price" class="well clearfix" style="display: none;">
		<div class="col-lg-12">
			<div class="form-group">
				<label class="control-label col-lg-2" for="<?php 
            if (!$_smarty_tpl->tpl_vars['multi_shop']->value) {
                ?>
spm_currency_0<?php 
            } else {
                ?>
sp_id_shop<?php 
            }
            ?>
"><?php 
            echo smartyTranslate(array('s' => 'For'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-9">
					<div class="row">
					<?php 
            if (!$_smarty_tpl->tpl_vars['multi_shop']->value) {
                ?>
						<input type="hidden" name="sp_id_shop" value="0" />
					<?php 
            } else {
                ?>
						<div class="col-lg-3">
							<select name="sp_id_shop" id="sp_id_shop">
								<?php 
                if (!$_smarty_tpl->tpl_vars['admin_one_shop']->value) {
                    ?>
<option value="0"><?php 
                    echo smartyTranslate(array('s' => 'All shops'), $_smarty_tpl);
                    ?>
</option><?php 
                }
                ?>
								<?php 
                $_smarty_tpl->tpl_vars['shop'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['shop']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['shops']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['shop']->key => $_smarty_tpl->tpl_vars['shop']->value) {
                    $_smarty_tpl->tpl_vars['shop']->_loop = true;
                    ?>
								<option value="<?php 
                    echo $_smarty_tpl->tpl_vars['shop']->value['id_shop'];
                    ?>
"><?php 
                    echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['shop']->value['name']);
                    ?>
</option>
								<?php 
                }
                ?>
							</select>
						</div>
					<?php 
            }
            ?>
						<div class="col-lg-3">
							<select name="sp_id_currency" id="spm_currency_0" onchange="changeCurrencySpecificPrice(0);">
								<option value="0"><?php 
            echo smartyTranslate(array('s' => 'All currencies'), $_smarty_tpl);
            ?>
</option>
								<?php 
            $_smarty_tpl->tpl_vars['curr'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['curr']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['currencies']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['curr']->key => $_smarty_tpl->tpl_vars['curr']->value) {
                $_smarty_tpl->tpl_vars['curr']->_loop = true;
                ?>
								<option value="<?php 
                echo $_smarty_tpl->tpl_vars['curr']->value['id_currency'];
                ?>
"><?php 
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['curr']->value['name']);
                ?>
</option>
								<?php 
            }
            ?>
							</select>
						</div>
						<div class="col-lg-3">
							<select name="sp_id_country" id="sp_id_country">
								<option value="0"><?php 
            echo smartyTranslate(array('s' => 'All countries'), $_smarty_tpl);
            ?>
</option>
								<?php 
            $_smarty_tpl->tpl_vars['country'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['country']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['countries']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['country']->key => $_smarty_tpl->tpl_vars['country']->value) {
                $_smarty_tpl->tpl_vars['country']->_loop = true;
                ?>
								<option value="<?php 
                echo $_smarty_tpl->tpl_vars['country']->value['id_country'];
                ?>
"><?php 
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['country']->value['name']);
                ?>
</option>
								<?php 
            }
            ?>
							</select>
						</div>
						<div class="col-lg-3">
							<select name="sp_id_group" id="sp_id_group">
								<option value="0"><?php 
            echo smartyTranslate(array('s' => 'All groups'), $_smarty_tpl);
            ?>
</option>
								<?php 
            $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['group']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['groups']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
                $_smarty_tpl->tpl_vars['group']->_loop = true;
                ?>
								<option value="<?php 
                echo $_smarty_tpl->tpl_vars['group']->value['id_group'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['group']->value['name'];
                ?>
</option>
								<?php 
            }
            ?>
							</select>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-lg-2" for="customer"><?php 
            echo smartyTranslate(array('s' => 'Customer'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-4">
					<input type="hidden" name="sp_id_customer" id="id_customer" value="0" />
					<div class="input-group">
						<input type="text" name="customer" value="<?php 
            echo smartyTranslate(array('s' => 'All customers'), $_smarty_tpl);
            ?>
" id="customer" autocomplete="off" />
						<span class="input-group-addon"><i id="customerLoader" class="icon-refresh icon-spin" style="display: none;"></i> <i class="icon-search"></i></span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-lg-10 col-lg-offset-2">
					<div id="customers"></div>
				</div>
			</div>
			<?php 
            if (count($_smarty_tpl->tpl_vars['combinations']->value) != 0) {
                ?>
			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_id_product_attribute"><?php 
                echo smartyTranslate(array('s' => 'Combination:'), $_smarty_tpl);
                ?>
</label>
				<div class="col-lg-4">
					<select id="sp_id_product_attribute" name="sp_id_product_attribute">
						<option value="0"><?php 
                echo smartyTranslate(array('s' => 'Apply to all combinations'), $_smarty_tpl);
                ?>
</option>
					<?php 
                $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['combination']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['combinations']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value) {
                    $_smarty_tpl->tpl_vars['combination']->_loop = true;
                    ?>
						<option value="<?php 
                    echo $_smarty_tpl->tpl_vars['combination']->value['id_product_attribute'];
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['combination']->value['attributes'];
                    ?>
</option>
					<?php 
                }
                ?>
					</select>
				</div>
			</div>
			<?php 
            }
            ?>
			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_from"><?php 
            echo smartyTranslate(array('s' => 'Available'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-9">
					<div class="row">
						<div class="col-lg-4">
							<div class="input-group">
								<span class="input-group-addon"><?php 
            echo smartyTranslate(array('s' => 'from'), $_smarty_tpl);
            ?>
</span>
								<input type="text" name="sp_from" class="datepicker" value="" style="text-align: center" id="sp_from" />
								<span class="input-group-addon"><i class="icon-calendar-empty"></i></span>
							</div>
						</div>
						<div class="col-lg-4">
							<div class="input-group">
								<span class="input-group-addon"><?php 
            echo smartyTranslate(array('s' => 'to'), $_smarty_tpl);
            ?>
</span>
								<input type="text" name="sp_to" class="datepicker" value="" style="text-align: center" id="sp_to" />
								<span class="input-group-addon"><i class="icon-calendar-empty"></i></span>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_from_quantity"><?php 
            echo smartyTranslate(array('s' => 'Starting at'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-4">
					<div class="input-group">
						<span class="input-group-addon"><?php 
            echo smartyTranslate(array('s' => 'unit'), $_smarty_tpl);
            ?>
</span>
						<input type="text" name="sp_from_quantity" id="sp_from_quantity" value="1" />
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_price"><?php 
            echo smartyTranslate(array('s' => 'Product price'), $_smarty_tpl);
            ?>

					<?php 
            if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
                ?>
						<?php 
                echo smartyTranslate(array('s' => '(tax excl.)'), $_smarty_tpl);
                ?>

					<?php 
            }
            ?>
				</label>
				<div class="col-lg-9">
					<div class="row">
						<div class="col-lg-4">
							<div class="input-group">
								<span class="input-group-addon"><?php 
            echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
            echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
            ?>
</span>
								<input type="text" disabled="disabled" name="sp_price" id="sp_price" value="<?php 
            echo sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value, $_smarty_tpl->tpl_vars['product']->value->price);
            ?>
" />
							</div>
							<p class="checkbox">
								<label for="leave_bprice"><?php 
            echo smartyTranslate(array('s' => 'Leave base price:'), $_smarty_tpl);
            ?>
</label>
								<input type="checkbox" id="leave_bprice" name="leave_bprice"  value="1" checked="checked"  />
							</p>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_reduction"><?php 
            echo smartyTranslate(array('s' => 'Apply a discount of'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-4">
					<div class="row">
						<div class="col-lg-3">
							<input type="text" name="sp_reduction" id="sp_reduction" value="0.00"/>
						</div>
						<div class="col-lg-6">
							<select name="sp_reduction_type" id="sp_reduction_type">
								<option value="amount" selected="selected"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value->name, ENT_QUOTES, 'UTF-8', true);
            ?>
</option>
								<option value="percentage"><?php 
            echo smartyTranslate(array('s' => '%'), $_smarty_tpl);
            ?>
</option>
							</select>
						</div>
						<div class="col-lg-3">
							<select name="sp_reduction_tax" id="sp_reduction_tax">
								<option value="0"><?php 
            echo smartyTranslate(array('s' => 'Tax excluded'), $_smarty_tpl);
            ?>
</option>
								<option value="1" selected="selected"><?php 
            echo smartyTranslate(array('s' => 'Tax included'), $_smarty_tpl);
            ?>
</option>
							</select>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		var currencyName = '<?php 
            echo addcslashes(htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value->name, ENT_QUOTES, 'UTF-8', true), '\'');
            ?>
';
		$(document).ready(function(){
			product_prices['0'] = $('#sp_current_ht_price').html();
			$('#id_product_attribute').change(function() {
				$('#sp_current_ht_price').html(product_prices[$('#id_product_attribute option:selected').val()]);
			});
			$('#leave_bprice').click(function() {
				if (this.checked)
					$('#sp_price').attr('disabled', 'disabled');
				else
					$('#sp_price').removeAttr('disabled');
			});
			$('.datepicker').datetimepicker({
				prevText: '',
				nextText: '',
				dateFormat: 'yy-mm-dd',
				// Define a custom regional settings in order to use PrestaShop translation tools
				currentText: '<?php 
            echo smartyTranslate(array('s' => 'Now', 'js' => 1), $_smarty_tpl);
            ?>
',
				closeText: '<?php 
            echo smartyTranslate(array('s' => 'Done', 'js' => 1), $_smarty_tpl);
            ?>
',
				ampm: false,
				amNames: ['AM', 'A'],
				pmNames: ['PM', 'P'],
				timeFormat: 'hh:mm:ss tt',
				timeSuffix: '',
				timeOnlyTitle: '<?php 
            echo smartyTranslate(array('s' => 'Choose Time', 'js' => 1), $_smarty_tpl);
            ?>
',
				timeText: '<?php 
            echo smartyTranslate(array('s' => 'Time', 'js' => 1), $_smarty_tpl);
            ?>
',
				hourText: '<?php 
            echo smartyTranslate(array('s' => 'Hour', 'js' => 1), $_smarty_tpl);
            ?>
',
				minuteText: '<?php 
            echo smartyTranslate(array('s' => 'Minute', 'js' => 1), $_smarty_tpl);
            ?>
'
			});
			$('#sp_reduction_type').on('change', function() {
				if (this.value == 'percentage')
					$('#sp_reduction_tax').hide();
				else
					$('#sp_reduction_tax').show();
			});
		});
	</script>
	<div class="table-responsive">
	<table id="specific_prices_list" class="table table-bordered">
		<thead>
			<tr>
				<th><?php 
            echo smartyTranslate(array('s' => 'Rule'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Combination'), $_smarty_tpl);
            ?>
</th>
				<?php 
            if ($_smarty_tpl->tpl_vars['multi_shop']->value) {
                ?>
<th><?php 
                echo smartyTranslate(array('s' => 'Shop'), $_smarty_tpl);
                ?>
</th><?php 
            }
            ?>
				<th><?php 
            echo smartyTranslate(array('s' => 'Currency'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Country'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Group'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Customer'), $_smarty_tpl);
            ?>
</th>
				<?php 
            if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
                ?>
					<th><?php 
                echo smartyTranslate(array('s' => 'Fixed price (tax excl.)'), $_smarty_tpl);
                ?>
</th>
				<?php 
            } else {
                ?>
					<th><?php 
                echo smartyTranslate(array('s' => 'Fixed price'), $_smarty_tpl);
                ?>
</th>
				<?php 
            }
            ?>
				<th><?php 
            echo smartyTranslate(array('s' => 'Impact'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Period'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'From (quantity)'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Action'), $_smarty_tpl);
            ?>
</th>
			</tr>
		</thead>
		<tbody>
			<?php 
            echo $_smarty_tpl->tpl_vars['specificPriceModificationForm']->value;
            ?>

				<script type="text/javascript">
					$(document).ready(function() {
						delete_price_rule = '<?php 
            echo smartyTranslate(array('s' => "Do you really want to remove this price rule?"), $_smarty_tpl);
            ?>
';
						calcPriceTI();
						unitPriceWithTax('unit');
						});
				</script>
			<?php 
        }
    }
    function content_55783dac526d02_20531306($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
<div class="translatable-field row lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
	<div class="col-lg-9">
<?php 
            }
            ?>
		<textarea id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" class="<?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value)) {
                echo $_smarty_tpl->tpl_vars['class']->value;
            } else {
                ?>
textarea-autosize<?php 
            }
            ?>
"><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
    <span class="counter" data-max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
	</div>
	<div class="col-lg-2">
		<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>

			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
			<?php 
                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['language']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                    ?>
			<li><a href="javascript:tabs_manager.allow_hide_other_languages = false;hideOtherLanguage(<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                    ?>
);"><?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                    ?>
</a></li>
			<?php 
                }
                ?>
		</ul>
	</div>
</div>
<?php 
            }
        }
        ?>

<script type="text/javascript">
	$(".textarea-autosize").autosize();
</script>
<?php 
    }
    function content_530ff8fa677fe3_24615047($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<script type="text/javascript">
var Customer = new Object();
var product_url = '<?php 
        echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts', true));
        ?>
';
var ecotax_tax_excl = parseFloat(<?php 
        echo $_smarty_tpl->tpl_vars['ecotax_tax_excl']->value;
        ?>
);
$(document).ready(function () {
	Customer = {
		"hiddenField": jQuery('#id_customer'),
		"field": jQuery('#customer'),
		"container": jQuery('#customers'),
		"loader": jQuery('#customerLoader'),
		"init": function() {
			jQuery(Customer.field).typeWatch({
				"captureLength": 1,
				"highlight": true,
				"wait": 50,
				"callback": Customer.search
			}).focus(Customer.placeholderIn).blur(Customer.placeholderOut);
		},
		"placeholderIn": function() {
			if (this.value == '<?php 
        echo smartyTranslate(array('s' => 'All customers'), $_smarty_tpl);
        ?>
') {
				this.value = '';
			}
		},
		"placeholderOut": function() {
			if (this.value == '') {
				this.value = '<?php 
        echo smartyTranslate(array('s' => 'All customers'), $_smarty_tpl);
        ?>
';
			}
		},
		"search": function()
		{
			Customer.showLoader();
			jQuery.ajax({
				"type": "POST",
				"url": "<?php 
        echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomers'));
        ?>
",
				"async": true,
				"dataType": "json",
				"data": {
					"ajax": "1",
					"token": "<?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminCustomers'), $_smarty_tpl);
        ?>
",
					"tab": "AdminCustomers",
					"action": "searchCustomers",
					"customer_search": Customer.field.val()
				},
				"success": Customer.success
			});
		},
		"success": function(result)
		{
			if(result.found) {
				var html = '<ul class="clearfix">';
				jQuery.each(result.customers, function() {
					html += '<li><a class="fancybox" href="<?php 
        echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomers');
        ?>
&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1">'+this.firstname+' '+this.lastname+'</a>'+(this.birthday ? ' - '+this.birthday:'')+'<br/>';
					html += '<a href="mailto:'+this.email+'">'+this.email+'</a><br />';
					html += '<a onclick="Customer.select('+this.id_customer+', \''+this.firstname+' '+this.lastname+'\'); return false;" href="#" class="button"><?php 
        echo smartyTranslate(array('s' => 'Choose'), $_smarty_tpl);
        ?>
</a></li>';
				});
				html += '</ul>';
			}
			else
				html = '<div class="alert alert-warning"><?php 
        echo smartyTranslate(array('s' => 'No customers found'), $_smarty_tpl);
        ?>
</div>';
			Customer.hideLoader();
			Customer.container.html(html);
			jQuery('.fancybox', Customer.container).fancybox();
		},
		"select": function(id_customer, fullname)
		{
			Customer.hiddenField.val(id_customer);
			Customer.field.val(fullname);
			Customer.container.empty();
			return false;
		},
		"showLoader": function() {
			Customer.loader.fadeIn();
		},
		"hideLoader": function() {
			Customer.loader.fadeOut();
		}
	};
	Customer.init();
});
</script>
<div id="product-prices" class="panel product-tab">
	<input type="hidden" name="submitted_tabs[]" value="Prices" />
	<h3><?php 
        echo smartyTranslate(array('s' => 'Product price'), $_smarty_tpl);
        ?>
</h3>

	<div class="alert alert-info">
		<?php 
        echo smartyTranslate(array('s' => 'You must enter either the pre-tax retail price, or the retail price with tax. The input field will be automatically calculated.'), $_smarty_tpl);
        ?>

	</div>

	<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('product_tab' => "Prices"), 0);
        ?>

	<div class="form-group">
		<label class="control-label col-lg-3" for="wholesale_price">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "wholesale_price", 'type' => "default"), 0);
        ?>

			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'Wholesale price'), $_smarty_tpl);
        ?>
">
				<?php 
        echo smartyTranslate(array('s' => 'Pre-tax wholesale price:'), $_smarty_tpl);
        ?>

			</span>

		</label>
		<div class="input-group col-lg-2">
			<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
			<input maxlength="14" name="wholesale_price" id="wholesale_price" type="text" value="<?php 
        ob_start();
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->wholesale_price), $_smarty_tpl);
        $_tmp1 = ob_get_clean();
        echo sprintf('%.2f', $_tmp1);
        ?>
" onchange="this.value = this.value.replace(/,/g, '.');" />
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-lg-3" for="priceTE">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "price", 'type' => "price"), 0);
        ?>

			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'The pre-tax retail price to sell this product'), $_smarty_tpl);
        ?>
">
				<?php 
        echo smartyTranslate(array('s' => 'Pre-tax retail price:'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="input-group col-lg-2">
			<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
			<input type="hidden"  id="priceTEReal" name="price" value="<?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->price), $_smarty_tpl);
        ?>
" />
			<input size="11" maxlength="14" id="priceTE" name="price_displayed" type="text" value="<?php 
        ob_start();
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->price), $_smarty_tpl);
        $_tmp2 = ob_get_clean();
        echo sprintf('%.2f', $_tmp2);
        ?>
" onchange="noComma('priceTE'); $('#priceTEReal').val(this.value);" onkeyup="$('#priceType').val('TE'); $('#priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return; calcPriceTI();" />
		</div>
	</div>

	<div class="form-group">		
		<label class="control-label col-lg-3" for="id_tax_rules_group">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "id_tax_rules_group", 'type' => "default"), 0);
        ?>

			<?php 
        echo smartyTranslate(array('s' => 'Tax rule:'), $_smarty_tpl);
        ?>

		</label>
		<div class="col-lg-8">
			<script type="text/javascript">
				noTax = <?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
true<?php 
        } else {
            ?>
false<?php 
        }
        ?>
;
				taxesArray = new Array ();
				taxesArray[0] = 0;
				<?php 
        $_smarty_tpl->tpl_vars['tax_rules_group'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['tax_rules_groups']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['tax_rules_group']->key => $_smarty_tpl->tpl_vars['tax_rules_group']->value) {
            $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = true;
            ?>
					<?php 
            if (isset($_smarty_tpl->tpl_vars['taxesRatesByGroup']->value[$_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group']])) {
                ?>
					taxesArray[<?php 
                echo $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group'];
                ?>
] = <?php 
                echo $_smarty_tpl->tpl_vars['taxesRatesByGroup']->value[$_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group']];
                ?>
;
						<?php 
            } else {
                ?>
					taxesArray[<?php 
                echo $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group'];
                ?>
] = 0;
					<?php 
            }
            ?>
				<?php 
        }
        ?>
				ecotaxTaxRate = <?php 
        echo $_smarty_tpl->tpl_vars['ecotaxTaxRate']->value / 100;
        ?>
;
			</script>
			<div class="row">
				<div class="col-lg-6">
					<select onChange="javascript:calcPrice(); unitPriceWithTax('unit');" name="id_tax_rules_group" id="id_tax_rules_group" <?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 >
						<option value="0"><?php 
        echo smartyTranslate(array('s' => 'No Tax'), $_smarty_tpl);
        ?>
</option>
					<?php 
        $_smarty_tpl->tpl_vars['tax_rules_group'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['tax_rules_groups']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['tax_rules_group']->key => $_smarty_tpl->tpl_vars['tax_rules_group']->value) {
            $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = true;
            ?>
						<option value="<?php 
            echo $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group'];
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['product']->value->getIdTaxRulesGroup() == $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group']) {
                ?>
selected="selected"<?php 
            }
            ?>
 >
					<?php 
            echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['tax_rules_group']->value['name']);
            ?>

						</option>
					<?php 
        }
        ?>
					</select>
				</div>
				<div class="col-lg-2">
					<a class="btn btn-link confirm_leave" href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminTaxRulesGroup'), 'html', 'UTF-8');
        ?>
&addtax_rules_group&id_product=<?php 
        echo $_smarty_tpl->tpl_vars['product']->value->id;
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
>
						<i class="icon-plus-sign"></i>  <?php 
        echo smartyTranslate(array('s' => 'Create new tax'), $_smarty_tpl);
        ?>
 <i class="icon-external-link-sign"></i>
					</a>
				</div>
			</div>
		</div>
	</div>

	<?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
	<div class="form-group">
		<div class="col-lg-9 col-lg-offset-3">
			<div class="alert">
				<?php 
            echo smartyTranslate(array('s' => 'Taxes are currently disabled'), $_smarty_tpl);
            ?>
 :
				<a href="<?php 
            echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminTaxes'), 'html', 'UTF-8');
            ?>
"><?php 
            echo smartyTranslate(array('s' => 'Tax options'), $_smarty_tpl);
            ?>
</a>
				<input type="hidden" value="<?php 
            echo $_smarty_tpl->tpl_vars['product']->value->getIdTaxRulesGroup();
            ?>
" name="id_tax_rules_group" />
			</div>
		</div>
	</div>
	<?php 
        }
        ?>

	<div class="form-group" <?php 
        if (!$_smarty_tpl->tpl_vars['ps_use_ecotax']->value) {
            ?>
 style="display:none;"<?php 
        }
        ?>
>
		<label class="control-label col-lg-3" for="ecotax">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "ecotax", 'type' => "default"), 0);
        ?>

			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'already included in price'), $_smarty_tpl);
        ?>
">
				<?php 
        echo smartyTranslate(array('s' => 'Eco-tax (tax incl.):'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="input-group col-lg-2">
			<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
			<input maxlength="14" id="ecotax" name="ecotax" type="text" value="<?php 
        echo sprintf('%.2f', $_smarty_tpl->tpl_vars['product']->value->ecotax);
        ?>
" onkeyup="$('#priceType').val('TI');if (isArrowKey(event))return; calcPriceTE(); this.value = this.value.replace(/,/g, '.'); if (parseInt(this.value) > getE('priceTE').value) this.value = getE('priceTE').value; if (isNaN(this.value)) this.value = 0;" />
		</div>
	</div>

	<div class="form-group" <?php 
        if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value || $_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
style="display:none;"<?php 
        }
        ?>
 >
		<label class="control-label col-lg-3" for="priceTI"><?php 
        echo smartyTranslate(array('s' => 'Retail price with tax:'), $_smarty_tpl);
        ?>
</label>
		<div class="input-group col-lg-2">
			<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
			<input id="priceType" name="priceType" type="hidden" value="TE" />
			<input maxlength="14" id="priceTI" type="text" value="" onchange="noComma('priceTI');" onkeyup="$('#priceType').val('TI');if (isArrowKey(event)) return;  calcPriceTE();" />
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-lg-3" for="unit_price">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "unit_price", 'type' => "unit_price"), 0);
        ?>

			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'e.g. per lb.'), $_smarty_tpl);
        ?>
">
				<?php 
        echo smartyTranslate(array('s' => 'Unit price:'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="input-group col-lg-4">
			<span class="input-group-addon"><?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>
</span>
			<input maxlength="14" id="unit_price" name="unit_price" type="text" value="<?php 
        echo sprintf('%.2f', $_smarty_tpl->tpl_vars['unit_price']->value);
        ?>
" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); unitPriceWithTax('unit');"/>
			<span class="input-group-addon"><?php 
        echo smartyTranslate(array('s' => 'per'), $_smarty_tpl);
        ?>
</span>
			<input maxlength="10" id="unity" name="unity" type="text" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->unity);
        ?>
" onkeyup="if (isArrowKey(event)) return ;unitySecond();" onchange="unitySecond();"/>
		</div>
	</div>

	<?php 
        if ($_smarty_tpl->tpl_vars['ps_tax']->value && $_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
            ?>
	<div class="form-group">
		<div class="col-lg-9 col-lg-offset-3">
			<div class="alert alert-warning">
				<span><?php 
            echo smartyTranslate(array('s' => 'or'), $_smarty_tpl);
            ?>

					<?php 
            echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
            ?>
<span id="unit_price_with_tax">0.00</span><?php 
            echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
            ?>

					<?php 
            echo smartyTranslate(array('s' => 'per'), $_smarty_tpl);
            ?>
 <span id="unity_second"><?php 
            echo $_smarty_tpl->tpl_vars['product']->value->unity;
            ?>
</span> <?php 
            echo smartyTranslate(array('s' => 'with tax'), $_smarty_tpl);
            ?>

				</span>
			</div>
		</div>
	</div>
	<?php 
        }
        ?>

	<div class="form-group">
		<label class="control-label col-lg-3" for="on_sale">
		<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "on_sale", 'type' => "default"), 0);
        ?>

		</label>
		<div class="col-lg-9">
			<div class="checkbox">
				<label class="control-label" for="on_sale" >
					<input type="checkbox" name="on_sale" id="on_sale" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->on_sale) {
            ?>
checked="checked"<?php 
        }
        ?>
 value="1" />
					<?php 
        echo smartyTranslate(array('s' => 'Display the "on sale" icon on the product page, and in the text found within the product listing.'), $_smarty_tpl);
        ?>

				</label>
			</div>
		</div>
	</div>

	<div class="form-group">
		<div class="col-lg-9 col-lg-offset-3">
			<div class="alert alert-warning">
				<strong><?php 
        echo smartyTranslate(array('s' => 'Final retail price:'), $_smarty_tpl);
        ?>
</strong>
				<span>
					<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        ?>

					<span id="finalPrice" >0.00</span>
					<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>

					<span <?php 
        if ($_smarty_tpl->tpl_vars['ps_tax']->value) {
            ?>
style="display:none;"<?php 
        }
        ?>
> (<?php 
        echo smartyTranslate(array('s' => 'tax incl.'), $_smarty_tpl);
        ?>
)</span>
				</span>
				<span <?php 
        if ($_smarty_tpl->tpl_vars['ps_tax']->value) {
            ?>
style="display:none;"<?php 
        }
        ?>
 >
				<?php 
        if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
            ?>
					/
				<?php 
        }
        ?>
					<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
        ?>

				<span id="finalPriceWithoutTax"></span>
					<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
        ?>

					<?php 
        if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
            ?>
(<?php 
            echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl);
            ?>
)<?php 
        }
        ?>
				</span>
			</div>
		</div>
	</div>
	<div class="panel-footer">
		<a href="<?php 
        echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts');
        ?>
" class="btn btn-default"><i class="process-icon-cancel"></i> <?php 
        echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl);
        ?>
</a>
		<button type="submit" name="submitAddproduct" class="btn btn-default pull-right"><i class="process-icon-save"></i> <?php 
        echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl);
        ?>
</button>
		<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right"><i class="process-icon-save"></i> <?php 
        echo smartyTranslate(array('s' => 'Save and stay'), $_smarty_tpl);
        ?>
</button>
	</div>
</div>

<?php 
        if (isset($_smarty_tpl->tpl_vars['specificPriceModificationForm']->value)) {
            ?>
<div class="panel">
	<h3><?php 
            echo smartyTranslate(array('s' => 'Specific prices'), $_smarty_tpl);
            ?>
</h3>

	<div class="alert alert-info">
		<?php 
            echo smartyTranslate(array('s' => 'You can set specific prices for clients belonging to different groups, different countries, etc...'), $_smarty_tpl);
            ?>

	</div>

	<div class="form-group">
		<div class="col-lg-12">
			<a class="btn btn-default" href="#" id="show_specific_price">
				<i class="icon-plus-sign"></i> <?php 
            echo smartyTranslate(array('s' => 'Add a new specific price'), $_smarty_tpl);
            ?>

			</a>
			<a class="btn btn-default" href="#" id="hide_specific_price" style="display:none">
				<i class="icon-remove text-danger"></i> <?php 
            echo smartyTranslate(array('s' => 'Cancel new specific price'), $_smarty_tpl);
            ?>

			</a>
		</div>
	</div>

	<script type="text/javascript">
		var product_prices = new Array();
		<?php 
            $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['combination']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['combinations']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value) {
                $_smarty_tpl->tpl_vars['combination']->_loop = true;
                ?>
			product_prices['<?php 
                echo $_smarty_tpl->tpl_vars['combination']->value['id_product_attribute'];
                ?>
'] = '<?php 
                echo addcslashes($_smarty_tpl->tpl_vars['combination']->value['price'], '\'');
                ?>
';
		<?php 
            }
            ?>
	</script>

	<div id="add_specific_price" class="well clearfix" style="display: none;">
		<div class="col-lg-12">
			<div class="form-group">
				<label class="control-label col-lg-2" for="<?php 
            if (!$_smarty_tpl->tpl_vars['multi_shop']->value) {
                ?>
spm_currency_0<?php 
            } else {
                ?>
sp_id_shop<?php 
            }
            ?>
"><?php 
            echo smartyTranslate(array('s' => 'For'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-9">
					<div class="row">
					<?php 
            if (!$_smarty_tpl->tpl_vars['multi_shop']->value) {
                ?>
						<input type="hidden" name="sp_id_shop" value="0" />
					<?php 
            } else {
                ?>
						<div class="col-lg-3">
							<select name="sp_id_shop" id="sp_id_shop">
								<?php 
                if (!$_smarty_tpl->tpl_vars['admin_one_shop']->value) {
                    ?>
<option value="0"><?php 
                    echo smartyTranslate(array('s' => 'All shops'), $_smarty_tpl);
                    ?>
</option><?php 
                }
                ?>
								<?php 
                $_smarty_tpl->tpl_vars['shop'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['shop']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['shops']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['shop']->key => $_smarty_tpl->tpl_vars['shop']->value) {
                    $_smarty_tpl->tpl_vars['shop']->_loop = true;
                    ?>
								<option value="<?php 
                    echo $_smarty_tpl->tpl_vars['shop']->value['id_shop'];
                    ?>
"><?php 
                    echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['shop']->value['name']);
                    ?>
</option>
								<?php 
                }
                ?>
							</select>
						</div>
					<?php 
            }
            ?>
						<div class="col-lg-3">
							<select name="sp_id_currency" id="spm_currency_0" onchange="changeCurrencySpecificPrice(0);">
								<option value="0"><?php 
            echo smartyTranslate(array('s' => 'All currencies'), $_smarty_tpl);
            ?>
</option>
								<?php 
            $_smarty_tpl->tpl_vars['curr'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['curr']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['currencies']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['curr']->key => $_smarty_tpl->tpl_vars['curr']->value) {
                $_smarty_tpl->tpl_vars['curr']->_loop = true;
                ?>
								<option value="<?php 
                echo $_smarty_tpl->tpl_vars['curr']->value['id_currency'];
                ?>
"><?php 
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['curr']->value['name']);
                ?>
</option>
								<?php 
            }
            ?>
							</select>
						</div>
						<div class="col-lg-3">
							<select name="sp_id_country" id="sp_id_country">
								<option value="0"><?php 
            echo smartyTranslate(array('s' => 'All countries'), $_smarty_tpl);
            ?>
</option>
								<?php 
            $_smarty_tpl->tpl_vars['country'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['country']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['countries']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['country']->key => $_smarty_tpl->tpl_vars['country']->value) {
                $_smarty_tpl->tpl_vars['country']->_loop = true;
                ?>
								<option value="<?php 
                echo $_smarty_tpl->tpl_vars['country']->value['id_country'];
                ?>
"><?php 
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['country']->value['name']);
                ?>
</option>
								<?php 
            }
            ?>
							</select>
						</div>
						<div class="col-lg-3">
							<select name="sp_id_group" id="sp_id_group">
								<option value="0"><?php 
            echo smartyTranslate(array('s' => 'All groups'), $_smarty_tpl);
            ?>
</option>
								<?php 
            $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['group']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['groups']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
                $_smarty_tpl->tpl_vars['group']->_loop = true;
                ?>
								<option value="<?php 
                echo $_smarty_tpl->tpl_vars['group']->value['id_group'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['group']->value['name'];
                ?>
</option>
								<?php 
            }
            ?>
							</select>
						</div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="control-label col-lg-2" for="customer"><?php 
            echo smartyTranslate(array('s' => 'Customer'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-4">
					<input type="hidden" name="sp_id_customer" id="id_customer" value="0" />
					<div class="input-group">
						<input type="text" name="customer" value="<?php 
            echo smartyTranslate(array('s' => 'All customers'), $_smarty_tpl);
            ?>
" id="customer" autocomplete="off" />
						<span class="input-group-addon"><i class="icon-search"></i></span>
					</div>
					
				</div>
				<img src="../img/admin/field-loader.gif" id="customerLoader" alt="<?php 
            echo smartyTranslate(array('s' => 'Loading...'), $_smarty_tpl);
            ?>
" style="display: none;" />
				<div id="customers"></div>
			</div>

			<?php 
            if (count($_smarty_tpl->tpl_vars['combinations']->value) != 0) {
                ?>
			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_id_product_attribute"><?php 
                echo smartyTranslate(array('s' => 'Combination:'), $_smarty_tpl);
                ?>
</label>
				<div class="col-lg-4">
					<select id="sp_id_product_attribute" name="sp_id_product_attribute">
						<option value="0"><?php 
                echo smartyTranslate(array('s' => 'Apply to all combinations'), $_smarty_tpl);
                ?>
</option>
					<?php 
                $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['combination']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['combinations']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value) {
                    $_smarty_tpl->tpl_vars['combination']->_loop = true;
                    ?>
						<option value="<?php 
                    echo $_smarty_tpl->tpl_vars['combination']->value['id_product_attribute'];
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['combination']->value['attributes'];
                    ?>
</option>
					<?php 
                }
                ?>
					</select>
				</div>
			</div>
			<?php 
            }
            ?>

			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_from"><?php 
            echo smartyTranslate(array('s' => 'Available'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-9">
					<div class="row">
						<div class="col-lg-4">
							<div class="input-group">
								<span class="input-group-addon"><?php 
            echo smartyTranslate(array('s' => 'from'), $_smarty_tpl);
            ?>
</span>
								<input class="datepicker" type="text" name="sp_from" value="" style="text-align: center" id="sp_from" />
								<span class="input-group-addon"><i class="icon-calendar-empty"></i></span>
							</div>
						</div>
						<div class="col-lg-4">
							<div class="input-group">
								<span class="input-group-addon"><?php 
            echo smartyTranslate(array('s' => 'to'), $_smarty_tpl);
            ?>
</span>
								<input class="datepicker" type="text" name="sp_to" value="" style="text-align: center" id="sp_to" />
								<span class="input-group-addon"><i class="icon-calendar-empty"></i></span>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_from_quantity"><?php 
            echo smartyTranslate(array('s' => 'Starting at'), $_smarty_tpl);
            ?>
</label>
				<div class="input-group col-lg-4">
					<span class="input-group-addon"><?php 
            echo smartyTranslate(array('s' => 'unit'), $_smarty_tpl);
            ?>
</span>
					<input type="text" name="sp_from_quantity" id="sp_from_quantity" value="1" />
				</div>
			</div>

			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_price"><?php 
            echo smartyTranslate(array('s' => 'Product price'), $_smarty_tpl);
            ?>

					<?php 
            if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {
                ?>
						<?php 
                echo smartyTranslate(array('s' => '(tax excl.):'), $_smarty_tpl);
                ?>

					<?php 
            }
            ?>
				</label>
				<div class="col-lg-9">
					<div class="row">
						<div class="input-group col-lg-4">
							<span class="input-group-addon"><?php 
            echo $_smarty_tpl->tpl_vars['currency']->value->prefix;
            echo $_smarty_tpl->tpl_vars['currency']->value->suffix;
            ?>
</span>
							<input type="text" disabled="disabled" name="sp_price" id="sp_price" value="<?php 
            echo sprintf('%.2f', $_smarty_tpl->tpl_vars['product']->value->price);
            ?>
" />
						</div>
						<div class="col-lg-8">
							<p class="checkbox">
								<label for="leave_bprice"><?php 
            echo smartyTranslate(array('s' => 'Leave base price:'), $_smarty_tpl);
            ?>
</label>
								<input id="leave_bprice" type="checkbox" value="1" checked="checked" name="leave_bprice" />
							</p>
						</div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="control-label col-lg-2" for="sp_reduction"><?php 
            echo smartyTranslate(array('s' => 'Apply a discount of:'), $_smarty_tpl);
            ?>
</label>
				<div class="col-lg-4">
					<div class="row">
						<div class="col-lg-6">
							<input type="text" name="sp_reduction" id="sp_reduction" value="0.00"/>
						</div>
						<div class="col-lg-6">
							<select name="sp_reduction_type" id="sp_reduction_type">
								<option selected="selected">-</option>
								<option value="amount"><?php 
            echo smartyTranslate(array('s' => 'Currency Units'), $_smarty_tpl);
            ?>
</option>
								<option value="percentage"><?php 
            echo smartyTranslate(array('s' => 'Percent'), $_smarty_tpl);
            ?>
</option>
							</select>
						</div>
					</div>
				</div>
				<p class="help-block"><?php 
            echo smartyTranslate(array('s' => 'The discount is applied after the tax'), $_smarty_tpl);
            ?>
</p>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			product_prices['0'] = $('#sp_current_ht_price').html();
			$('#id_product_attribute').change(function() {
				$('#sp_current_ht_price').html(product_prices[$('#id_product_attribute option:selected').val()]);
			});
			$('#leave_bprice').click(function() {
				if (this.checked)
					$('#sp_price').attr('disabled', 'disabled');
				else
					$('#sp_price').removeAttr('disabled');
			});
			$('.datepicker').datetimepicker({
				prevText: '',
				nextText: '',
				dateFormat: 'yy-mm-dd',
				// Define a custom regional settings in order to use PrestaShop translation tools
				currentText: '<?php 
            echo smartyTranslate(array('s' => 'Now'), $_smarty_tpl);
            ?>
',
				closeText: '<?php 
            echo smartyTranslate(array('s' => 'Done'), $_smarty_tpl);
            ?>
',
				ampm: false,
				amNames: ['AM', 'A'],
				pmNames: ['PM', 'P'],
				timeFormat: 'hh:mm:ss tt',
				timeSuffix: '',
				timeOnlyTitle: '<?php 
            echo smartyTranslate(array('s' => 'Choose Time'), $_smarty_tpl);
            ?>
',
				timeText: '<?php 
            echo smartyTranslate(array('s' => 'Time'), $_smarty_tpl);
            ?>
',
				hourText: '<?php 
            echo smartyTranslate(array('s' => 'Hour'), $_smarty_tpl);
            ?>
',
				minuteText: '<?php 
            echo smartyTranslate(array('s' => 'Minute'), $_smarty_tpl);
            ?>
',
			});
		});
	</script>

	<table id="specific_prices_list" class="table table-bordered">
		<thead>
			<tr>
				<th><?php 
            echo smartyTranslate(array('s' => 'Rule'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Combination'), $_smarty_tpl);
            ?>
</th>
				<?php 
            if ($_smarty_tpl->tpl_vars['multi_shop']->value) {
                ?>
<th><?php 
                echo smartyTranslate(array('s' => 'Shop'), $_smarty_tpl);
                ?>
</th><?php 
            }
            ?>
				<th><?php 
            echo smartyTranslate(array('s' => 'Currency'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Country'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Group'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Customer'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Fixed price'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Impact'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Period'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'From (quantity)'), $_smarty_tpl);
            ?>
</th>
				<th><?php 
            echo smartyTranslate(array('s' => 'Action'), $_smarty_tpl);
            ?>
</th>
			</tr>
		</thead>
		<tbody>
			<?php 
            echo $_smarty_tpl->tpl_vars['specificPriceModificationForm']->value;
            ?>

				<script type="text/javascript">
					$(document).ready(function() {
						delete_price_rule = '<?php 
            echo smartyTranslate(array('s' => "Do you really want to remove this price rule?"), $_smarty_tpl);
            ?>
';
						calcPriceTI();
						unitPriceWithTax('unit');
						});
				</script>
			<?php 
        }
    }
    function content_56556f8bdc7414_15352542($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
		<div class="translatable-field row lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
			<div class="col-lg-9">
	<?php 
            }
            ?>
	<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value) && $_smarty_tpl->tpl_vars['maxchar']->value) {
                ?>
				<div class="input-group">
					<span id="<?php 
                if (isset($_smarty_tpl->tpl_vars['input_id']->value)) {
                    echo $_smarty_tpl->tpl_vars['input_id']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                } else {
                    echo $_smarty_tpl->tpl_vars['input_name']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                }
                ?>
_counter" class="input-group-addon">
						<span class="text-count-down"><?php 
                echo intval($_smarty_tpl->tpl_vars['maxchar']->value);
                ?>
</span>
					</span>
	<?php 
            }
            ?>
					<textarea id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" class="<?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value)) {
                echo $_smarty_tpl->tpl_vars['class']->value;
            } else {
                ?>
textarea-autosize<?php 
            }
            ?>
"<?php 
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value) && $_smarty_tpl->tpl_vars['maxlength']->value) {
                ?>
 maxlength="<?php 
                echo intval($_smarty_tpl->tpl_vars['maxlength']->value);
                ?>
"<?php 
            }
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value) && $_smarty_tpl->tpl_vars['maxchar']->value) {
                ?>
 data-maxchar="<?php 
                echo intval($_smarty_tpl->tpl_vars['maxchar']->value);
                ?>
"<?php 
            }
            ?>
><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
					<span class="counter" data-max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo intval($_smarty_tpl->tpl_vars['max']->value);
            }
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                echo intval($_smarty_tpl->tpl_vars['maxlength']->value);
            }
            if (!isset($_smarty_tpl->tpl_vars['max']->value) && !isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                ?>
none<?php 
            }
            ?>
"></span>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value) && $_smarty_tpl->tpl_vars['maxchar']->value) {
                ?>
				</div>
			<?php 
            }
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
			</div>
			<div class="col-lg-2">
				<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
					<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>

					<span class="caret"></span>
				</button>
				<ul class="dropdown-menu">
					<?php 
                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['language']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                    ?>
					<li><a href="javascript:tabs_manager.allow_hide_other_languages = false;hideOtherLanguage(<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                    ?>
);"><?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                    ?>
</a></li>
					<?php 
                }
                ?>
				</ul>
			</div>
		</div>
	<?php 
            }
        }
        ?>
<script type="text/javascript">
	<?php 
        if (isset($_smarty_tpl->tpl_vars['maxchar']->value) && $_smarty_tpl->tpl_vars['maxchar']->value) {
            ?>
		$(document).ready(function(){
		<?php 
            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['language']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['languages']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                $_smarty_tpl->tpl_vars['language']->_loop = true;
                ?>
			countDown($("#<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
"), $("#<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter"));
		<?php 
            }
            ?>
		});
	<?php 
        }
        ?>
	$(".textarea-autosize").autosize();
</script>

<?php 
    }
    function content_560ec488176005_97394311($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/prestashop/tools/smarty/plugins/modifier.replace.php';
        }
        ?>

<div class="translatable">
<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display:none;<?php 
            }
            ?>
float: left;">
	<textarea cols="100" rows="10" id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
		name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
		class="autoload_rte" ><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]), '\\r\\n', ''), '\\&quot;', '&quot;');
            }
            ?>
</textarea>
	<span class="counter" max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
	<span class="hint"><?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['hint']->value) === null || $tmp === '' ? '' : $tmp;
            ?>
<span class="hint-pointer">&nbsp;</span></span>
</div>
<?php 
        }
        ?>
</div>
<script type="text/javascript">
	var iso = '<?php 
        echo $_smarty_tpl->tpl_vars['iso_tiny_mce']->value;
        ?>
';
	var pathCSS = '<?php 
        echo @constant('_THEME_CSS_DIR_');
        ?>
';
	var ad = '<?php 
        echo $_smarty_tpl->tpl_vars['ad']->value;
        ?>
';
</script>
<?php 
    }
    function content_565952b06b80d9_07417104($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
	<div class="translatable-field row lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
		<div class="col-lg-9">
	<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
		<div class="input-group">
			<span id="<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter" class="input-group-addon">
				<span class="text-count-down"><?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
</span>
			</span>
			<?php 
            }
            ?>
			<input type="text"
			id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			class="form-control <?php 
            if (isset($_smarty_tpl->tpl_vars['input_class']->value)) {
                echo $_smarty_tpl->tpl_vars['input_class']->value;
                ?>
 <?php 
            }
            ?>
"
			name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"
			onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
			onblur="updateLinkRewrite();"
			<?php 
            if (isset($_smarty_tpl->tpl_vars['required']->value)) {
                ?>
 required="required"<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
 data-maxchar="<?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
"<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                ?>
 maxlength="<?php 
                echo $_smarty_tpl->tpl_vars['maxlength']->value;
                ?>
"<?php 
            }
            ?>
 />
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
		</div>
		<?php 
            }
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
		</div>
		<div class="col-lg-2">
			<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" tabindex="-1">
				<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>

				<span class="caret"></span>
			</button>
			<ul class="dropdown-menu">
				<?php 
                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['language']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                    ?>
				<li>
					<a href="javascript:tabs_manager.allow_hide_other_languages = false;hideOtherLanguage(<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                    ?>
);"><?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                    ?>
</a>
				</li>
				<?php 
                }
                ?>
			</ul>
		</div>
	</div>
	<?php 
            }
        }
        if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
            ?>
<script type="text/javascript">
$(document).ready(function(){
<?php 
            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['language']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['languages']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                $_smarty_tpl->tpl_vars['language']->_loop = true;
                ?>
	countDown($("#<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
"), $("#<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter"));
<?php 
            }
            ?>
});
</script>
<?php 
        }
    }
    function content_5355649bb275a0_78062842($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
	<div class="translatable-field row lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
		<div class="col-lg-9">
	<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
		<div class="input-group">
			<span id="<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter" class="input-group-addon">
				<span class="text-count-down"><?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
</span>
			</span>
			<?php 
            }
            ?>
			<input type="text"
			id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			<?php 
            if (isset($_smarty_tpl->tpl_vars['input_class']->value)) {
                ?>
class="<?php 
                echo $_smarty_tpl->tpl_vars['input_class']->value;
                ?>
"<?php 
            }
            ?>
			name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"
			onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
			onblur="updateLinkRewrite();"
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
 data-maxchar="<?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
"<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                ?>
 maxlength="<?php 
                echo $_smarty_tpl->tpl_vars['maxlength']->value;
                ?>
"<?php 
            }
            ?>
 />
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
		</div>
		<?php 
            }
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
		</div>
		<div class="col-lg-2">
			<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" tabindex="-1">
				<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>

				<span class="caret"></span>
			</button>
			<ul class="dropdown-menu">
				<?php 
                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['language']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                    ?>
				<li>
					<a href="javascript:hideOtherLanguage(<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                    ?>
);"><?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                    ?>
</a>
				</li>
				<?php 
                }
                ?>
			</ul>
		</div>
	</div>
	<?php 
            }
        }
        if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
            ?>
<script type="text/javascript">
function countDown($source, $target) {
	var max = $source.attr("data-maxchar");
	$target.html(max-$source.val().length);

	$source.keyup(function(){
		$target.html(max-$source.val().length);
	});
}

$(document).ready(function(){
<?php 
            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['language']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['languages']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                $_smarty_tpl->tpl_vars['language']->_loop = true;
                ?>
	countDown($("#<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
"), $("#<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter"));
<?php 
            }
            ?>
});
</script>
<?php 
        }
    }
    function content_55bb02f0e46041_35229835($_smarty_tpl)
    {
        ?>
    <script type="text/javascript">
      var iso = "<?php 
        echo $_smarty_tpl->tpl_vars['isoTinyMCE']->value;
        ?>
";
      var pathCSS = "<?php 
        echo $_smarty_tpl->tpl_vars['theme_css_dir']->value;
        ?>
";
      var ad = "<?php 
        echo $_smarty_tpl->tpl_vars['ad']->value;
        ?>
";
    </script>
	<script type="text/javascript">
    $(document).ready(function() {

    var stateStr = '<?php 
        echo $_smarty_tpl->tpl_vars['product_detail']->value->state[1];
        ?>
';

    if(stateStr != '') {

      var country = '<?php 
        echo $_smarty_tpl->tpl_vars['product_detail']->value->country[1];
        ?>
';

      $.ajax({
        'type': 'POST',
        'url': baseDir + 'modules/ajax_state_prod.php',
        'data': 'country='+country,
        success: function(data) {
          var obj = jQuery.parseJSON(data);

          if(obj.contain_state) {
            $.each(obj.states, function(index, value) {

              if(stateStr == value.name)
                $('#id_state').append('<option selected="selected" value="'+ value.name +'">'+ value.name +'</option>');
              else
                 $('#id_state').append('<option value="'+ value.name +'">'+ value.name +'</option>');
            });

            $('.id_state_prod').fadeIn("slow");
          } else {
             $('#id_state').val('');
             $('.id_state_prod').hide();
          }

        }
     });

      $('.id_state_prod').show();
    }
    else {
      $('#id_state').val('');
      $('.id_state_prod').hide();
    }
    tinySetup(
    {
    selector: ".rte" ,
    toolbar1 : "code,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,|,blockquote,colorpicker,pasteword,|,bullist,numlist,|,outdent,indent,|,link,unlink,|,cleanup"
    });

    $("#available_for_order").click(function(){
    if ($(this).is(':checked'))
    {
    $('#show_price').attr('checked', 'checked');
    $('#show_price').attr('disabled', 'disabled');
    }
    else
    {
    $('#show_price').removeAttr('disabled');
    }
    });
    });

    function changeMyLanguage(field, fieldsString, id_language_new, iso_code)
    {
    changeLanguage(field, fieldsString, id_language_new, iso_code);
    $("img[id^='language_current_']").attr("src","<?php 
        echo $_smarty_tpl->tpl_vars['base_dir']->value;
        ?>
img/l/" + id_language_new + ".jpg");
    }
  </script>

  <!-- CHECK IF HAS STATE AND IF HAVE SHOW STATE -->
  <script type="text/javascript">
  $(document).ready(function() {

    $('#id_country').on('change', function() {
      var country = $('#id_country').val();

     $.ajax({
        'type': 'POST',
        'url': baseDir + 'modules/ajax_state_prod.php',
        'data': 'country='+country,
        success: function(data) {
          var obj = jQuery.parseJSON(data);

          if(obj.contain_state) {
            $.each(obj.states, function(index, value) {

              $('#id_state').append('<option value="'+ value.name +'">'+ value.name +'</option>');
            });

            $('.id_state_prod').fadeIn("slow");
          } else {
             $('#id_state').val('');
             $('.id_state_prod').fadeOut("slow");
          }

        }
     });
     
    });

  });
  </script>




<?php 
        if (isset($_smarty_tpl->tpl_vars['check_product_association_ajax']->value) && $_smarty_tpl->tpl_vars['check_product_association_ajax']->value) {
            $_smarty_tpl->tpl_vars['class_input_ajax'] = new Smarty_variable('check_product_name ', null, 0);
        } else {
            $_smarty_tpl->tpl_vars['class_input_ajax'] = new Smarty_variable('', null, 0);
        }
        ?>




<input type="hidden" name="state">
<div id="product-informations" class="panel product-tab">
  <input type="hidden" name="submitted_tabs[]" value="Informations" />
  <h3 class="tab"><?php 
        echo smartyTranslate(array('s' => 'Information', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</h3>
  
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3 required" for="name_<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
">
      <span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'Invalid characters:', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
 &lt;&gt;;=#{}">
        <?php 
        echo smartyTranslate(array('s' => 'Title:', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <?php 
        ob_start();
        if (!$_smarty_tpl->tpl_vars['product']->value->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')) {
            echo "copy2friendlyUrl";
        }
        $_tmp1 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_class' => (string) $_smarty_tpl->tpl_vars['class_input_ajax']->value . $_tmp1 . " updateCurrentText", 'input_value' => $_smarty_tpl->tpl_vars['product']->value->name, 'input_name' => 'name'), 0);
        ?>

    </div>
  </div>




  
  

  


  
  <div class="form-group" <?php 
        if (empty($_smarty_tpl->tpl_vars['categories']->value)) {
            ?>
 style="display:none;" <?php 
        }
        ?>
>
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="id_category_default">
      <span>
          <?php 
        echo smartyTranslate(array('s' => 'Category', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <div class="row">
        <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
          <select id="id_category_default" name="id_category_default">
            <?php 
        $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['category']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['new_categories']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value) {
            $_smarty_tpl->tpl_vars['category']->_loop = true;
            ?>
            <optgroup label="<?php 
            echo $_smarty_tpl->tpl_vars['category']->value['name_main'];
            ?>
">
              <?php 
            if (count($_smarty_tpl->tpl_vars['category']->value['child']) > 0) {
                ?>
                <?php 
                $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['cat']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['category']->value['child'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value) {
                    $_smarty_tpl->tpl_vars['cat']->_loop = true;
                    ?>
                  <option <?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->id_category_default == $_smarty_tpl->tpl_vars['cat']->value['id_category']) {
                        ?>
selected="selected"<?php 
                    }
                    ?>
 value="<?php 
                    echo $_smarty_tpl->tpl_vars['cat']->value['id_category'];
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['cat']->value['name'];
                    ?>
</option>
                <?php 
                }
                ?>
              <?php 
            }
            ?>
            </optgroup>
            <?php 
        }
        ?>
          </select>
        </div>
      </div>
    </div>
  </div>



  
  

  
  <div class="form-group" <?php 
        if ($_smarty_tpl->tpl_vars['is_agilesellerlistoptions_installed']->value) {
        } else {
            ?>
style="display:none;"<?php 
        }
        ?>
>
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3">
      <span>
        <?php 
        echo smartyTranslate(array('s' => 'List Options', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
 
        <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
          <?php 
        echo $_smarty_tpl->tpl_vars['HOOK_PRODYCT_LIST_OPTIONS']->value;
        ?>

        </div>
    </div>
  </div>

  
  
  

  
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="price">
      <span>
        <?php 
        echo smartyTranslate(array('s' => 'Retail Price', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <div class="row">
        <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
          <div class="input-group">
            <input type="text" name="price" id="price" value="<?php 
        echo $_smarty_tpl->tpl_vars['product']->value->price;
        ?>
" class="form-control"/>
            <span class="input-group-addon">(<?php 
        echo $_smarty_tpl->tpl_vars['currency']->value->sign;
        ?>
)</span>
          </div>
           <small>Note: 012345 String is Not Available</small>
        </div>
      </div>
    </div>
  </div>

  
 

  
  <div class="form-group" style="display:none">
      <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="out_of_stock">
        <?php 
        echo smartyTranslate(array('s' => 'When out of stock', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </label>
      <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
        <p class="radio">
          <label for="out_of_stock_1" class="control-label">
            <input id="out_of_stock_1" type="radio" value="0" class="out_of_stock" name="out_of_stock" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->out_of_stock == 0) {
            ?>
 checked <?php 
        }
        ?>
 >
            <?php 
        echo smartyTranslate(array('s' => 'Deny orders', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

          </label>
        </p>
        <p class="radio">
          <label for="pack_product" class="control-label">
            <input id="out_of_stock_2" type="radio" value="1" class="out_of_stock" name="out_of_stock"  <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->out_of_stock == 1) {
            ?>
 checked <?php 
        }
        ?>
 >
                <?php 
        echo smartyTranslate(array('s' => 'Allow orders', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
:
          </label>
        </p>
        <p class="radio">
          <label for="out_of_stock_3" class="control-label">
            <input id="out_of_stock_3" type="radio" value="2" class="out_of_stock" name="out_of_stock" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->out_of_stock == 2) {
            ?>
 checked <?php 
        }
        ?>
>
              <?php 
        echo smartyTranslate(array('s' => 'Default', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
:
              <?php 
        if ($_smarty_tpl->tpl_vars['order_out_of_stock']->value == 1) {
            ?>
              <?php 
            echo smartyTranslate(array('s' => 'Allow orders', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
            ?>

              <?php 
        } else {
            ?>
              <?php 
            echo smartyTranslate(array('s' => 'Deny orders', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
            ?>

              <?php 
        }
        ?>
              <?php 
        echo smartyTranslate(array('s' => ' as set in Preferences'), $_smarty_tpl);
        ?>

            </label>
        </p>
          </div>
    </div>

  
  

  
  

  
  

  
  

  
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3">
      <?php 
        echo smartyTranslate(array('s' => 'Status:', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

    </label>
    <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
      <p class="radio">
        <label for="active_on" class="control-label">
          <input type="radio" name="active" id="active_on" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->active || !$_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {
            ?>
checked="checked" <?php 
        }
        ?>
 />
            <?php 
        echo smartyTranslate(array('s' => 'Enabled', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

          </label>
      </p>
      <p class="radio">
        <label for="active_off" class="control-label">
          <input type="radio" name="active" id="active_off" value="0" <?php 
        if (!$_smarty_tpl->tpl_vars['product']->value->active && $_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
            <?php 
        echo smartyTranslate(array('s' => 'Disabled', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

          </label>
      </p>
    </div>
  </div>

  
  <div class="form-group" style="display:none">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="visibility">
      <?php 
        echo smartyTranslate(array('s' => 'Visibility:', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <div class="row">
        <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
          <select name="visibility" id="visibility">
            <option value="both" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'both') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Everywhere', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</option>
            <option value="catalog" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'catalog') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Catalog only', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</option>
            <option value="search" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'search') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Search only', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</option>
            <option value="none" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'none') {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Nowhere', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</option>
          </select>
        </div>
      </div>
    </div>
  </div>

  
  <div style="display:none" id="product_options" class="form-group" <?php 
        if (!$_smarty_tpl->tpl_vars['product']->value->active) {
            ?>
style="display:none"<?php 
        }
        ?>
 >
    <div class="col-lg-12">
      <div class="form-group">
        <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="available_for_order">
          <?php 
        echo smartyTranslate(array('s' => 'Options', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

        </label>
        <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
          <div class="checkbox agile-padding-left20" >
            <input type="checkbox" name="available_for_order" id="available_for_order" value="1" class="comparator" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->available_for_order) {
            ?>
checked<?php 
        }
        ?>
  />
              <label for="available_for_order"><?php 
        echo smartyTranslate(array('s' => 'available for order', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</label>
            </div>
          <div class="checkbox agile-padding-left20" >
            <input type="checkbox" name="show_price" id="show_price" value="1" class="comparator" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->show_price) {
            ?>
checked="checked"<?php 
        }
        ?>
 <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->available_for_order) {
            ?>
disabled="disabled"<?php 
        }
        ?>
/>
              <label for="show_price"><?php 
        echo smartyTranslate(array('s' => 'show price', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</label>
            </div>
          <div class="checkbox agile-padding-left20" >
            <input type="checkbox" name="online_only" id="online_only" value="1" class="comparator" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->online_only) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
              <label for="online_only"><?php 
        echo smartyTranslate(array('s' => 'online only (not sold in store)', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</label>
            </div>
        </div>
      </div>
    </div>
  </div>

    
    <div class="form-group" style="display:none">
      <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="condition">
        <?php 
        echo smartyTranslate(array('s' => 'Condition', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </label>
      <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
        <div class="row">
          <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
            <select name="condition" id="condition">
              <option value="new" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'new') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'New', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</option>
              <option value="used" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'used') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Used', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</option>
              <option value="refurbished" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'refurbished') {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Refurbished', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</option>
            </select>
          </div>
        </div>
      </div>
    </div>

    
    

    
    





<div class="form-group">
      <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="description_short_<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
">
        <span class="label-tooltip" data-toggle="tooltip"
          title="<?php 
        echo smartyTranslate(array('s' => 'Appears in the product list(s), and on the top of the product page.', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
">
          <?php 
        echo smartyTranslate(array('s' => 'Short description', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

        </span>
      </label>
    <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
      <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/textarea_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_name' => 'description_short', 'input_value' => $_smarty_tpl->tpl_vars['product']->value->description_short, 'default_row' => 10, 'class' => "rte", 'max' => 400), 0);
        ?>

    </div>
  </div>

  
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="description_<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
">
      <span class="label-tooltip" data-toggle="tooltip"
        title="<?php 
        echo smartyTranslate(array('s' => 'Appears in the body of the product page', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
">
        <?php 
        echo smartyTranslate(array('s' => 'Description:', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
      <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/textarea_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_name' => 'description', 'input_value' => $_smarty_tpl->tpl_vars['product']->value->description, 'default_row' => 10, 'class' => "rte", 'max' => 400), 0);
        ?>

    </div>
  </div>




   
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="address">
      <span>
        <?php 
        echo smartyTranslate(array('s' => 'Location', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_value' => $_smarty_tpl->tpl_vars['product']->value->address, 'input_name' => 'address'), 0);
        ?>

    </div>
  </div>


   
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="address2">
      <span>
        <?php 
        echo smartyTranslate(array('s' => 'Location (Line 2)', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_value' => $_smarty_tpl->tpl_vars['product']->value->address2, 'input_name' => 'address2'), 0);
        ?>

    </div>
  </div>


   
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="city">
      <span>
        <?php 
        echo smartyTranslate(array('s' => 'City', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_value' => $_smarty_tpl->tpl_vars['product']->value->city, 'input_name' => 'city'), 0);
        ?>

    </div>
  </div>

  <div class="form-group id_state_prod">
    <label for="id_state" class="control-label agile-col-sm-3 agile-col-md-3 agile-col-lg-3 agile-col-xl-3 required">
      <span><?php 
        echo smartyTranslate(array('s' => 'State', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <div class="row">
        <div class="agile-col-sm-9 agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
          <select name="state" id="id_state">
          </select>
        </div>
      </div>
    </div>
  </div>

  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3 required" for="country">
      <span>
        <?php 
        echo smartyTranslate(array('s' => 'Country', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <div class="row">
        <div class="agile-col-sm-9 agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
          <select id="id_country" name="country">
            
            
            <?php 
        $_smarty_tpl->tpl_vars['country'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['country']->_loop = false;
        $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['countries']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['country']->key => $_smarty_tpl->tpl_vars['country']->value) {
            $_smarty_tpl->tpl_vars['country']->_loop = true;
            $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['country']->key;
            ?>
                <option <?php 
            if ($_smarty_tpl->tpl_vars['product_detail']->value->country[1] == $_smarty_tpl->tpl_vars['country']->value['name']) {
                ?>
 selected="selected"<?php 
            }
            ?>
                value="<?php 
            echo $_smarty_tpl->tpl_vars['country']->value['name'];
            ?>
">
                  <?php 
            echo $_smarty_tpl->tpl_vars['country']->value['name'];
            ?>

                </option>
              <?php 
        }
        ?>
          </select>
        </div>
      </div>
    </div>
  </div>




<div class="form-group">
    <label for="longitude" class="control-label agile-col-sm-3 agile-col-md-3 agile-col-lg-3 agile-col-xl-3">
      <span><?php 
        echo smartyTranslate(array('s' => 'Longitude', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</span>
    </label>
    <div class=" agile-col-sm-7 agile-col-md-7 agile-col-lg-7 agile-col-xl-7">
      <div class="row">
        <div class="agile-col-sm-5 agile-col-md-4 agile-col-lg-3 agile-col-xl-2">
          <input type="text" id="longitude" name="longitude" class="form-control" value="<?php 
        if (isset($_POST['longitude'])) {
            echo $_POST['longitude'];
        } else {
            if (isset($_smarty_tpl->tpl_vars['product']->value->longitude)) {
                echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->longitude, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
            }
        }
        ?>
" />
        </div>
      </div>
    </div>
  </div>

  <div class="form-group">
    <label for="latitude" class="control-label agile-col-sm-3 agile-col-md-3 agile-col-lg-3 agile-col-xl-3">
      <span><?php 
        echo smartyTranslate(array('s' => 'Latitude', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</span>
    </label>
    <div class=" agile-col-sm-7 agile-col-md-7 agile-col-lg-7 agile-col-xl-7">
      <div class="row">
        <div class="agile-col-sm-5 agile-col-md-4 agile-col-lg-3 agile-col-xl-2">
          <input type="text" id="latitude" name="latitude" class="form-control" value="<?php 
        if (isset($_POST['latitude'])) {
            echo $_POST['latitude'];
        } else {
            if (isset($_smarty_tpl->tpl_vars['product']->value->latitude)) {
                echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->latitude, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
            }
        }
        ?>
" />
        </div>
      </div>
    </div>
  </div>




<div class="form-group">
    <label class="control-label agile-col-sm-3 agile-col-md-3 agile-col-lg-3 agile-col-xl-3">
      <span><?php 
        echo smartyTranslate(array('s' => 'Map', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</span>
    </label>
    <div class=" agile-col-sm-9 agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
      <div class="row">
        <div class="agile-col-sm-12 agile-col-md-12 agile-col-lg-12 agile-col-xl-12">
          <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "./templates/googlemap_2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

        </div>
      </div>
    </div>
  </div>



  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="meta_keywords_<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
">
      <span class="label-tooltip" data-toggle="tooltip"
        title="<?php 
        echo smartyTranslate(array('s' => 'Tags separated by commas (e.g. dvd, dvd player, hifi)', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
 - <?php 
        echo smartyTranslate(array('s' => 'Forbidden characters:', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
 !&lt;;&gt;;?=+#&quot;&deg;{}_$%">
        <?php 
        echo smartyTranslate(array('s' => 'Meta Tags', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <?php 
        ob_start();
        if (!$_smarty_tpl->tpl_vars['product']->value->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')) {
            echo "copy2friendlyUrl";
        }
        $_tmp2 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_class' => (string) $_smarty_tpl->tpl_vars['class_input_ajax']->value . $_tmp2 . " updateCurrentText", 'input_value' => $_smarty_tpl->tpl_vars['product']->value->meta_keywords, 'input_name' => 'meta_keywords'), 0);
        ?>

    </div>
  </div>

  
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="meta_description_<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
">
      <span>
        <?php 
        echo smartyTranslate(array('s' => 'Meta Description', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <?php 
        ob_start();
        if (!$_smarty_tpl->tpl_vars['product']->value->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')) {
            echo "copy2friendlyUrl";
        }
        $_tmp3 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_class' => (string) $_smarty_tpl->tpl_vars['class_input_ajax']->value . $_tmp3 . " updateCurrentText", 'input_value' => $_smarty_tpl->tpl_vars['product']->value->meta_description, 'input_name' => 'meta_description'), 0);
        ?>

    </div>
  </div>

  
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="meta_title_<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
">
      <span>
        <?php 
        echo smartyTranslate(array('s' => 'Meta Title', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <?php 
        ob_start();
        if (!$_smarty_tpl->tpl_vars['product']->value->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')) {
            echo "copy2friendlyUrl";
        }
        $_tmp4 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_class' => (string) $_smarty_tpl->tpl_vars['class_input_ajax']->value . $_tmp4 . " updateCurrentText", 'input_value' => $_smarty_tpl->tpl_vars['product']->value->meta_title, 'input_name' => 'meta_title'), 0);
        ?>

    </div>
  </div>

  
  <div class="form-group">
    <label class="control-label agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="link_rewrite_<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
">
      <span class="label-tooltip" data-toggle="tooltip"
        title="<?php 
        echo smartyTranslate(array('s' => 'Leave it empty if you want the system to generate one for you', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
">
        <?php 
        echo smartyTranslate(array('s' => 'Friendly URL', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

      </span>
    </label>
    <div class="agile-col-md-7 agile-col-lg-5 agile-col-xl-5">
      <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['agilemultipleseller_views']->value . "/templates/front/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_value' => $_smarty_tpl->tpl_vars['product']->value->link_rewrite, 'input_name' => 'link_rewrite'), 0);
        ?>

    </div>
  </div>

<div class="form-group">
  <label class="control-label  agile-col-md-3 agile-col-lg-3 agile-col-xl-3" for="tags_<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
">
    <span class="label-tooltip" data-toggle="tooltip"
      title="<?php 
        echo smartyTranslate(array('s' => 'Each tag has to be followed by a comma. The following characters are forbidden: %s', 'sprintf' => '!&lt;;&gt;;?=+#&quot;&deg;{}_$%', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
">
      <?php 
        echo smartyTranslate(array('s' => 'Tags:', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>

    </span>
  </label>
  <div class="agile-col-md-8 agile-col-lg-8 agile-col-xl-8">
    <?php 
        if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
            ?>
    <div class="row">
      <?php 
        }
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
      
      <script type="text/javascript">
        $().ready(function () {
        var input_id = 'tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
';
        $('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php 
            echo smartyTranslate(array('s' => 'Add tag', 'mod' => 'agilemultipleseller', 'js' => 1), $_smarty_tpl);
            ?>
'});
        $('#product_form').submit( function() {
        $(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
        });
        });
      </script>
      
      <?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
      <div class="translatable-field lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
        <div class="col-lg-9">
          <?php 
            }
            ?>
          <input type="text" id="tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" class="tagify updateCurrentText" name="tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" value="<?php 
            echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->getTags($_smarty_tpl->tpl_vars['language']->value['id_lang'], true));
            ?>
" />
          <?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
        </div>
        
      </div>
      <?php 
            }
            ?>
      <?php 
        }
        ?>
      <?php 
        if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
            ?>
    </div>
    <?php 
        }
        ?>
  </div>
</div>

<script type="text/javascript">
$(document).ready(function() {

  $('#saveInfo').click(function() {
    alert("<?php 
        echo smartyTranslate(array('s' => 'Please upload your image after saving information.', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
");
  });

});

</script>

  


<div class="form-group agile-align-center">
    <button id="saveInfo" type="submit" class="agile-btn agile-btn-default" name="submitProduct" value="<?php 
        echo smartyTranslate(array('s' => 'Save', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
">
    <i class="icon-save "></i>&nbsp;<span><?php 
        echo smartyTranslate(array('s' => 'Save', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</span></button >

   
   </div>
   
    <script type="text/javascript">
      hideOtherLanguage(<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
);
    </script>

</div> <!-- product-informations -->

<?php 
    }
    function content_530ff8fac4f9b6_99983086($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
<div class="translatable-field lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
	<div class="col-lg-9">
<?php 
            }
            ?>
		<textarea
			id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			class="<?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value)) {
                echo $_smarty_tpl->tpl_vars['class']->value;
            } else {
                ?>
textarea-autosize<?php 
            }
            ?>
"><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
	</div>
	<div class="col-lg-2">
		<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>

			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
			<?php 
                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['language']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                    ?>
			<li><a href="javascript:hideOtherLanguage(<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                    ?>
);"><?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                    ?>
</a></li>
			<?php 
                }
                ?>
		</ul>
	</div>
</div>
<?php 
            }
            ?>
<span class="counter" max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
<?php 
        }
        ?>

<script type="text/javascript">
	var iso = '<?php 
        echo addslashes($_smarty_tpl->tpl_vars['iso_tiny_mce']->value);
        ?>
';
	var pathCSS = '<?php 
        echo addslashes(@constant('_THEME_CSS_DIR_'));
        ?>
';
	var ad = '<?php 
        echo addslashes($_smarty_tpl->tpl_vars['ad']->value);
        ?>
';

	$(".textarea-autosize").autosize();
</script><?php 
    }
    function content_56671959af96f7_49930693($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/srv/www/helveti/helveti.cz/tools/smarty/plugins/modifier.escape.php';
        }
        if ($_smarty_tpl->tpl_vars['check_product_association_ajax']->value) {
            $_smarty_tpl->tpl_vars['class_input_ajax'] = new Smarty_variable('check_product_name ', null, 0);
        } else {
            $_smarty_tpl->tpl_vars['class_input_ajax'] = new Smarty_variable('', null, 0);
        }
        ?>
<input type="hidden" name="submitted_tabs[]" value="Informations" />
<div id="step1">
	<h4 class="tab">1. <?php 
        echo smartyTranslate(array('s' => 'Info.'), $_smarty_tpl);
        ?>
</h4>
	<h4><?php 
        echo smartyTranslate(array('s' => 'Product global information'), $_smarty_tpl);
        ?>
</h4>
	<script type="text/javascript">
		<?php 
        if (isset($_smarty_tpl->tpl_vars['PS_ALLOW_ACCENTED_CHARS_URL']->value) && $_smarty_tpl->tpl_vars['PS_ALLOW_ACCENTED_CHARS_URL']->value) {
            ?>
			var PS_ALLOW_ACCENTED_CHARS_URL = 1;
		<?php 
        } else {
            ?>
			var PS_ALLOW_ACCENTED_CHARS_URL = 0;
		<?php 
        }
        ?>
		<?php 
        echo $_smarty_tpl->tpl_vars['combinationImagesJs']->value;
        ?>

		<?php 
        if ($_smarty_tpl->tpl_vars['check_product_association_ajax']->value) {
            ?>
				var search_term = '';
				$('document').ready( function() {
					$(".check_product_name")
						.autocomplete(
							'<?php 
            echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts', true));
            ?>
', {
								minChars: 3,
								max: 10,
								width: $(".check_product_name").width(),
								selectFirst: false,
								scroll: false,
								dataType: "json",
								formatItem: function(data, i, max, value, term) {
									search_term = term;
									// adding the little
									if ($('.ac_results').find('.separation').length == 0)
										$('.ac_results').css('background-color', '#EFEFEF')
											.prepend('<div style="color:#585A69; padding:2px 5px"><?php 
            echo smartyTranslate(array('s' => 'Use a product from the list'), $_smarty_tpl);
            ?>
<div class="separation"></div></div>');
									return value;
								},
								parse: function(data) {
									var mytab = new Array();
									for (var i = 0; i < data.length; i++)
										mytab[mytab.length] = { data: data[i], value: data[i].name };
									return mytab;
								},
								extraParams: {
									ajax: 1,
									action: 'checkProductName',
									id_lang: <?php 
            echo $_smarty_tpl->tpl_vars['id_lang']->value;
            ?>

								}
							}
						)
						.result(function(event, data, formatted) {
							// keep the searched term in the input
							$('#name_<?php 
            echo $_smarty_tpl->tpl_vars['id_lang']->value;
            ?>
').val(search_term);
							jConfirm('<?php 
            echo smartyTranslate(array('s' => 'Do you want to use this product?'), $_smarty_tpl);
            ?>
&nbsp;<strong>'+data.name+'</strong>', '<?php 
            echo smartyTranslate(array('s' => 'Confirmation'), $_smarty_tpl);
            ?>
', function(confirm){
								if (confirm == true)
									document.location.href = '<?php 
            echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts', true);
            ?>
&updateproduct&id_product='+data.id_product;
								else
									return false;
							});
						});
				});
		<?php 
        }
        ?>
	</script>

	<?php 
        if (isset($_smarty_tpl->tpl_vars['display_common_field']->value) && $_smarty_tpl->tpl_vars['display_common_field']->value) {
            ?>
		<div class="warn" style="display: block"><?php 
            echo smartyTranslate(array('s' => 'Warning, if you change the value of fields with an orange bullet %s, the value will be changed for all other shops for this product', 'sprintf' => $_smarty_tpl->tpl_vars['bullet_common_field']->value), $_smarty_tpl);
            ?>
</div>
	<?php 
        }
        ?>

	<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('product_tab' => "Informations"), 0);
        ?>


	<div class="separation"></div>
	<div id="warn_virtual_combinations" class="warn" style="display:none"><?php 
        echo smartyTranslate(array('s' => 'You cannot use combinations with a virtual product.'), $_smarty_tpl);
        ?>
</div>
	<div>
		<label class="text"><?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Type:'), $_smarty_tpl);
        ?>
</label>
		<input type="radio" name="type_product" id="simple_product" value="<?php 
        echo Product::PTYPE_SIMPLE;
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['product_type']->value == Product::PTYPE_SIMPLE) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
		<label class="radioCheck" for="simple_product"><?php 
        echo smartyTranslate(array('s' => 'Product'), $_smarty_tpl);
        ?>
</label>
		<input type="radio" name="type_product" <?php 
        if ($_smarty_tpl->tpl_vars['is_in_pack']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 id="pack_product" value="<?php 
        echo Product::PTYPE_PACK;
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['product_type']->value == Product::PTYPE_PACK) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
		<label class="radioCheck" for="pack_product"><?php 
        echo smartyTranslate(array('s' => 'Pack'), $_smarty_tpl);
        ?>
</label>
		<input type="radio" name="type_product" id="virtual_product" <?php 
        if ($_smarty_tpl->tpl_vars['is_in_pack']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 value="<?php 
        echo Product::PTYPE_VIRTUAL;
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['product_type']->value == Product::PTYPE_VIRTUAL) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
		<label class="radioCheck" for="virtual_product"><?php 
        echo smartyTranslate(array('s' => 'Virtual Product (services, booking or downloadable products)'), $_smarty_tpl);
        ?>
</label>
	</div>

	<div class="separation"></div>
	<br />
	<table cellpadding="5" style="width: 50%; float: left; margin-right: 20px; border-right: 1px solid #CCCCCC;">
	
		<tr>
			<td class="col-left">
				<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "name", 'type' => "default", 'multilang' => "true"), 0);
        ?>

				<label><?php 
        echo smartyTranslate(array('s' => 'Name:'), $_smarty_tpl);
        ?>
</label>
			</td>
			<td style="padding-bottom:5px;" class="translatable">
			<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
				<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display: none;<?php 
            }
            ?>
 float: left;">
						<input class="<?php 
            echo $_smarty_tpl->tpl_vars['class_input_ajax']->value;
            if (!$_smarty_tpl->tpl_vars['product']->value->id) {
                ?>
copy2friendlyUrl<?php 
            }
            ?>
 updateCurrentText" size="43" type="text" <?php 
            if (!$_smarty_tpl->tpl_vars['product']->value->id) {
                ?>
disabled="disabled"<?php 
            }
            ?>
						id="name_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" name="name_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
						value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->name[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"/><sup> *</sup>
					<span class="hint" name="help_box"><?php 
            echo smartyTranslate(array('s' => 'Invalid characters:'), $_smarty_tpl);
            ?>
 <>;=#{}<span class="hint-pointer">&nbsp;</span>
					</span>
				</div>
			<?php 
        }
        ?>
			</td>
		</tr>
		<tr>
			<td class="col-left"><label><?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Reference:'), $_smarty_tpl);
        ?>
</label></td>
			<td style="padding-bottom:5px;">
				<input size="55" type="text" name="reference" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->reference);
        ?>
" style="width: 130px; margin-right: 44px;" />
				<span class="hint" name="help_box"><?php 
        echo smartyTranslate(array('s' => 'Special characters allowed:'), $_smarty_tpl);
        ?>
.-_#\<span class="hint-pointer">&nbsp;</span></span>
			</td>
		</tr>
		<tr>
			<td class="col-left"><label><?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'EAN13 or JAN:'), $_smarty_tpl);
        ?>
</label></td>
			<td style="padding-bottom:5px;">
				<input size="55" maxlength="13" type="text" name="ean13" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->ean13);
        ?>
" style="width: 130px; margin-right: 5px;" /> <span class="small"><?php 
        echo smartyTranslate(array('s' => '(Europe, Japan)'), $_smarty_tpl);
        ?>
</span>
			</td>
		</tr>
		<tr>
			<td class="col-left"><label><?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'UPC:'), $_smarty_tpl);
        ?>
</label></td>
			<td style="padding-bottom:5px;">
				<input size="55" maxlength="12" type="text" name="upc" value="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->upc, 'html', 'UTF-8');
        ?>
" style="width: 130px; margin-right: 5px;" /> <span class="small"><?php 
        echo smartyTranslate(array('s' => '(US, Canada)'), $_smarty_tpl);
        ?>
</span>
			</td>
		</tr>
	</table>
	
	<table cellpadding="5" style="width: 40%; float: left; margin-left: 10px;">
	<tr>
		<td class="col-left">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "active", 'type' => "radio", 'onclick' => ''), 0);
        ?>

			<label class="text"><?php 
        echo smartyTranslate(array('s' => 'Status:'), $_smarty_tpl);
        ?>
</label>
		</td>
		<td style="padding-bottom:5px;">
			<ul class="listForm">
				<li>
					<input onclick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" type="radio" name="active" id="active_on" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->active || !$_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {
            ?>
checked="checked" <?php 
        }
        ?>
 />
					<label for="active_on" class="radioCheck"><?php 
        echo smartyTranslate(array('s' => 'Enabled'), $_smarty_tpl);
        ?>
</label>
				</li>
				<li>
					<input onclick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);"  type="radio" name="active" id="active_off" value="0" <?php 
        if (!$_smarty_tpl->tpl_vars['product']->value->active && $_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
					<label for="active_off" class="radioCheck"><?php 
        echo smartyTranslate(array('s' => 'Disabled'), $_smarty_tpl);
        ?>
</label>
				</li>
			</ul>
		</td>
	</tr>
	<tr class="redirect_product_options" style="display:none">
		<td class="col-left">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "redirect_type", 'type' => "radio", 'onclick' => ''), 0);
        ?>

			<label class="text"><?php 
        echo smartyTranslate(array('s' => 'Redirect:'), $_smarty_tpl);
        ?>
</label>
		</td>
		<td style="padding-bottom:5px;">
			<select name="redirect_type" id="redirect_type">
				<option value="404" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->redirect_type == '404') {
            ?>
 selected="selected" <?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'No redirect (404)'), $_smarty_tpl);
        ?>
</option>
				<option value="301" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->redirect_type == '301') {
            ?>
 selected="selected" <?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Redirect permanently (301)'), $_smarty_tpl);
        ?>
</option>
				<option value="302" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->redirect_type == '302') {
            ?>
 selected="selected" <?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Redirect temporarily (302)'), $_smarty_tpl);
        ?>
</option>
			</select>
			<span class="hint" name="help_box">
				<?php 
        echo smartyTranslate(array('s' => '404 : Not Found = Product does not exist and no redirect'), $_smarty_tpl);
        ?>
<br/>
				<?php 
        echo smartyTranslate(array('s' => '301 : Moved Permanently = Product Moved Permanently'), $_smarty_tpl);
        ?>
<br/>
				<?php 
        echo smartyTranslate(array('s' => '302 : Moved Temporarily = Product moved temporarily'), $_smarty_tpl);
        ?>

			</span>
		</td>
	</tr>
	<tr class="redirect_product_options redirect_product_options_product_choise" style="display:none">
		<td class="col-left">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "id_product_redirected", 'type' => "radio", 'onclick' => ''), 0);
        ?>

			<label class="text"><?php 
        echo smartyTranslate(array('s' => 'Related product:'), $_smarty_tpl);
        ?>
</label>
		</td>
		<td style="padding-bottom:5px;">
			<input type="hidden" value="" name="id_product_redirected" />
			<input value="" id="related_product_autocomplete_input" autocomplete="off" class="ac_input" />
			<p>
				<script>
					var no_related_product = '<?php 
        echo smartyTranslate(array('s' => 'No related product'), $_smarty_tpl);
        ?>
';
					var id_product_redirected = <?php 
        echo intval($_smarty_tpl->tpl_vars['product']->value->id_product_redirected);
        ?>
;
					var product_name_redirected = '<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product_name_redirected']->value, 'html', 'UTF-8');
        ?>
';
				</script>
				<span id="related_product_name"><?php 
        echo smartyTranslate(array('s' => 'No related product'), $_smarty_tpl);
        ?>
</span>
				<span id="related_product_remove" style="display:none">
					<a hre="#" onclick="removeRelatedProduct(); return false" id="related_product_remove_link">
						<img src="../img/admin/delete.gif" class="middle" alt="" />
					</a>
				</span>
			</p>
		</td>
	</tr>
	<tr>
		<td class="col-left">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "visibility", 'type' => "default"), 0);
        ?>

			<label><?php 
        echo smartyTranslate(array('s' => 'Visibility:'), $_smarty_tpl);
        ?>
</label>
		</td>
		<td style="padding-bottom:5px;">
			<select name="visibility" id="visibility">
				<option value="both" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'both') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Everywhere'), $_smarty_tpl);
        ?>
</option>
				<option value="catalog" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'catalog') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Catalog only'), $_smarty_tpl);
        ?>
</option>
				<option value="search" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'search') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Search only'), $_smarty_tpl);
        ?>
</option>
				<option value="none" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->visibility == 'none') {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Nowhere'), $_smarty_tpl);
        ?>
</option>
			</select>
		</td>
	</tr>
	<tr id="product_options" <?php 
        if (!$_smarty_tpl->tpl_vars['product']->value->active) {
            ?>
style="display:none"<?php 
        }
        ?>
 >
		<td class="col-left">
			<?php 
        if (isset($_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value) && $_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value) {
            ?>
				<div class="multishop_product_checkbox">
					<ul class="listForm">
						<li><?php 
            echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('only_checkbox' => "true", 'field' => "available_for_order", 'type' => "default"), 0);
            ?>
</li>
						<li><?php 
            echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('only_checkbox' => "true", 'field' => "show_price", 'type' => "show_price"), 0);
            ?>
</li>
						<li><?php 
            echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('only_checkbox' => "true", 'field' => "online_only", 'type' => "default"), 0);
            ?>
</li>
					</ul>
				</div>
			<?php 
        }
        ?>

			<label><?php 
        echo smartyTranslate(array('s' => 'Options:'), $_smarty_tpl);
        ?>
</label>
		</td>
		<td style="padding-bottom:5px;">
			<ul class="listForm">
				<li>
					<input  type="checkbox" name="available_for_order" id="available_for_order" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->available_for_order) {
            ?>
checked="checked"<?php 
        }
        ?>
  />
					<label for="available_for_order" class="t"><?php 
        echo smartyTranslate(array('s' => 'Available for order'), $_smarty_tpl);
        ?>
</label>
				</li>
			<li>
				<input type="checkbox" name="show_price" id="show_price" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->show_price) {
            ?>
checked="checked"<?php 
        }
        ?>
 <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->available_for_order) {
            ?>
disabled="disabled"<?php 
        }
        ?>
/>
				<label for="show_price" class="t"><?php 
        echo smartyTranslate(array('s' => 'show price'), $_smarty_tpl);
        ?>
</label>
			</li>
			<li>
				<input type="checkbox" name="online_only" id="online_only" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->online_only) {
            ?>
checked="checked"<?php 
        }
        ?>
 />
				<label for="online_only" class="t"><?php 
        echo smartyTranslate(array('s' => 'Online only (not sold in store)'), $_smarty_tpl);
        ?>
</label>
			</li>
			</ul>
		</td>
	</tr>
	<tr>
		<td class="col-left">
			<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "condition", 'type' => "default"), 0);
        ?>

			<label><?php 
        echo smartyTranslate(array('s' => 'Condition:'), $_smarty_tpl);
        ?>
</label>
		</td>
		<td style="padding-bottom:5px;">
			<select name="condition" id="condition">
				<option value="new" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'new') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'New'), $_smarty_tpl);
        ?>
</option>
				<option value="used" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'used') {
            ?>
selected="selected"<?php 
        }
        ?>
 ><?php 
        echo smartyTranslate(array('s' => 'Used'), $_smarty_tpl);
        ?>
</option>
				<option value="refurbished" <?php 
        if ($_smarty_tpl->tpl_vars['product']->value->condition == 'refurbished') {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo smartyTranslate(array('s' => 'Refurbished'), $_smarty_tpl);
        ?>
</option>
			</select>
		</td>
	</tr>
</table>

<table cellpadding="5" cellspacing="0" border="0" style="width: 100%;"><tr><td><div class="separation"></div></td></tr></table>
		<table cellspacing="0" cellpadding="5" border="0">
			<tr>
				<td class="col-left">
					<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "description_short", 'type' => "tinymce", 'multilang' => "true"), 0);
        ?>

					<label><?php 
        echo smartyTranslate(array('s' => 'Short description:'), $_smarty_tpl);
        ?>
<br /></label>
					<p class="product_description">(<?php 
        echo smartyTranslate(array('s' => 'Appears in the product list(s), and on the top of the product page.'), $_smarty_tpl);
        ?>
)</p>
				</td>
				<td style="padding-bottom:5px;">
						<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/textarea_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_name' => 'description_short', 'input_value' => $_smarty_tpl->tpl_vars['product']->value->description_short, 'max' => $_smarty_tpl->tpl_vars['PS_PRODUCT_SHORT_DESC_LIMIT']->value), 0);
        ?>

					<p class="clear"></p>
				</td>
			</tr>
			<tr>
				<td class="col-left">
					<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field' => "description", 'type' => "tinymce", 'multilang' => "true"), 0);
        ?>

					<label><?php 
        echo smartyTranslate(array('s' => 'Description:'), $_smarty_tpl);
        ?>
<br /></label>
					<p class="product_description">(<?php 
        echo smartyTranslate(array('s' => 'Appears in the body of the product page'), $_smarty_tpl);
        ?>
)</p>
				</td>
				<td style="padding-bottom:5px;">
						<?php 
        echo $_smarty_tpl->getSubTemplate("controllers/products/textarea_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_name' => 'description', 'input_value' => $_smarty_tpl->tpl_vars['product']->value->description), 0);
        ?>

					<p class="clear"></p>
				</td>
			</tr>
		<?php 
        if ($_smarty_tpl->tpl_vars['images']->value) {
            ?>
			<tr>
				<td class="col-left"><label></label></td>
				<td style="padding-bottom:5px;">
					<div style="display:block;width:620px;" class="hint clear">
						<?php 
            echo smartyTranslate(array('s' => 'Do you want an image associated with the product in your description?'), $_smarty_tpl);
            ?>

						<span class="addImageDescription" style="cursor:pointer"><?php 
            echo smartyTranslate(array('s' => 'Click here'), $_smarty_tpl);
            ?>
</span>.
					</div>
					<p class="clear"></p>
				</td>
			</tr>
			</table>
				<table id="createImageDescription" style="display:none;width:100%">
					<tr>
						<td colspan="2" height="10"></td>
					</tr>
					<tr>
						<td class="col-left"><label><?php 
            echo smartyTranslate(array('s' => 'Select your image:'), $_smarty_tpl);
            ?>
</label></td>
						<td style="padding-bottom:5px;">
							<ul class="smallImage">
							<?php 
            $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['image']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['images']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value) {
                $_smarty_tpl->tpl_vars['image']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['image']->key;
                ?>
									<li>
										<input type="radio" name="smallImage" id="smallImage_<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
" value="<?php 
                echo $_smarty_tpl->tpl_vars['image']->value['id_image'];
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['key']->value == 0) {
                    ?>
checked="checked"<?php 
                }
                ?>
 >
										<label for="smallImage_<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
" class="t">
											<img src="<?php 
                echo $_smarty_tpl->tpl_vars['image']->value['src'];
                ?>
" alt="<?php 
                echo $_smarty_tpl->tpl_vars['image']->value['legend'];
                ?>
" />
										</label>
									</li>
							<?php 
            }
            ?>
							</ul>
							<p class="clear"></p>
						</td>
					</tr>
					<tr>
						<td class="col-left"><label><?php 
            echo smartyTranslate(array('s' => 'Position:'), $_smarty_tpl);
            ?>
</label></td>
						<td style="padding-bottom:5px;">
							<ul class="listForm">
								<li><input type="radio" name="leftRight" id="leftRight_1" value="left" checked>
									<label for="leftRight_1" class="t"><?php 
            echo smartyTranslate(array('s' => 'left'), $_smarty_tpl);
            ?>
</label>
								</li>
								<li>
									<input type="radio" name="leftRight" id="leftRight_2" value="right">
									<label for="leftRight_2" class="t"><?php 
            echo smartyTranslate(array('s' => 'right'), $_smarty_tpl);
            ?>
</label>
								</li>
							</ul>
						</td>
					</tr>
					<tr>
						<td class="col-left"><label><?php 
            echo smartyTranslate(array('s' => 'Select the type of picture:'), $_smarty_tpl);
            ?>
</label></td>
						<td style="padding-bottom:5px;">
							<ul class="listForm">
							<?php 
            $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['type']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['imagesTypes']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
                $_smarty_tpl->tpl_vars['type']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['type']->key;
                ?>
								<li><input type="radio" name="imageTypes" id="imageTypes_<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
" value="<?php 
                echo $_smarty_tpl->tpl_vars['type']->value['name'];
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['key']->value == 0) {
                    ?>
checked="checked"<?php 
                }
                ?>
>
									<label for="imageTypes_<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
" class="t"><?php 
                echo $_smarty_tpl->tpl_vars['type']->value['name'];
                ?>
 <span>(<?php 
                echo $_smarty_tpl->tpl_vars['type']->value['width'];
                ?>
px <?php 
                echo smartyTranslate(array('s' => 'by'), $_smarty_tpl);
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['type']->value['height'];
                ?>
px)</span></label>
								</li>
							<?php 
            }
            ?>
							</ul>
							<p class="clear"></p>
						</td>
					</tr>
					<tr>
						<td class="col-left"><label><?php 
            echo smartyTranslate(array('s' => 'Image tag to insert:'), $_smarty_tpl);
            ?>
</label></td>
						<td style="padding-bottom:5px;">
							<input type="text" id="resultImage" name="resultImage" />
							<p class="preference_description"><?php 
            echo smartyTranslate(array('s' => 'The tag to copy/paste into the description.'), $_smarty_tpl);
            ?>
</p>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<div class="separation"></div>
						</td>
					</tr>
				</table>
		<?php 
        }
        ?>
		<table>
		<tr>
			<td class="col-left"><label><?php 
        echo smartyTranslate(array('s' => 'Tags:'), $_smarty_tpl);
        ?>
</label></td>
			<td style="padding-bottom:5px;" class="translatable">
				<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
					<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display: none;<?php 
            }
            ?>
float: left;">
						
						<script type="text/javascript">
							$().ready(function () {
								var input_id = 'tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
';
								$('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php 
            echo smartyTranslate(array('s' => 'Add tag', 'js' => 1), $_smarty_tpl);
            ?>
'});
								$('#<?php 
            echo $_smarty_tpl->tpl_vars['table']->value;
            ?>
_form').submit( function() {
									$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
								});
							});
						</script>
						
						<input size="55" type="text" id="tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" name="tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
							value="<?php 
            echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->getTags($_smarty_tpl->tpl_vars['language']->value['id_lang'], true));
            ?>
" class="tagify" />
						<span class="hint" name="help_box"><?php 
            echo smartyTranslate(array('s' => 'Forbidden characters:'), $_smarty_tpl);
            ?>
 !&lt;;&gt;;?=+#&quot;&deg;{}_$%<span class="hint-pointer">&nbsp;</span></span>
					</div>
				<?php 
        }
        ?>
				<p class="preference_description clear"><?php 
        echo smartyTranslate(array('s' => 'Tags separated by commas (e.g. dvd, dvd player, hifi)'), $_smarty_tpl);
        ?>
</p>
			</td>
		</tr>
		</table>
	</table>
	<br />
</div>
<?php 
    }
    function content_55bb02e518d4d2_40876009($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
	<div class="translatable-field row lang-<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
">
		<div class="agile-col-sm-9 agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
			<div class="input-group">
				<span id="<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter" class="input-group-addon">
					<span class="text-count-down"><?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
</span>
				</span>
				<?php 
            }
            ?>
				<input type="text"
				id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
				<?php 
            if (isset($_smarty_tpl->tpl_vars['input_class']->value)) {
                ?>
class="<?php 
                echo $_smarty_tpl->tpl_vars['input_class']->value;
                ?>
"<?php 
            }
            ?>
				name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
				value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"
				onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
				onblur="updateLinkRewrite();"
				<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
 data-maxchar="<?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
"<?php 
            }
            ?>
				<?php 
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                ?>
 maxlength="<?php 
                echo $_smarty_tpl->tpl_vars['maxlength']->value;
                ?>
"<?php 
            }
            ?>
 />
				<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
			</div>
			<?php 
            }
            ?>
		</div>
	
	</div>
<?php 
        }
        if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
            ?>
<script type="text/javascript">
function countDown($source, $target) {
	var max = $source.attr("data-maxchar");
	$target.html(max-$source.val().length);

	$source.keyup(function(){
		$target.html(max-$source.val().length);
	});
}

$(document).ready(function(){
<?php 
            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['language']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['languages']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                $_smarty_tpl->tpl_vars['language']->_loop = true;
                ?>
	countDown($("#<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
"), $("#<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter"));
<?php 
            }
            ?>
});
</script>
<?php 
        }
    }
    function content_55bb02f101dfa6_46735548($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
<div class="translatable-field lang-<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
">
	<div class="agile-col-sm-9 agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
		<textarea
			id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			<?php 
            if (isset($_smarty_tpl->tpl_vars['default_row']->value) && $_smarty_tpl->tpl_vars['default_row']->value > 0) {
                ?>
 row="<?php 
                echo $_smarty_tpl->tpl_vars['default_row']->value;
                ?>
" <?php 
            }
            ?>
			class="<?php 
            if (isset($_smarty_tpl->tpl_vars['autosize_js']->value)) {
                ?>
textarea-autosize<?php 
            } else {
                echo $_smarty_tpl->tpl_vars['class']->value;
            }
            ?>
"><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
	</div>

</div>
<span class="counter" max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
<?php 
        }
    }
    function content_529f84f1946298_05637167($_smarty_tpl)
    {
        ?>

<div class="translatable">
<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display:none;<?php 
            }
            ?>
float: left;">
	<textarea cols="100" rows="10" id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
		name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
		class="autoload_rte" ><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
	<span class="counter" max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
	<span class="hint"><?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['hint']->value) === null || $tmp === '' ? '' : $tmp;
            ?>
<span class="hint-pointer">&nbsp;</span></span>
</div>
<?php 
        }
        ?>
</div>
<script type="text/javascript">
	var iso = '<?php 
        echo $_smarty_tpl->tpl_vars['iso_tiny_mce']->value;
        ?>
';
	var pathCSS = '<?php 
        echo @constant('_THEME_CSS_DIR_');
        ?>
';
	var ad = '<?php 
        echo $_smarty_tpl->tpl_vars['ad']->value;
        ?>
';
</script>
<?php 
    }