EVOLUTION-NINJA
Edit File: admin_menu.php
<div id="wrapper"> <!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top menu-a" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand my_logo" href="<?php echo site_url('controller/product');?>"><img class="img-responsive" src="<?php echo base_url('admin_assets/img/F1.svg');?>"></a> </div> <!-- Top Menu Items --> <ul class="nav navbar-right top-nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="cursor: default;"><i class="fa fa-user"></i> Admin</a> <li> <a href="<?php echo site_url('controller/logout');?>"><i class="fa fa-fw fa-power-off"></i> Log Out</a> </li> </li> </ul> <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens --> <?php $url = $this->uri->segment(2); //print_r($url);?> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav side-nav my-nav"> <!-- <li class="active"> <a href="index.html"><i class="fa fa-fw fa-dashboard"></i> Dashboard</a> </li> --> <li class="<?php if($this->uri->segment(2)=="supervisor_view" || $this->uri->segment(2)=="abp_view" || $this->uri->segment(2)=="region_view"){echo "active";}?>"> <a href="javascript:;" data-toggle="collapse" data-target="#demo1"> Manage Users <i class="fa fa-fw fa-caret-down"></i></a> <ul id="demo1" class="collapse <?php if($this->uri->segment(2)=="supervisor_view" || $this->uri->segment(2)=="abp_view" || $this->uri->segment(2)=="region_view"){echo "in";}?>"> <li class="<?php if($this->uri->segment(2)=="supervisor_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/supervisor_view');?>">Supervisor</a> </li> <li class="<?php if($this->uri->segment(2)=="abp_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/abp_view');?>">ABP</a> </li> <li class="<?php if($this->uri->segment(2)=="region_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/region_view');?>">Regional Manager</a> </li> </ul> </li> <li class="<?php if($this->uri->segment(2)=="stock_updates_view" || $this->uri->segment(2)=="po_view"){echo "active";}?>"> <a href="javascript:;" data-toggle="collapse" data-target="#demo2"> Information <i class="fa fa-fw fa-caret-down"></i></a> <ul id="demo2" class="collapse <?php if($this->uri->segment(2)=="stock_updates_view" || $this->uri->segment(2)=="po_view"){echo "in";}?>"> <li class="<?php if($this->uri->segment(2)=="stock_updates_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/stock_updates_view');?>">Stock Updates</a> </li> <li class="<?php if($this->uri->segment(2)=="po_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/po_view');?>">PO Acknowledgemets</a> <a href="<?php echo site_url('controller/po_view_new');?>" style="display:none;">PO Acknowledgemets new</a> </li> </ul> </li> <li class="<?php if($this->uri->segment(2)=="outstanding_view" || $this->uri->segment(2)=="overdue_view" || $this->uri->segment(2)=="cform_view"){echo "active";}?>"> <a href="javascript:;" data-toggle="collapse" data-target="#demo3"> Financials<i class="fa fa-fw fa-caret-down"></i></a> <ul id="demo3" class="collapse <?php if($this->uri->segment(2)=="outstanding_view" || $this->uri->segment(2)=="overdue_view" || $this->uri->segment(2)=="cform_view"){echo "in";}?>"> <li class="<?php if($this->uri->segment(2)=="outstanding_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/outstanding_view');?>">Outstanding Statement</a> </li> <li class="<?php if($this->uri->segment(2)=="overdue_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/overdue_view');?>">Overdue Statement</a> </li> <li class="<?php if($this->uri->segment(2)=="cform_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/cform_view');?>">C forms</a> </li> </ul> </li> <li class="<?php if($this->uri->segment(2)=="drive_catalogues_view" || $this->uri->segment(2)=="case_stories_view" || $this->uri->segment(2)=="appreciation_letter_view" || $this->uri->segment(2)=="application_notes_view" || $this->uri->segment(2)=="technical_notes_view" || $this->uri->segment(2)=="training_presentation_view" || $this->uri->segment(2)=="software_view" || $this->uri->segment(2)=="projects_view" || $this->uri->segment(2)=="others_view"){echo "active";}?>"> <a href="javascript:;" data-toggle="collapse" data-target="#demo4"> Drives<i class="fa fa-fw fa-caret-down"></i></a> <ul id="demo4" class="collapse <?php if($this->uri->segment(2)=="drive_catalogues_view" || $this->uri->segment(2)=="case_stories_view" || $this->uri->segment(2)=="appreciation_letter_view" || $this->uri->segment(2)=="application_notes_view" || $this->uri->segment(2)=="technical_notes_view" || $this->uri->segment(2)=="training_presentation_view" || $this->uri->segment(2)=="software_view" || $this->uri->segment(2)=="projects_view" || $this->uri->segment(2)=="others_view"){echo "in";}?>"> <li class="<?php if($this->uri->segment(2)=="drive_catalogues_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/drive_catalogues_view');?>">Technical Manuals</a> </li> <li class="<?php if($this->uri->segment(2)=="case_stories_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/case_stories_view');?>">Case Notes</a> </li> <li class="<?php if($this->uri->segment(2)=="appreciation_letter_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/appreciation_letter_view');?>">Appreciation Letters</a> </li> <li class="<?php if($this->uri->segment(2)=="application_notes_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/application_notes_view');?>">Application Notes</a> </li> <li class="<?php if($this->uri->segment(2)=="technical_notes_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/technical_notes_view');?>">Technical Notes</a> </li> <li class="<?php if($this->uri->segment(2)=="training_presentation_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/training_presentation_view');?>">Training Presentations</a> </li> <li class="<?php if($this->uri->segment(2)=="software_view" ){echo "active";}?>"> <a href="<?php echo site_url('controller/software_view');?>">Softwares</a> </li> <!-- <li class="<?php if($this->uri->segment(2)=="projects_view" ){echo "active";}?>">--> <!-- <a href="<?php echo site_url('controller/projects_view');?>">Projects</a>--> <!--</li>--> <!--<li class="<?php if($this->uri->segment(2)=="others_view" ){echo "active";}?>">--> <!-- <a href="<?php echo site_url('controller/others_view');?>">Others</a>--> <!--</li>--> </ul> </li> <!--<li class="<?php if($this->uri->segment(2)=="news_view"){echo "active";}?>">--> <!-- <a href="<?php echo site_url('controller/news_view');?>">News</a>--> <!--</li>--> <li class="divider"></li> <li class="<?php if($this->uri->segment(2)=="product"){echo "active";}?>"> <a href="<?php echo site_url('controller/product');?>">Add Product and Category</a> </li> <li class="divider"></li> <li class="<?php if($this->uri->segment(2)=="admin_shipaddress"){echo "active";}?>"> <a href="<?php echo site_url('controller/admin_shipaddress');?>">Add ABP Shipment Address</a> </li> <li class="divider"></li> <li class="<?php if($this->uri->segment(2)=="add_product"){echo "active";}?>"> <a href="<?php echo site_url('controller/add_product');?>">Add New Product</a> </li> <li class="divider"></li> <li class="<?php if($this->uri->segment(2)=="product_list"){echo "active";}?>"> <a href="<?php echo site_url('controller/product_list');?>">Product List</a> </li> <!-- <li class="divider"></li> --> <!-- <li class="<?php if($this->uri->segment(2)=="po_list"){echo "active";}?>">--> <!-- <a href="<?php echo site_url('controller/po_list');?>">PO List</a>--> <!--</li>--> <li class="divider"></li> <li class="<?php if($this->uri->segment(1)=="home-page-image-upload"){echo "active";}?>"> <a href="<?php echo site_url('home-page-image-upload');?>">Home Page Image Upload</a> </li> <li class="divider"></li> <li class="<?php if($this->uri->segment(1)=="feedback"){echo "active";}?>"> <a href="<?php echo site_url('feedback');?>">Opinion Poll</a> </li> <li class="divider"></li> </ul> </div> <!-- /.navbar-collapse --> </nav> </div> <style> ul li .active { background-color: darkgrey; } </style>