<?php /* Smarty version Smarty-3.1.8, created on 2024-07-17 12:49:01
         compiled from "/home/agmc/beta/application/core/views/manage/standard/MenuItemListDetails.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3297704305e7894eae6fd94-56781477%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2197de6155be759bca6e32becf703e21b5a44221' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/MenuItemListDetails.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3297704305e7894eae6fd94-56781477',
  'function' => 
  array (
    'menuItems' => 
    array (
      'parameter' => 
      array (
        'level' => 0,
      ),
      'compiled' => '',
    ),
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e7894eaedc9f9_42703947',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'brandID' => 0,
    'listBrand' => 0,
    'resMenusItems' => 0,
    'editPrivilege' => 0,
    'data' => 0,
    'entry' => 0,
    'level' => 0,
    'deletePrivilege' => 0,
    'statusImg' => 0,
    'newstatus' => 0,
    'statusLabel' => 0,
    'childcount' => 0,
    'menuItemAction' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => 0,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e7894eaedc9f9_42703947')) {function content_5e7894eaedc9f9_42703947($_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['lblManageMenuItems'];?>
</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 ('CommonJavaScript.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;?>
/right-menu.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/menuItemListing.css" />

<?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);?>

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

</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-->
  <!--***********************************************************************END HEADER CONTAINER******************************************************-->
<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'=>"custommenu/additem/",'href'=>"custommenu/additem/",'caption'=>"<strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblAddNewMenuItem'])."</strong>",'class'=>"custom-btnt",'history'=>"yes"),$_smarty_tpl);?>

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

      </div>
    </div>
    <!--End: Right Block-->
    <div class="left_wrapper">
    <div class="content_wrapper">  
	<?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['lblManageMenuItems'];?>
</h2>
  <div id="common_message" ></div>
  
         <?php if ($_smarty_tpl->tpl_vars['resMenusItems']->value){?> 
         <div class="manage-menu"> 
        	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"frmMenuList",'action'=>'','method'=>"post"),$_smarty_tpl);?>

            <div class="heading">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentList" >
                    <thead>
                      <tr class="nodrag nodrop">
                        <td align="left" valign="middle" class="cols1 col"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuItems'];?>
  </td>
                        <td align="left" valign="middle" class="cols2 col"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuItemType'];?>
</td>
                        <td align="left" valign="middle" class="cols3 col"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLang'];?>
</td>
                        <td align="left" valign="middle" class="cols4 col"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAccess'];?>
</td>
                         <td align="left" valign="middle" width="70">&nbsp;</td>
                      </tr>
                      </thead>
                 </table>
          </div> <!--heading-->
        
			<?php if ($_smarty_tpl->tpl_vars['resMenusItems']->value){?>
              <ul <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>id="sort1"<?php }?>class="menuItemsListing <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>dragtree connectedSortable<?php }?>">
                  <!--menu function-->
                 <?php if (!function_exists('smarty_template_function_menuItems')) {
    function smarty_template_function_menuItems($_smarty_tpl,$params) {
    $saved_tpl_vars = $_smarty_tpl->tpl_vars;
    foreach ($_smarty_tpl->smarty->template_functions['menuItems']['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["entry"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["entry"]->_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["entry"]->key => $_smarty_tpl->tpl_vars["entry"]->value){
$_smarty_tpl->tpl_vars["entry"]->_loop = true;
?> 
                     <?php $_smarty_tpl->tpl_vars["childcount"] = new Smarty_variable('', null, 0);?>
                     <?php if ($_smarty_tpl->tpl_vars['entry']->value['status']=='Active'){?>
                        <?php $_smarty_tpl->tpl_vars["newstatus"] = new Smarty_variable('Inactive', null, 0);?>
                        <?php $_smarty_tpl->tpl_vars["statusLabel"] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['lblActive'], null, 0);?>
                        <?php $_smarty_tpl->tpl_vars["statusImg"] = new Smarty_variable('status-active', null, 0);?>
                      <?php }else{ ?>
                        <?php $_smarty_tpl->tpl_vars["newstatus"] = new Smarty_variable('Active', null, 0);?>
                        <?php $_smarty_tpl->tpl_vars["statusImg"] = new Smarty_variable('status-inactive', null, 0);?>
                        <?php $_smarty_tpl->tpl_vars["statusLabel"] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['lblInactive'], null, 0);?>
                    <?php }?>
                        <li data-id="<?php echo $_smarty_tpl->tpl_vars['entry']->value['menuItemID'];?>
"  data-level="<?php echo $_smarty_tpl->tpl_vars['level']->value;?>
" data-lang="<?php echo $_smarty_tpl->tpl_vars['entry']->value['availableLang'];?>
">
                        <div class="group">
                         <span class="chk-bx">
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"menuItemBulkStatus[]",'value'=>$_smarty_tpl->tpl_vars['entry']->value['menuItemID'],'class'=>("checkbox01 ListAll  hide List").($_smarty_tpl->tpl_vars['entry']->value['status'])),$_smarty_tpl);?>
 
                         </span>
                         <div class="positioning">
                       
                             <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="25" <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>class="drag"<?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 (!(isset($_smarty_tpl->tpl_vars['entry']->value['children'])&&is_array($_smarty_tpl->tpl_vars['entry']->value['children'])&&!empty($_smarty_tpl->tpl_vars['entry']->value['children']))){?>hide<?php }?>" align="center" valign="middle">+</td>
                                    <td class="cols1 col" align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['entry']->value['menuItemName'];?>
 </td>
                                    <td class="cols2 col" align="left" valign="middle"> 
                                        <div class="info-outer zindex">
                                       <?php echo $_smarty_tpl->tpl_vars['entry']->value['labelType'];?>

                                       <?php if ((($tmp = @$_smarty_tpl->tpl_vars['entry']->value['source'])===null||$tmp==='' ? '' : $tmp)==1){?>  
                                        <span class="info type_details"  itemid="<?php echo $_smarty_tpl->tpl_vars['entry']->value['menuItemID'];?>
" moduleid="<?php echo $_smarty_tpl->tpl_vars['entry']->value['moduleID'];?>
"></span>
                                        <span class="info-details" style="display: none;"><span class="arw"></span>
                                       <span class="add-details-outer"> <span class="inner01">  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblSource'];?>
 : <span class="bold add-details"></span> </span>
                                       </span></span>
                                       <?php }?>
                                       </div>
                                    </td>
                                    <td class="cols3 col"  align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['entry']->value['deflang'];?>
 <?php echo (($tmp = @$_smarty_tpl->tpl_vars['entry']->value['langMulti'])===null||$tmp==='' ? '' : $tmp);?>
</td>
                                    <td class="cols4 col" align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['entry']->value['defAccess'];?>
</td>
                                    <td align="left" valign="middle" width="70">
                                    <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
									<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
                          <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>($_smarty_tpl->tpl_vars['statusImg']->value)." changeItemStatus icon-set",'id'=>($_smarty_tpl->tpl_vars['entry']->value['menuItemID']),'rel'=>($_smarty_tpl->tpl_vars['newstatus']->value),'content'=>'','title'=>($_smarty_tpl->tpl_vars['statusLabel']->value)),$_smarty_tpl);?>

                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>$_smarty_tpl->tpl_vars['language']->value['lblEditMenuItem'],'history'=>"yes",'class'=>"edit02 icon-set",'content'=>'','href'=>"custommenu/editItem/id/".($_smarty_tpl->tpl_vars['entry']->value['menuItemID'])."/"),$_smarty_tpl);?>

						<?php }?>
						<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                                                    <?php if (isset($_smarty_tpl->tpl_vars['entry']->value['children'])){?>
                                                    <?php $_smarty_tpl->tpl_vars["childcount"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['entry']->value['children']), null, 0);?>
                                                    <?php }?>
                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('id'=>($_smarty_tpl->tpl_vars['entry']->value['menuItemID']),'class'=>"delete02 icon-set noremove",'title'=>$_smarty_tpl->tpl_vars['language']->value['lblDelete'],'task'=>'deleteItem','child'=>(($tmp = @$_smarty_tpl->tpl_vars['childcount']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

                       <?php }?>	
							<?php }?>
                                    </td>
                                  </tr>
                            </table></div>
                            </div>
                             <?php if (isset($_smarty_tpl->tpl_vars['entry']->value['children'])&&is_array($_smarty_tpl->tpl_vars['entry']->value['children'])&&!empty($_smarty_tpl->tpl_vars['entry']->value['children'])){?>
                               <ul id="" class="connectedSortable ui-sortable  hide"> 
                            <?php smarty_template_function_menuItems($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['entry']->value['children'],'level'=>$_smarty_tpl->tpl_vars['level']->value+1));?>
  <!--menu function calling-->
                            </ul>
                          
                        <?php }else{ ?>
                             <?php if ((is_array($_smarty_tpl->tpl_vars['entry']->value))&&(is_numeric($_smarty_tpl->tpl_vars['entry']->value['menuItemID']))){?>
                        </li>	
                        <?php }?>
                    <?php }?>
            <?php } ?>  
          <?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;}}?>

          <?php smarty_template_function_menuItems($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['resMenusItems']->value));?>
 <!--menu function calling-->
              </ul>
			  <div class="fixing_left"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRecordsFound'];?>
 :  <strong id="rowCntItems"></strong></div>
         	<?php }?> 
			<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->button(array('name'=>"submitItemDetails",'id'=>"submitItemDetails",'class'=>"update_btn_table curve-3 button02 fixing_right",'value'=>$_smarty_tpl->tpl_vars['language']->value['lblSave']),$_smarty_tpl);?>

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

          </div>
       	<?php }?> 
       <?php if (empty($_smarty_tpl->tpl_vars['resMenusItems']->value)){?>
    
    	 <div class="message_info" id="common_message"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
    <?php }?> 
     
    <!--End: main Block-->
  </div>
    </div>
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--End:Content Container-->
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
  </div>  <!-- outer_container ends-->
 <?php $_smarty_tpl->tpl_vars["menuItemAction"] = new Smarty_variable("listing", null, 0);?>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

<?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);?>

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

<script type="text/javascript">
$('.side_wrapper ul li a[rel=manage-menu-items]').addClass('selected'); 
var menuItemAction = '<?php echo $_smarty_tpl->tpl_vars['menuItemAction']->value;?>
';
setSideMenu();
var msgSelectItem="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
";
var lblSelectAction="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
";
var msgDeleteMenuItems="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteMenuItems'];?>
";
var deleteText = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDelete'];?>
";
var msgSelectSearchCriteria ='<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectSearchCriteria'];?>
';
var subItemsText="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSubItemsPresent'];?>
";
var languageMismatchRollback="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageMismatchSortingRollBacked'];?>
";
var errDeleteItemsWithChild="<?php echo $_smarty_tpl->tpl_vars['language']->value['errDeleteItemsWithChild'];?>
";
$('.info').customTooltip();
$('#rowCntItems').text($('.menuItemsListing li').length);
$("#brandID").change(function(){ 
	var id			=	$('#brandID').val();
	window.location.href = GLOBAL_BASE_PATH+"/custommenu/menuitems/brandID/"+ id+"/";
});
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/menuItemDetails.page.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/custommenuitem.page.js"></script>
</body>
</html>
<?php }} ?>