<?php /* Smarty version Smarty-3.1.8, created on 2021-03-25 18:19:14
         compiled from "/home/agmc/beta/application/core/views/manage/standard/AjaxProductCategoryParent.tpl" */ ?>
<?php /*%%SmartyHeaderCode:624445544605c9be2251a38-79597893%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f2466807fba30fce0a8ea21607c47e4b2d3b2b87' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/AjaxProductCategoryParent.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '624445544605c9be2251a38-79597893',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'productCatParent' => 0,
    'productParentCategoryId' => 0,
    'language' => 0,
    'resListParentProductCategory' => 0,
    'productCategoryID' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_605c9be22676a1_37500683',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_605c9be22676a1_37500683')) {function content_605c9be22676a1_37500683($_smarty_tpl) {?><select id="productCategoryParent" name="productCategoryParent" class="width-60per" onchange="checkExists();" tabindex="2" >
	<option value="0" <?php if ((($tmp = @$_smarty_tpl->tpl_vars['productCatParent']->value[0])===null||$tmp==='' ? 0 : $tmp)==(($tmp = @$_smarty_tpl->tpl_vars['productParentCategoryId']->value)===null||$tmp==='' ? '' : $tmp)){?>selected="selected"<?php }?> ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRootLevel'];?>
</option>
	<?php  $_smarty_tpl->tpl_vars['productCatParent'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['productCatParent']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resListParentProductCategory']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['productCatParent']->key => $_smarty_tpl->tpl_vars['productCatParent']->value){
$_smarty_tpl->tpl_vars['productCatParent']->_loop = true;
?>
		<?php if ((($tmp = @$_smarty_tpl->tpl_vars['productCatParent']->value[0])===null||$tmp==='' ? 0 : $tmp)>0){?>
			<option 
					value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['productCatParent']->value[0])===null||$tmp==='' ? 0 : $tmp);?>
" 
					<?php if ((($tmp = @$_smarty_tpl->tpl_vars['productCatParent']->value[0])===null||$tmp==='' ? 0 : $tmp)==(($tmp = @$_smarty_tpl->tpl_vars['productParentCategoryId']->value)===null||$tmp==='' ? '' : $tmp)){?>
						selected="selected"
					<?php }?> 
					<?php if ($_smarty_tpl->tpl_vars['productCatParent']->value[2]=='Inactive'){?>
						class="opt_inactive"
					<?php }?> 
					<?php if ($_smarty_tpl->tpl_vars['productCategoryID']->value>0&&in_array($_smarty_tpl->tpl_vars['productCategoryID']->value,$_smarty_tpl->tpl_vars['productCatParent']->value['parents'])){?>
						disabled="disabled" 
					<?php }?>
				>
				<?php echo $_smarty_tpl->tpl_vars['productCatParent']->value[1];?>

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