?
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/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/koaladraft/application/views/menu.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); function CreateSubMenu($submenuchild, $menu_id) { $flag = FALSE; $menulst = "<ul class='nav_main_sub_list'>"; foreach ($submenuchild as $childMenu) { if ($childMenu['parent_menu_id'] == $menu_id) { $menulst.='<li><a href="' . site_url() . '/master/index/' . $childMenu['menu_id'] . '/' . $childMenu['module_id'] . '">' . $childMenu['caption'] . '</a></li>'; $flag = TRUE; } } $flag ? $menulst.="</ul>" : $menulst = ""; return $menulst; } ?> <script type="text/javascript" src="<?= base_url() ?>assets/js/jquery.colorbox.js"></script> <script type="text/javascript"> function change_psw(controller,controllerfunction,id,table,field,page) { $('#hme').css('display','none'); $("#inner_content").empty().html('<CENTER><img src="<?= base_url() ?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#inner_content").load("<?= site_url() ?>/"+controller+'/'+controllerfunction+'/'+id+'/'+table+'/'+field+'/'+page); } </script> <div id="header_toolbar_top"> <div class="container_12"> <div class="header_top_menu"> <div class="toolbar_large"> <div class="toolbutton" style="float: left; "> <div class="toolmenu"> <div class="toolicon"> <a href="<?= site_url(); ?>/sessions/logout"><img title="<?= $_SESSION['user_name']; ?> - Logout" src="<?= base_url() ?>assets/img/icons/16x16/locked-2.png" width="16" height="16" alt="user" ></a> </div> </div> <div class="toolcaption"> <span><?= $_SESSION['user_name']; ?></span> </div> <!--div class="toolcaption "> <img class="inliexample11" src="<?= base_url() ?>/assets/images/pref.png" title="Change Password" width="20" height="20" alt="Change Password" align = "right" class="" onclick="change_psw('master','edit_page','<?= $_SESSION['user_id']; ?>','user','user_id','changepassword')" /> </div--> <!-- Start of menu --> <div class="dropdown"> <ul> <li style="width:100px;"> <a href="#" onclick="change_psw('master','edit_page','<?= $_SESSION['user_id']; ?>','user','user_id','changepassword')">Change Password</a> </li> </ul> </div> </div> </div> </div> </div> </div> <div id="header_toolbar"> <div class="container_12"> <?php $nursery_logo = $this->mastermodel->get_single_field_value('nursery', 'logo', 'nursery_id', '1'); ?> <a href="<?= site_url(); ?>"><img src="<?= base_url() ?>assets/logo/<?= $nursery_logo; ?>" style="float:left;max-height: 80px; "/></a> <img src="<?= base_url(); ?>assets/images/savoy_eduplus.jpg" style="float:right;max-height: 60px;"/> </div> </div> <nav id="header_main"> <div class="container_12"> <ul id="nav_main"> <li <?php if ($_SESSION['modename'] == 'home') { ?> class="current" <?php } ?>> <a href="<?= site_url(); ?>"> <img src="<?= base_url(); ?>assets/img/icons/25x25/dark/home.png" > Home </a> </li> <?php foreach ($modules as $module) { $isModuleVisible = false; $i = 0; $subMenuMore = ""; $subMenu = "<ul class='nav_main_sub'>"; foreach ($menus as $menu) { if ($menu['module_id'] == $module['module_id']) { $isModuleVisible = TRUE; $i++; if ($i <= 12) { $subMenu.='<li '; if ($_SESSION['current_mode'] == $menu['menu_id']) { $subMenu.='class="selectedli"'; } $subMenu.='><a href="' . site_url() . '/master/index/' . $menu['menu_id'] . '/' . $module['module_id'] . '">' . $menu['caption'] . '</a>' . CreateSubMenu($submenuchild, $menu['menu_id']) . '</li>'; } else { $subMenuMore.='<li><a href="' . site_url() . '/master/index/' . $menu['menu_id'] . '/' . $module['module_id'] . '">' . $menu['caption'] . '</a>' . CreateSubMenu($submenuchild, $menu['menu_id']) . '</li>'; } } } if ($i >= 12) $subMenu.= '<li><a href="#">More>></a><ul class="nav_main_sub_list">' . $subMenuMore . '</ul></li>'; if ($isModuleVisible) { $subMenu.="</ul>"; ?> <li <?php if ($_SESSION['modename'] == $module['module_name']) { echo 'class="current"'; } ?> > <a href="#"> <?php if ($module['module_icon'] != '') { ?><img src="<?= base_url(); ?>assets/img/icons/25x25/dark/<?= $module['module_icon']; ?>" ><?php } ?> <?= $module['module_title'] ?> </a> <?php echo $subMenu ?> </li> <?php } } ?> </ul> </div> </nav> <div id="nav_sub"></div> <style> #top_right_ul, #top_right_ul ul { padding: 0; margin: 0; list-style: none; } #top_right_ul a { display: block; width: 10em; } #top_right_ul li { float: left; width: 10em; } #top_right_ul li ul { position: absolute; width: 10em; left: -999em; } #top_right_ul li:hover ul { left: auto; } </style>