?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/www/savoyglobal.net/eldertree/application/views/page-top.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <div class="row-fluid"> <div class="span12"> <?php if($_SESSION['user_type'] == 1) { $branches = $this->mastermodel->getdatas('branch', 'branch_name'); ?> <!-- <div class="color-panel hidden-phone "> <div class="color-mode-icons icon-color"></div> <div class="color-mode-icons icon-color-close"></div> <div class="color-mode"> <p> <?php echo ($_SESSION['login_type']) ? "Head Office" : $this->mastermodel->get_single_field_value('branch', 'branch_name', 'branch_id', $_SESSION['user_branch']); ?> </p> <label> <span>View</span> <select class="m-wrap small" onchange="relogin(this.value)"> <option value="0" selected>-- Select --</option> <?php if($_SESSION['login_type'] != 1) { ?> <option value="HO">Head Office</option> <?php } foreach($branches as $list) { ?> <option value="<?=$list['branch_id'];?>"><?=$list['branch_name'];?></option> <?php } ?> </select> </label> </div> </div>--> <?php } ?> <h3 class="page-title"> <?= $_SESSION['menu_name']; ?> </h3> <ul class="breadcrumb"> <li> <i class="icon-home"></i> <?= $_SESSION['module_title']; ?> <i class="icon-angle-right"></i> </li> <li><a href="#"><?= $_SESSION['menu_name']; ?></a></li> <!-- <li class="pull-right no-text-shadow"> <div class="dashboard-date-range tooltips no-tooltip-on-touch-device responsive" style="display: block;"> <i class="icon-calendar"></i> <span> <?php echo ($_SESSION['login_type']) ? "Head Office" : $this->mastermodel->get_single_field_value('branch', 'branch_name', 'branch_id', $_SESSION['user_branch']); ?> </span> <i class="icon-angle-down"></i> </div> </li>--> <?php if($_SESSION['user_id'] == 1) { ?> <li class="dropdown pull-right no-text-shadow"> <div class="dashboard-date-range dropdown-toggle tooltips no-tooltip-on-touch-device responsive" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" style="display: block; margin-top: -10px;" data-original-title="Click to view another branch details"> <span> <?php echo ($_SESSION['login_type']) ? "Head Office" : $this->mastermodel->get_single_field_value('branch', 'branch_name', 'branch_id', $_SESSION['login_branch']); ?> </span></a> <i class="icon-angle-down"></i> </div> <ul class="dropdown-menu"> <li><?=anchor('master/relogin/HO', 'Head Office', 'title="View HO"');?></li> <?php foreach($branches as $list) { ?> <li><?=anchor('master/relogin/'.$list['branch_id'], $list['branch_name'], 'title="View '.$list['branch_name'].'"');?></li> <?php } ?> </ul> <?php } ?> </li> </ul> </div> </div>