<?php /* Smarty version Smarty-3.1.8, created on 2019-10-16 13:52:58
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/frontend/custom/AjaxBodyType.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12824450925da6e87a815ea0-83505462%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1c25d006a4ae7485f15b85b6b61651ebe39c040c' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/frontend/custom/AjaxBodyType.tpl',
      1 => 1571049180,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12824450925da6e87a815ea0-83505462',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'bodyStyles' => 0,
    'language' => 0,
    'attrOptions' => 0,
    'optids' => 0,
    'attributes' => 0,
    'bodyStyle' => 0,
    'dispBodyType' => 0,
    'readOnlyVar' => 0,
    'attrOptionID' => 0,
    'attrOptChecked' => 0,
    'attrCounter' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da6e87a834a47_30917719',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da6e87a834a47_30917719')) {function content_5da6e87a834a47_30917719($_smarty_tpl) {?><?php $_smarty_tpl->tpl_vars["attrCounter"] = new Smarty_variable("1", null, 0);?>
	<?php $_smarty_tpl->tpl_vars["attrCount"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['bodyStyles']->value), null, 0);?>
	
        
	<div class="FltrSctn py-3 border-bottom prodBodyStyles">
		
		<h6 class="expand-clsps font-weight-bold m-0 px-4 py-2"><span class="openListing spriteImg"></span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBodyType'];?>
</h6>
        <div class="list-wrap">
            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"attrSearchFilter",'class'=>"attrSearchFilter form-control my-3 py-2",'placeholder'=>$_smarty_tpl->tpl_vars['language']->value['lblRefine']),$_smarty_tpl);?>

            <div class="listMenu listMenuScroll slip scrollbox">							
            <ul class="attrOptionList list-unstyled mb-0"> 
                
            <?php  $_smarty_tpl->tpl_vars["attrOptions"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["attrOptions"]->_loop = false;
 $_smarty_tpl->tpl_vars["optids"] = new Smarty_Variable;
 $_from = (($tmp = @$_smarty_tpl->tpl_vars['bodyStyles']->value)===null||$tmp==='' ? array() : $tmp); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["attrOptions"]->key => $_smarty_tpl->tpl_vars["attrOptions"]->value){
$_smarty_tpl->tpl_vars["attrOptions"]->_loop = true;
 $_smarty_tpl->tpl_vars["optids"]->value = $_smarty_tpl->tpl_vars["attrOptions"]->key;
?>
                            <?php $_smarty_tpl->tpl_vars["dispBodyType"] = new Smarty_variable(($_smarty_tpl->tpl_vars['attrOptions']->value), null, 0);?>
                           <?php $_smarty_tpl->tpl_vars["attrOptionID"] = new Smarty_variable(($_smarty_tpl->tpl_vars['optids']->value), null, 0);?>
                            
                             
                <li>
                    <?php $_smarty_tpl->tpl_vars["attrKey"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['attributes']->value['attributeKey'])===null||$tmp==='' ? '' : $tmp), null, 0);?> 
                    <?php $_smarty_tpl->tpl_vars["readOnlyVar"] = new Smarty_variable('', null, 0);?>
                    <?php $_smarty_tpl->tpl_vars["attrOptChecked"] = new Smarty_variable('', null, 0);?>

                     <?php if ((($tmp = @$_smarty_tpl->tpl_vars['bodyStyle']->value)===null||$tmp==='' ? '' : $tmp)){?>
                     
                        <?php if (in_array($_smarty_tpl->tpl_vars['dispBodyType']->value,$_smarty_tpl->tpl_vars['bodyStyle']->value)){?>
                            <?php $_smarty_tpl->tpl_vars["attrOptChecked"] = new Smarty_variable("checked", null, 0);?> 
                        <?php }else{ ?>
                             <?php $_smarty_tpl->tpl_vars["readOnlyVar"] = new Smarty_variable("disabled", null, 0);?>
                        <?php }?>
                     <?php }else{ ?>


                     <?php }?>
                    
                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['attrOptionID']->value;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['attrOptChecked']->value;?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('disabled'=>($_smarty_tpl->tpl_vars['readOnlyVar']->value),'refinehead'=>$_smarty_tpl->tpl_vars['attrOptions']->value,'refineval'=>$_smarty_tpl->tpl_vars['attrOptions']->value,'id'=>"searchAttrOptID_".($_smarty_tpl->tpl_vars['attrOptionID']->value),'class'=>"searchAttrOptID",'name'=>"searchAttrOptID[]",'value'=>$_tmp1,'checked'=>$_tmp2,'rel'=>'bodytype'),$_smarty_tpl);?>

                    <label class="attributeSearchLabel" disabled="<?php echo $_smarty_tpl->tpl_vars['readOnlyVar']->value;?>
"  id="searchAttrLabel_<?php echo $_smarty_tpl->tpl_vars['attrOptionID']->value;?>
" for="searchAttrOptID_<?php echo $_smarty_tpl->tpl_vars['attrOptionID']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['dispBodyType']->value;?>
</label>
                </li>															
            <?php } ?>
            </ul>							
            </div>
        </div>
		<?php $_smarty_tpl->tpl_vars["attrCounter"] = new Smarty_variable($_smarty_tpl->tpl_vars['attrCounter']->value+1, null, 0);?>
		</div><?php }} ?>