<?php /* Smarty version Smarty-3.1.14, created on 2014-06-14 03:34:50
         compiled from "/home/playingc/public_html/playingcardshome/presta/admin123/themes/default/template/controllers/products/combinations.tpl" */ ?>
<?php /*%%SmartyHeaderCode:189480692539bfb1a10eeb7-39945750%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0f86a046c82ee3d7e412b7a1a8c478871b54993f' => 
    array (
      0 => '/home/playingc/public_html/playingcardshome/presta/admin123/themes/default/template/controllers/products/combinations.tpl',
      1 => 1397138952,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '189480692539bfb1a10eeb7-39945750',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'product' => 0,
    'attributeJs' => 0,
    'idgrp' => 0,
    'group' => 0,
    'idattr' => 0,
    'attrname' => 0,
    'token_generator' => 0,
    'combination_exists' => 0,
    'display_multishop_checkboxes' => 0,
    'attributes_groups' => 0,
    'attribute_group' => 0,
    'currency' => 0,
    'country_display_tax_label' => 0,
    'tax_exclude_option' => 0,
    'ps_weight_unit' => 0,
    'field_value_unity' => 0,
    'ps_use_ecotax' => 0,
    'minimal_quantity' => 0,
    'available_date' => 0,
    'images' => 0,
    'image' => 0,
    'imageType' => 0,
    'list' => 0,
    'link' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_539bfb1a2d6197_30174552',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_539bfb1a2d6197_30174552')) {function content_539bfb1a2d6197_30174552($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['product']->value->id)&&!$_smarty_tpl->tpl_vars['product']->value->is_virtual){?>
<div id="product-combinations" class="panel product-tab">
	<script type="text/javascript">
		var msg_combination_1 = '<?php echo smartyTranslate(array('s'=>'Please choose an attribute.'),$_smarty_tpl);?>
';
		var msg_combination_2 = '<?php echo smartyTranslate(array('s'=>'Please choose a value.'),$_smarty_tpl);?>
';
		var msg_combination_3 = '<?php echo smartyTranslate(array('s'=>'You can only add one combination per attribute type.'),$_smarty_tpl);?>
';
		var msg_new_combination = '<?php echo smartyTranslate(array('s'=>'New combination'),$_smarty_tpl);?>
';
		var msg_cancel_combination = '<?php echo smartyTranslate(array('s'=>'Cancel combination'),$_smarty_tpl);?>
';
		var attrs = new Array();
		var modifyattributegroup = "<?php echo smartyTranslate(array('s'=>'Modify this attribute combination.','js'=>1),$_smarty_tpl);?>
";
		attrs[0] = new Array(0, "---");
		<?php  $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['group']->_loop = false;
 $_smarty_tpl->tpl_vars['idgrp'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['attributeJs']->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;
 $_smarty_tpl->tpl_vars['idgrp']->value = $_smarty_tpl->tpl_vars['group']->key;
?>
			attrs[<?php echo $_smarty_tpl->tpl_vars['idgrp']->value;?>
] = new Array(0
			, '---'
			<?php  $_smarty_tpl->tpl_vars['attrname'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['attrname']->_loop = false;
 $_smarty_tpl->tpl_vars['idattr'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['group']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['attrname']->key => $_smarty_tpl->tpl_vars['attrname']->value){
$_smarty_tpl->tpl_vars['attrname']->_loop = true;
 $_smarty_tpl->tpl_vars['idattr']->value = $_smarty_tpl->tpl_vars['attrname']->key;
?>
				, "<?php echo $_smarty_tpl->tpl_vars['idattr']->value;?>
", "<?php echo addslashes($_smarty_tpl->tpl_vars['attrname']->value);?>
"
			<?php } ?>
			);
		<?php } ?>
		$(document).ready(function(){
			populate_attrs();
			$(".datepicker").datepicker({
				prevText: '',
				nextText: '',
				dateFormat: 'yy-mm-dd'
			});
		});
	</script>
	<input type="hidden" name="submitted_tabs[]" value="Combinations" />
	<h3><?php echo smartyTranslate(array('s'=>'Add or modify combinations for this product'),$_smarty_tpl);?>
</h3>
	<div class="alert alert-info">
		<?php echo smartyTranslate(array('s'=>'You can also use the [1]Product Combinations Generator[2/][/1] in order to automatically create a set of combinations.','tags'=>array("<a class='btn btn-link bt-icon confirm_leave' href='index.php?tab=AdminAttributeGenerator&amp;id_product=".((string)$_smarty_tpl->tpl_vars['product']->value->id)."&amp;attributegenerator&amp;token=".((string)$_smarty_tpl->tpl_vars['token_generator']->value)."'>",'<i class="icon-external-link-sign">')),$_smarty_tpl);?>

	</div>
	<?php if ($_smarty_tpl->tpl_vars['combination_exists']->value){?>
	<div class="alert alert-info" style="display:block">
		<?php echo smartyTranslate(array('s'=>'Some combinations already exist. If you want to generate a set of new combinations, the quantities for the existing combinations will be lost.'),$_smarty_tpl);?>
<br/>
		<?php echo smartyTranslate(array('s'=>'You can add a single combination by clicking the "New combination" button.'),$_smarty_tpl);?>

	</div>
	<?php }?>
	<?php if (isset($_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value)&&$_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value){?>
		<br />
		<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('product_tab'=>"Combinations"), 0);?>

	<?php }?>
	<div id="add_new_combination" class="panel" style="display: none;">
		<div class="panel-heading"><?php echo smartyTranslate(array('s'=>'Add or modify combinations for this product'),$_smarty_tpl);?>
</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_group"><?php echo smartyTranslate(array('s'=>'Attribute'),$_smarty_tpl);?>
</label>
			<div class="col-lg-5">
				<select name="attribute_group" id="attribute_group" onchange="populate_attrs();">
				<?php if (isset($_smarty_tpl->tpl_vars['attributes_groups']->value)){?>
					<?php  $_smarty_tpl->tpl_vars['attribute_group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['attribute_group']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['attributes_groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['attribute_group']->key => $_smarty_tpl->tpl_vars['attribute_group']->value){
$_smarty_tpl->tpl_vars['attribute_group']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['attribute_group']->key;
?>
					<option value="<?php echo $_smarty_tpl->tpl_vars['attribute_group']->value['id_attribute_group'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attribute_group']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
&nbsp;&nbsp;</option>
					<?php } ?>
				<?php }?>
				</select>
			</div>
		</div>
		<div class="row">
			<label class="control-label col-lg-3" for="attribute"><?php echo smartyTranslate(array('s'=>'Value'),$_smarty_tpl);?>
</label>
			<div class="col-lg-9">
				<div class="form-group">
					<div class="col-lg-8">
						<select name="attribute" id="attribute">
							<option value="0">-</option>
						</select>
					</div>
					<div class="col-lg-4">
						<button type="button" class="btn btn-default btn-block" onclick="add_attr();"><i class="icon-plus-sign-alt"></i> <?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
</button>
					</div>
				</div>
				<div class="form-group">
					<div class="col-lg-8">
						<select id="product_att_list" name="attribute_combination_list[]" multiple="multiple" ></select>
					</div>
					<div class="col-lg-4">
						<button type="button" class="btn btn-default btn-block" onclick="del_attr()"><i class="icon-minus-sign-alt"></i> <?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
</button>
					</div>
				</div>
			</div>
		</div>
		<hr/>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_reference">
				<span class="label-tooltip" data-toggle="tooltip"
					title="<?php echo smartyTranslate(array('s'=>'Special characters allowed:'),$_smarty_tpl);?>
 .-_#">
					<?php echo smartyTranslate(array('s'=>'Reference code'),$_smarty_tpl);?>

				</span>
			</label>
			<div class="col-lg-5">
				<input type="text" id="attribute_reference" name="attribute_reference" value="" />
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_ean13">
				<?php echo smartyTranslate(array('s'=>'EAN-13 or JAN barcode'),$_smarty_tpl);?>

			</label>
			<div class="col-lg-3">
				<input maxlength="13" type="text" id="attribute_ean13" name="attribute_ean13" value="" />
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_upc">
				<?php echo smartyTranslate(array('s'=>'UPC barcode'),$_smarty_tpl);?>

			</label>
			<div class="col-lg-3">
				<input maxlength="12" type="text" id="attribute_upc" name="attribute_upc" value="" />
			</div>
		</div>
		<hr/>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_wholesale_price">
				<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field'=>"attribute_wholesale_price",'type'=>"default"), 0);?>

				<span class="label-tooltip" data-toggle="tooltip"
					title="<?php echo smartyTranslate(array('s'=>'Set to zero if the price does not change.'),$_smarty_tpl);?>
">
					<?php echo smartyTranslate(array('s'=>'Wholesale price'),$_smarty_tpl);?>

				</span>
			</label>
			<div class="col-lg-9">
				<div class="input-group col-lg-2">
					<span class="input-group-addon">
						<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
						<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
					</span>
					<input type="text" name="attribute_wholesale_price" id="attribute_wholesale_price" value="0" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
				</div>
			</div>
			<span style="display:none;" id="attribute_wholesale_price_full">(<?php echo smartyTranslate(array('s'=>'Overrides the wholesale price from the "Prices" tab.'),$_smarty_tpl);?>
)</span>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_price_impact">
				<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field'=>"attribute_price_impact",'type'=>"attribute_price_impact"), 0);?>

				<?php echo smartyTranslate(array('s'=>'Impact on price'),$_smarty_tpl);?>

			</label>
			<div class="col-lg-9">
				<div class="row">
					<div class="col-lg-4">
						<select name="attribute_price_impact" id="attribute_price_impact" onchange="check_impact(); calcImpactPriceTI();">
							<option value="0"><?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
</option>
							<option value="1"><?php echo smartyTranslate(array('s'=>'Increase'),$_smarty_tpl);?>
</option>
							<option value="-1"><?php echo smartyTranslate(array('s'=>'Decrease'),$_smarty_tpl);?>
</option>
						</select>
					</div>
					<div id="span_impact" class="col-lg-8">
						<div class="form-group">
							<label class="control-label col-lg-1" for="attribute_price">
								<?php echo smartyTranslate(array('s'=>'of'),$_smarty_tpl);?>

							</label>
							<div class="input-group col-lg-5">
								<div class="input-group-addon">
									<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
									<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0){?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
									<?php if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value){?>
									<?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>

									<?php }?>
								</div>
								<input type="hidden"  id="attribute_priceTEReal" name="attribute_price" value="0.00" />

								<input type="text" id="attribute_price" value="0.00" onkeyup="$('#attribute_priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTI();"/>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-lg-1" for="attribute_priceTI">
									<?php echo smartyTranslate(array('s'=>'or'),$_smarty_tpl);?>

							</label>
							<div class="input-group col-lg-5">
								<div class="input-group-addon" <?php if ($_smarty_tpl->tpl_vars['tax_exclude_option']->value){?>style="display:none"<?php }?>>
									<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
									<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0){?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
									<?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>

								</div>
								<input type="text" name="attribute_priceTI" id="attribute_priceTI" value="0.00" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTE();"/>
							</div>
						</div>
						<div class="row">
							<div class="col-lg-12">
								<div class="alert">
									<?php echo smartyTranslate(array('s'=>'The final product price will be set to'),$_smarty_tpl);?>

									<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
									<span id="attribute_new_total_price">0.00</span>
									<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_weight_impact">
				<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field'=>"attribute_weight_impact",'type'=>"attribute_weight_impact"), 0);?>

				<?php echo smartyTranslate(array('s'=>'Impact on weight'),$_smarty_tpl);?>

			</label>
			<div class="col-lg-9">
				<div class="row">
					<div class="col-lg-4">
						<select name="attribute_weight_impact" id="attribute_weight_impact" onchange="check_weight_impact();">
							<option value="0"><?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
</option>
							<option value="1"><?php echo smartyTranslate(array('s'=>'Increase'),$_smarty_tpl);?>
</option>
							<option value="-1"><?php echo smartyTranslate(array('s'=>'Reduction'),$_smarty_tpl);?>
</option>
						</select>
					</div>
					<div id="span_weight_impact" class="col-lg-8">
						<div class="row">
							<label class="control-label col-lg-1" for="attribute_weight">
								<?php echo smartyTranslate(array('s'=>'of'),$_smarty_tpl);?>

							</label>
							<div class="input-group col-lg-5">
								<div class="input-group-addon">
									<?php echo $_smarty_tpl->tpl_vars['ps_weight_unit']->value;?>

								</div>
								<input type="text" name="attribute_weight" id="attribute_weight" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div id="tr_unit_impact" class="form-group">
			<label class="control-label col-lg-3" for="attribute_unit_impact">
				<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field'=>"attribute_unit_impact",'type'=>"attribute_unit_impact"), 0);?>

				<?php echo smartyTranslate(array('s'=>'Impact on unit price'),$_smarty_tpl);?>

			</label>
			<div class="col-lg-3">
				<select name="attribute_unit_impact" id="attribute_unit_impact" onchange="check_unit_impact();">
					<option value="0"><?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
</option>
					<option value="1"><?php echo smartyTranslate(array('s'=>'Increase'),$_smarty_tpl);?>
</option>
					<option value="-1"><?php echo smartyTranslate(array('s'=>'Reduction'),$_smarty_tpl);?>
</option>
				</select>
			</div>
			<div class="col-lg-6">
				<div class="row">
					<label class="control-label col-lg-1" for="attribute_unity">
						<?php echo smartyTranslate(array('s'=>'of'),$_smarty_tpl);?>

					</label>
					<div class="input-group col-lg-5">
						<div class="input-group-addon">
							<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
							/ <span id="unity_third"><?php echo $_smarty_tpl->tpl_vars['field_value_unity']->value;?>
</span>	
						</div>
						<input type="text" name="attribute_unity" id="attribute_unity" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
					</div>
				</div>
			</div>
		</div>
		<?php if ($_smarty_tpl->tpl_vars['ps_use_ecotax']->value){?>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_ecotax">
				<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field'=>"attribute_ecotax",'type'=>"default"), 0);?>

				<span class="label-tooltip" data-toggle="tooltip"
					title="<?php echo smartyTranslate(array('s'=>'Overrides the ecotax from the "Prices" tab.'),$_smarty_tpl);?>
">
					<?php echo smartyTranslate(array('s'=>'Ecotax (tax excl.)'),$_smarty_tpl);?>

				</span>
			</label>
			<div class="input-group col-lg-2">
				<div class="input-group-addon">		
					<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0){?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0){?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
				</div>
				<input type="text" name="attribute_ecotax" id="attribute_ecotax" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
			</div>
		</div>
		<?php }?>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_minimal_quantity">
				<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field'=>"attribute_minimal_quantity",'type'=>"default"), 0);?>

				<span class="label-tooltip" data-toggle="tooltip"
					title="<?php echo smartyTranslate(array('s'=>'The minimum quantity to buy this product (set to 1 to disable this feature).'),$_smarty_tpl);?>
">
					<?php echo smartyTranslate(array('s'=>'Minimum quantity'),$_smarty_tpl);?>

				</span>
			</label>
			<div class="col-lg-9">
				<div class="input-group col-lg-2">
					<div class="input-group-addon">&times;</div>
					<input maxlength="6" name="attribute_minimal_quantity" id="attribute_minimal_quantity" type="text" value="<?php echo $_smarty_tpl->tpl_vars['minimal_quantity']->value;?>
" />
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="available_date_attribute">
				<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field'=>"available_date_attribute",'type'=>"default"), 0);?>

				<span class="label-tooltip" data-toggle="tooltip"
					title="<?php echo smartyTranslate(array('s'=>'If this product is out of stock, you can indicate when the product will be available again.'),$_smarty_tpl);?>
">
					<?php echo smartyTranslate(array('s'=>'Available date'),$_smarty_tpl);?>

				</span>
			</label>
			<div class="col-lg-9">
				<div class="input-group col-lg-3">
					<input class="datepicker" id="available_date_attribute" name="available_date_attribute" value="<?php echo $_smarty_tpl->tpl_vars['available_date']->value;?>
" type="text" />
					<div class="input-group-addon">
						<i class="icon-calendar-empty"></i>
					</div>
				</div>
			</div>
		</div>
		<hr/>
		<div class="form-group">
			<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Image'),$_smarty_tpl);?>
</label>
			<div class="col-lg-9">
				<?php if (count($_smarty_tpl->tpl_vars['images']->value)){?>
				<ul id="id_image_attr" class="list-inline">
					<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = 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['k']->value = $_smarty_tpl->tpl_vars['image']->key;
?>
					<li>
						<input type="checkbox" name="id_image_attr[]" value="<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
" id="id_image_attr_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
" />
						<label for="id_image_attr_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
">
							<img class="img-thumbnail" src="<?php echo @constant('_THEME_PROD_DIR_');?>
<?php echo $_smarty_tpl->tpl_vars['image']->value['obj']->getExistingImgPath();?>
-<?php echo $_smarty_tpl->tpl_vars['imageType']->value;?>
.jpg" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend'], ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend'], ENT_QUOTES, 'UTF-8', true);?>
" />
						</label>
					</li>
					<?php } ?>
				</ul>
				<?php }else{ ?>
					<div class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'You must upload an image before you can select one for your combination.'),$_smarty_tpl);?>
</div>
				<?php }?>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-lg-3" for="attribute_default">
				<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('field'=>"attribute_default",'type'=>"attribute_default"), 0);?>

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

			</label>
			<div class="col-lg-9">
				<p class="checkbox">
				<label for="attribute_default">
					<input type="checkbox" name="attribute_default" id="attribute_default" value="1" />
					<?php echo smartyTranslate(array('s'=>'Make this combination the default combination for this product.'),$_smarty_tpl);?>

				</label>
				</p>
			</div>
		</div>
		<div class="panel-footer">
			<span id="ResetSpan">
				<button type="reset" name="ResetBtn" id="ResetBtn" onclick="$('#desc-product-newCombination').click();" class="btn btn-default">
					<i class="icon-undo"></i> <?php echo smartyTranslate(array('s'=>'Cancel modification'),$_smarty_tpl);?>

				</button>
			</span>
		</div>
	</div>
	<?php echo $_smarty_tpl->tpl_vars['list']->value;?>

	<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>
		<a href="#" id="desc-product-newCombination" class="btn btn-default pull-right"><i class="process-icon-new"></i> <span><?php echo smartyTranslate(array('s'=>"New combination"),$_smarty_tpl);?>
</span></a>
	</div>
</div>
<?php }?>
<?php }} ?>