<?php /* Smarty version Smarty-3.1.8, created on 2020-01-09 16:20:57
         compiled from "/home/agmc/public_html/beta/application/core/views/manage/standard/ProductAdd_Options.tpl" */ ?>
<?php /*%%SmartyHeaderCode:6651044155e171aa9ed5716-49561254%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '430fd8050431d00f053440394347edd8fe2fbee3' => 
    array (
      0 => '/home/agmc/public_html/beta/application/core/views/manage/standard/ProductAdd_Options.tpl',
      1 => 1577772526,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6651044155e171aa9ed5716-49561254',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'language' => 0,
    'resProductOptions' => 0,
    'postCallback' => 0,
    'resProductOptions_postback' => 0,
    'productOptionCount' => 0,
    'productOptions' => 0,
    'productForm' => 0,
    'OptionDefault' => 0,
    'productImageCount' => 0,
    'view_images' => 0,
    'optionSaveStatus' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e171aaa02cec3_19837462',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e171aaa02cec3_19837462')) {function content_5e171aaa02cec3_19837462($_smarty_tpl) {?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->fieldGroup(array('fieldName'=>"productOptionName",'group'=>"productOptionsGroup",'parentGroup'=>'','validate'=>"enableMultiple->isequal->checked~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errRequired']),$_smarty_tpl);?>

<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->fieldGroup(array('fieldName'=>"optionSKU",'group'=>"productOptionsGroup",'parentGroup'=>'','validate'=>"required~*callback_checkOptSKUexist",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errRequired']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errSkuExists'])),$_smarty_tpl);?>

                 

          
<?php $_smarty_tpl->tpl_vars["numRows"] = new Smarty_variable((($tmp = @count($_smarty_tpl->tpl_vars['resProductOptions']->value))===null||$tmp==='' ? 0 : $tmp), null, 0);?>    
     <?php $_smarty_tpl->tpl_vars["productForm"] = new Smarty_variable("Product", null, 0);?>   
    <ul class="levl-00" id="moptions">     
     <?php $_smarty_tpl->tpl_vars["productOptionCount"] = new Smarty_variable("0", null, 0);?>
     
<!--Option postback-->

	<?php if ((($tmp = @$_smarty_tpl->tpl_vars['postCallback']->value)===null||$tmp==='' ? '' : $tmp)==1){?>
	<?php $_smarty_tpl->tpl_vars["resProductOptions"] = new Smarty_variable($_smarty_tpl->tpl_vars['resProductOptions_postback']->value, null, 0);?><?php }?>
<!--Option postback-->

      <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resProductOptions']->value)===null||$tmp==='' ? '' : $tmp)){?>                
      <?php  $_smarty_tpl->tpl_vars["productOptions"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["productOptions"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resProductOptions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["productOptions"]->key => $_smarty_tpl->tpl_vars["productOptions"]->value){
$_smarty_tpl->tpl_vars["productOptions"]->_loop = true;
?>
     
      <?php $_smarty_tpl->tpl_vars["productOptionCount"] = new Smarty_variable($_smarty_tpl->tpl_vars['productOptionCount']->value+1, null, 0);?> 
      
                 
         <li class="clearfix option productOptionRow remove-padding">
         <h3 class="single-option"><a class="op-delete deleteRow"  href="javascript:void(0);" rel="productOptionsGroup_<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
_is_delete" title="Delete" id="<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
">x</a><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductVariant'];?>
 <?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
</span></h3>
          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][option_id]",'value'=>($_smarty_tpl->tpl_vars['productOptions']->value['option_id'])),$_smarty_tpl);?>
 
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][is_delete]",'class'=>"multioptiondelete",'value'=>"0"),$_smarty_tpl);?>
  
        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][realOptionCount]",'value'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>

                    
          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][productOptionImageSort]"),$_smarty_tpl);?>
 
           <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][vsb]",'value'=>$_smarty_tpl->tpl_vars['productOptions']->value['vsb']),$_smarty_tpl);?>

                     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][modelCode]",'value'=>$_smarty_tpl->tpl_vars['productOptions']->value['modelCode']),$_smarty_tpl);?>

                     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][bmwCode]",'value'=>$_smarty_tpl->tpl_vars['productOptions']->value['bmwCode']),$_smarty_tpl);?>

                     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][modelYear]",'value'=>$_smarty_tpl->tpl_vars['productOptions']->value['modelYear']),$_smarty_tpl);?>

                  <ul class="levl-00"> 
                 <li class="clearfix single-option">                 
                    <div class="left1 mandatory">
                     <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOptionName'];?>

                    </div>
                    <div class="right1 ">
                     <ul class="levl-01">
                  		<li class="clearfix first">
                      <div class="width-50per fixing_left">                        
		<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('error_class'=>"message_inline_validation",'size'=>"25",'name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][productOptionName]",'class'=>"textbox productName",'form'=>$_smarty_tpl->tpl_vars['productForm']->value,'value'=>htmlspecialchars_decode($_smarty_tpl->tpl_vars['productOptions']->value['productOptionName'], ENT_QUOTES),'maxlength'=>"255",'validate_inline'=>"yes",'rel'=>"productOptionsGroup_".($_smarty_tpl->tpl_vars['productOptionCount']->value)."_is_delete",'fieldName'=>"productOptionName",'group'=>"productOptionsGroup",'row'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>
 
                      </div>                                    
                    </li>
                    </ul></div>
                  </li>
		 <li class="clearfix">                 
                    <div class="left1 mandatory">
                     <?php echo $_smarty_tpl->tpl_vars['language']->value['lblSKU'];?>

                    </div>
                    <div class="right1 ">
                     <ul class="levl-01">
					<li class="clearfix first">
                      <div class="width-25per fixing_left">                        
		<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('error_class'=>"message_inline_validation",'size'=>"25",'name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][optionSKU]",'class'=>"textbox productName",'form'=>$_smarty_tpl->tpl_vars['productForm']->value,'value'=>htmlspecialchars_decode($_smarty_tpl->tpl_vars['productOptions']->value['optionSKU'], ENT_QUOTES),'maxlength'=>"255",'validate_inline'=>"yes",'rel'=>$_smarty_tpl->tpl_vars['productOptionCount']->value,'fieldName'=>"optionSKU",'group'=>"productOptionsGroup",'row'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>
 
                      </div>                                    
                    </li>
                    </ul></div>
                  </li>
		  
                  <div id="sellerInfo">
                        <?php echo $_smarty_tpl->getSubTemplate ('AssignSellers.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

                  </div>
                 
				  
		
				  
				  
                     
                  
                  
                  
              
                       <li class="clearfix single-option">
                    <div class="left1"></div>
                    <div class="right1 top-spc "><?php if (isset($_smarty_tpl->tpl_vars['productOptions']->value['defaultOpion'])&&($_smarty_tpl->tpl_vars['productOptions']->value['defaultOpion']=="Yes")){?>                      
                            <?php $_smarty_tpl->tpl_vars["OptionDefault"] = new Smarty_variable("checked", null, 0);?>                      
                            <?php }else{ ?>                      
                            <?php $_smarty_tpl->tpl_vars["OptionDefault"] = new Smarty_variable('', null, 0);?>                      
                            <?php }?>  
                     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][defaultOpion]",'options'=>"Yes->".($_smarty_tpl->tpl_vars['language']->value['lblsetDefaultproductoption']),'rel'=>$_smarty_tpl->tpl_vars['productOptionCount']->value,'class'=>"defaultOpion",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['productOptions']->value['productOptionDefault'])===null||$tmp==='' ? '' : $tmp),'checked'=>$_smarty_tpl->tpl_vars['OptionDefault']->value),$_smarty_tpl);?>
 </div>
                  </li>
                  <li class=" clearfix single-option">
                    <div class="left1"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblOptionStatus'];?>
</strong></div>
                    <div class="right1 top-spc">
                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][productOptionStatus]",'options'=>"Active->".($_smarty_tpl->tpl_vars['language']->value['lblActive'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactive']),'value'=>$_smarty_tpl->tpl_vars['productOptions']->value['productOptionStatus'],'fieldName'=>"productOptionStatus",'group'=>"productOptionsGroup",'row'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>
 
                   </div>
                  </li>
                  
                                           
                 
                </ul>
              </li>
      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>("productOptionImageCount").($_smarty_tpl->tpl_vars['productOptionCount']->value),'value'=>$_smarty_tpl->tpl_vars['productImageCount']->value),$_smarty_tpl);?>
 
    
 <?php } ?>                
      <?php }?>
      <li class="hide" id="productoptions_loader">             
       <img src="<?php echo $_smarty_tpl->tpl_vars['view_images']->value;?>
/loader-1.gif" />
      </li> 
    
    </ul>
    
    
   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionAddCount",'value'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>
 
  
 
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"optionSaveStatus",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['optionSaveStatus']->value)===null||$tmp==='' ? '' : $tmp),'post_back'=>"no"),$_smarty_tpl);?>
        
 
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>$_smarty_tpl->tpl_vars['productForm']->value),$_smarty_tpl);?>
 
    <script type="text/javascript">
$('.img-list').sortable({		
		items: "> li",
		update: function(event, ui) {
			var result = $(this).sortable('toArray');						 
			$("#productOptionsGroup_"+$(this).attr('rel')+"_productOptionImageSort").val(result);
			}
	});
	</script> 

<?php }} ?>