<?php /* Smarty version Smarty-3.1.8, created on 2019-12-24 09:25:49
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/ProductCategory.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10024040585da8067fe184b0-16664043%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4e9324f32f8e2e96d151fa59717ccca06104aaa5' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/ProductCategory.tpl',
      1 => 1576501830,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10024040585da8067fe184b0-16664043',
  'function' => 
  array (
    'categories' => 
    array (
      'parameter' => 
      array (
        'level' => 0,
      ),
      'compiled' => '',
    ),
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da80680014f00_97102737',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'selectedProductCategory' => 0,
    'brandID' => 0,
    'listBrand' => 0,
    'resProductCategories' => 0,
    'statusprivilege' => 0,
    'data' => 0,
    'level' => 0,
    'productCategory' => 0,
    'cssForParent' => 0,
    'categoryStatus' => 0,
    'deleteprivilege' => 0,
    'link' => 0,
    'children' => 0,
    'productCategoryCount' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => 0,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da80680014f00_97102737')) {function content_5da80680014f00_97102737($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategories'];?>
</title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/menuItemListing.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->rootpath_script(array(),$_smarty_tpl);?>

<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->basepath_script(array(),$_smarty_tpl);?>

</head>
<body>
<div class="outer_container">
  <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

  <!--End:Header Container-->
  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
  <div class="content_container2 clearfix"> 
  	<div class="right-sidebar">
    	<div class="side_wrapper">
        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"productcategory/new/",'href'=>"productcategory/new/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblAddProductCategory']),'class'=>"custom-btnt cboxElement",'content'=>"<strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblAddProductCategory'])."</strong>"),$_smarty_tpl);?>

    	</div>
    </div>
    <!--End: Right Block-->
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"frmProductCategory",'action'=>'','method'=>"post"),$_smarty_tpl);?>
            
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"selectedProductCategory",'class'=>"textbox02",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['selectedProductCategory']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

    <div class="left_wrapper ">
      <div class="content_wrapper"><div class="fixing_right"> <?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
</div> 
	  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"brandID",'value'=>$_smarty_tpl->tpl_vars['brandID']->value,'options'=>$_smarty_tpl->tpl_vars['listBrand']->value,'style'=>"float:right;width:150px;margin-left:5px;padding:2px 5px"),$_smarty_tpl);?>
	
      	<h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategories'];?>
</h2>
          <div id="common_message" ></div>
          <div class="tree_level_00" > <?php if (count($_smarty_tpl->tpl_vars['resProductCategories']->value)==0){?>
            <div id="common_message" class="message_info"> <?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
            <?php }else{ ?>
            <?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?>
			<div class="clearfix"> <div class="info-message strict_fixing_left">
			   <?php echo $_smarty_tpl->tpl_vars['language']->value['lblDragDropCategories'];?>
		
			</div>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->button(array('name'=>"savepriority",'class'=>"fixing_right update_btn_table button04 ",'disabled'=>"disabled",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSavepriority'])),$_smarty_tpl);?>

            </div><?php }?>
			
            <div class="grid_table00" id="productCategories">
            <div class="heading">
                <table width="100%" border="0" cellspacing="0" cellpadding="0"  id="table_productcategories">
                    <thead>
                      <tr class="nodrag nodrop"> <?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?>
                       <td align="left" valign="middle" class="cols1 col" width="5%">
					   
					   <div class="chekingdiv">
                    <ul>
                      <li> 
					  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"ListStatusLinkCheckbox",'class'=>"fixing_left",'tabindex'=>"1"),$_smarty_tpl);?>
 
                      <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','id'=>"ListStatusLink",'class'=>"status-arw fixing_left"),$_smarty_tpl);?>

                        <ul id="ListStatusSelection"  class="check_status">
                          <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListActive",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblActive'])),$_smarty_tpl);?>
</li>
                          <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListInactive",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblInactive'])),$_smarty_tpl);?>
</li>
                          <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListAll",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblSelectAll'])),$_smarty_tpl);?>
</li>
                        </ul>
                      </li>
                    </ul>
                  </div></td><?php }?>
                        <td align="left" valign="middle" class="cols1 col"<?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?> width="95%"<?php }?> ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategory'];?>
</td>
                        
                      </tr>
                      </thead>
                 </table>
          </div>
			<ul  <?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?> class="dragtree categoryList" id="categoryList"<?php }?>>
                  <!--menu function-->
                 <?php if (!function_exists('smarty_template_function_categories')) {
    function smarty_template_function_categories($_smarty_tpl,$params) {
    $saved_tpl_vars = $_smarty_tpl->tpl_vars;
    foreach ($_smarty_tpl->smarty->template_functions['categories']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
    foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>
                <?php  $_smarty_tpl->tpl_vars["productCategory"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["productCategory"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["productCategory"]->key => $_smarty_tpl->tpl_vars["productCategory"]->value){
$_smarty_tpl->tpl_vars["productCategory"]->_loop = true;
?> 
                     
                        <li  data-level="<?php echo $_smarty_tpl->tpl_vars['level']->value;?>
" category="<?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'];?>
" class="left-spacing <?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']==1){?> ui-state-disabled <?php }?>" >
                        <div class="group pos-relative">
                         <span class="chk-bx">
							<?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?>
								<?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']>1){?>
									<?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['cssForParent']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryStatus'];?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']),'name'=>"productCategoryBulkStatus[]",'value'=>$_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],'class'=>($_tmp1." checkbox01 ListAll productCategories List").($_tmp2)),$_smarty_tpl);?>

								<?php }else{ ?>
								  <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"status-locked icon-set rmv-mrg-lf"),$_smarty_tpl);?>

								<?php }?>
							<?php }?>
				
                         </span>
                         <div class="positioning">
                             <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
									<td width="25" class="drag <?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']==1){?>no-drag<?php }?><?php if (!$_smarty_tpl->tpl_vars['statusprivilege']->value){?> no-cursor <?php }?>" align="left" valign="middle">
                                    <span class="line1"></span><span class="line2"></span><span class="line3"></span></td>
                                    <td width="10" class="expand  <?php if (!(!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children']))){?>hide<?php }?>" align="center" valign="middle">+</td>
                                    <td class="cols1 col" align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'];?>
 </td>
									
                                   <td align="left" valign="top" width="85">
                                   <div class="col">
									<?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']>1){?>
										<?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryStatus']=='Active'){?>
											<?php $_smarty_tpl->tpl_vars["categoryStatus"] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['lblActive'], null, 0);?>
										 <?php }elseif($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryStatus']=='Inactive'){?> 
											<?php $_smarty_tpl->tpl_vars["categoryStatus"] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['lblInactive'], null, 0);?>
										 <?php }?>
										 <?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?>
										<?php ob_start();?><?php echo mb_strtolower($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryStatus'], 'UTF-8');?>
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"status-".$_tmp3." icon-set",'title'=>($_smarty_tpl->tpl_vars['categoryStatus']->value),'categoryid'=>($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']),'task'=>"status-change"),$_smarty_tpl);?>

										
										<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"productcategory/edit/id/".($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'])."/",'ref'=>"productcategory/edit/id/".($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'])."/",'title'=>$_smarty_tpl->tpl_vars['language']->value['lblEdit'],'class'=>"edit02 cboxElement icon-set",'content'=>''),$_smarty_tpl);?>

										<?php }?>
										<?php if ($_smarty_tpl->tpl_vars['deleteprivilege']->value){?>
										<?php $_smarty_tpl->tpl_vars["link"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['link']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
										<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>("/productcategory/destroy/id/".($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'])."/").($_smarty_tpl->tpl_vars['link']->value),'title'=>$_smarty_tpl->tpl_vars['language']->value['lblDelete'],'history'=>"yes",'content'=>'','class'=>"delete02 delete_button icon-set",'task'=>'delete'),$_smarty_tpl);?>
<?php }?>
									<?php }else{ ?>
									 <?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?>
										<?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']==1){?>
											<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"status-active icon-set"),$_smarty_tpl);?>

										<?php }else{ ?>
											<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"status-inactive icon-set"),$_smarty_tpl);?>

										<?php }?>
										<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"productcategory/edit/id/".($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'])."/",'title'=>$_smarty_tpl->tpl_vars['language']->value['lblEdit'],'class'=>"edit02 cboxElement icon-set",'content'=>''),$_smarty_tpl);?>
<?php }?>
										<?php if ($_smarty_tpl->tpl_vars['deleteprivilege']->value){?>
										<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"delete02-inactive icon-set"),$_smarty_tpl);?>
<?php }?>
									<?php }?>
</div>
								   </td>
								  </tr>
                            </table></div>
                            </div>
							<?php $_smarty_tpl->tpl_vars["children"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['productCategory']->value['children'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
                             <?php if (isset($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])){?>
                               <ul id="" class="<?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?>categoryList<?php }?> hide"> 
                            <?php smarty_template_function_categories($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['children']->value,'level'=>$_smarty_tpl->tpl_vars['level']->value+1));?>
  <!--menu function calling-->
                            </ul>
                          
                        <?php }else{ ?>
                             <?php if ((is_array($_smarty_tpl->tpl_vars['productCategory']->value))&&(isset($_smarty_tpl->tpl_vars['productCategory']->value['menuItemID']))&&(is_numeric($_smarty_tpl->tpl_vars['productCategory']->value['menuItemID']))){?>
                        </li>	
                        <?php }?>
                    <?php }?>
            <?php } ?>  
          <?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;}}?>

          <?php smarty_template_function_categories($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['resProductCategories']->value));?>
 <!--menu function calling-->
              </ul>
          </div>
                <div class="fixing_right pagination_outer">
                <span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRecordsFound'];?>
 :&nbsp;<?php echo $_smarty_tpl->tpl_vars['productCategoryCount']->value;?>
</span>
                </div>
                <?php if ($_smarty_tpl->tpl_vars['statusprivilege']->value){?>
                <div class="action_box"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"bulkStatus",'validate'=>"required",'error'=>"Required",'class'=>"select-box width-auto",'options'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate'])),$_smarty_tpl);?>

                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitBulkStatus",'id'=>"submitBulkStatus",'class'=>"update_btn_table submitBulkStatus button04",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblUpdate'])),$_smarty_tpl);?>
 </div>
                <?php }?> <span class="fixing_left bottom_records"> </span>
                <div class="clear"></div>
          <?php }?>
        <!--End:Table Listing-->
      </div>
      <!--End:Border 3-->
    </div>
    <!--End:Border 2-->
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 </div>
  <!--End: left Block-->
  <div class="clear"></div>
</div>
<!--***********************************************************************END CONTAINER SECTION****************************************************-->
<!--End:Content Container-->
<?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
</div>
<!--End:Outer Container-->

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>


<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/productcategory.page.js"></script>
<script type="text/javascript">
var lblCategoryPrioritySuccess="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCategoryPrioritySuccess'];?>
";
var confirmation="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblConfirmation'];?>
";
var lblSelectItem ='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';
var msgSelectAStatus ='<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectAStatus'];?>
';
var msgConfirmDelete ='<?php echo $_smarty_tpl->tpl_vars['language']->value['msgConfirmDelete'];?>
';
var deleteText = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDelete'];?>
";
var activeText = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblActive'];?>
";
var inactiveText = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblInactive'];?>
";
var msgAlert = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlert'];?>
";
var lockedText = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLocked'];?>
";
$("#brandID").change(function(){ 
	var id			=	$('#brandID').val();
	window.location.href = GLOBAL_BASE_PATH+"/productcategory/index/brandID/"+ id+"/";
});
</script>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

</body>
</html>
<?php }} ?>