?
Current Path : /home1/savoy/public_html/savoyglobal.net/cocorico/application/views/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/cocorico/application/views/menu.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> <ul class="page-sidebar-menu"> <li> <!-- BEGIN SIDEBAR TOGGLER BUTTON --> <div class="sidebar-toggler hidden-phone"></div> <!-- BEGIN SIDEBAR TOGGLER BUTTON --> </li> <?php foreach ($modules as $key => $list) { $menus = $this->mastermodel->build_menu($list['module_id']); ?> <li <?php if ($_SESSION['module_name'] == $list['module_name']){ ?> class="active " <?php } ?>> <a data-hover="dropdown" data-close-others="true" class="dropdown-toggle " <?php if ($list['module_name'] == 'home'){ ?> href="<?= site_url(); ?>" <?php } else{ ?> href="javascript:;" <?php } ?>> <i style="color:#FFFFFF;" class="<?= $list['module_icon']; ?>"></i><span class="selected"></span> <?= $list['module_title']; ?> <?php if (count($menus) > 0) { ?> <span class="arrow"></span> <?php } ?> </a> <?php if (count($menus) > 0) { ?> <ul class="sub-menu"> <?php foreach ($menus as $menulist) { $submenus = $this->mastermodel->get_sub_menu_child_new($menulist['menu_id']); $class="Class='"; if($menulist['menu_id'] == $_SESSION['current_mode']) { $class="selected-menu"; } $class .="'"; ?> <li <?= $class ?>> <a href=" <?= count($submenus) ? "javascript;;" : site_url('master/index/' . $menulist['menu_id'] . '/' . $menulist['module_id'] . '') ?>" ><?= $menulist['caption'] ?> <?php if(count($submenus)) { ?> <span class="arrow"></span> <?php } ?> </a> <?php if(count($submenus)) { ?> <ul class="sub-menu"> <?php foreach ($submenus as $smenu) { ?> <li <?php if($smenu['menu_id'] == $_SESSION['current_mode']){echo "class='selected-menu'";}?>> <a href="<?= site_url('master/index/' . $smenu['menu_id'] . '/' . $smenu['module_id'] . '') ?>" ><?= $smenu['caption'] ?></a> </li> <?php } ?> </ul> <?php } ?> </li> <?php } ?> </ul> <?php } } ?> </ul>