<?php
$server = $_SERVER['REQUEST_URI'];
$pages = array(
'all_page' => '/university/index.php/pages/all_page',
'page_add' => '/university/index.php/pages/page_add',
'menus' => '/university/index.php/pages/index',
'menu' => '/university/index.php/pages/',
'sliderAdd' => '/university/index.php/Slider/sliderAdd',
'sliderView' => '/university/index.php/Slider/sliderView',
'Future' => '/university/index.php/Slider/Future',
'contact_us' => '/university/index.php/pages/contact_us',
'newsAdd' => '/university/index.php/News/newsAdd',
'newsView' => '/university/index.php/News/index',
'eventsAdd' => '/university/index.php/Events/eventsAdd',
'eventsView' => '/university/index.php/Events/index',
'emailPhone' => '/university/index.php/Slider/emailPhone',
'Logos' => '/university/index.php/Slider/Logo',
'footer_change' => '/university/index.php/Slider/footer_change'
);
?>
<div class="nab">
<div class="sidebar-collapse">
<ul class="nav metismenu" id="side-menu">
<li class="nav-header">
<div class="dropdown profile-element"> <span style="margin-left:-15px;">
<img alt="image" src="<?php echo base_url(); ?>upload/image-22082017080213.png" height="60" />
</span>
</div>
<div class="logo-element">
USMS
</div>
</li>
<!-- <li>
<a href="<?php //echo site_url('dashboard/index'); ?>"><i class="fa fa-th-large"></i> <span class="nav-label">Dashboard</span></a>
</li>-->
<li<?php
extract($pages);
if ($all_page == $server || $page_add == $server) {
?> class="active" <?php } ?>>
<a href=""><i class="fa fa-file-code-o"></i> <span class="nav-label">Pages </span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li <?php if ($page_add == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('pages/page_add'); ?>">Pages Add </a></li>
<li <?php if ($all_page == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('pages/all_page'); ?>">All Pages</a></li>
</ul>
</li>
<li <?php if ($sliderAdd == $server || $sliderView == $server) { ?> class="active" <?php } ?>>
<a href=""><i class="fa fa-film"></i> <span class="nav-label">Slider</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li <?php if ($sliderAdd == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('Slider/sliderAdd'); ?>">Slider Add </a></li>
<li <?php if ($sliderView == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('Slider/sliderView'); ?>">Slider View</a></li>
</ul>
</li>
<li <?php if ($Future == $server) { ?> class="active" <?php } ?>>
<a href="<?php echo site_url('Slider/Future'); ?>"><i class="fa fa-cubes"></i> <span class="nav-label">Future</span></a>
</li>
<li <?php if ($contact_us == $server) { ?> class="active" <?php } ?>>
<a href="<?php echo site_url('pages/contact_us'); ?>"><i class="fa fa-map-marker"></i> <span class="nav-label">Contact Us</span></a>
</li>
<li <?php if ($newsAdd == $server || $newsView == $server) { ?> class="active" <?php } ?>>
<a href=""><i class="fa fa-newspaper-o"></i> <span class="nav-label">News</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li<?php if ($newsAdd == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('News/newsAdd'); ?>">News Add</a></li>
<li <?php if ($newsView == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('News/index'); ?>">All News</a></li>`
`
</ul>
</li>
<li <?php if ($eventsAdd == $server || $eventsView == $server) { ?> class="active" <?php } ?>>
<a href=""><i class="fa fa-university"></i> <span class="nav-label">Events</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li <?php if ($eventsAdd == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('Events/eventsAdd'); ?>">Events Add</a></li>
<li <?php if ($eventsView == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('Events/index'); ?>">All Events</a></li>
</ul>
</li>
<li <?php if ($menus == $server || $menu == $server || $emailPhone == $server || $Logos == $server || $footer_change == $server) { ?> class="active" <?php } ?> >>
<a href=""><i class="fa fa-gear"></i> <span class="nav-label">Setting</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li <?php if ($emailPhone == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('Slider/emailPhone'); ?>">Header Email And Phone Number#</a></li>
<li <?php if ($Logos == $server) { ?> class="active" <?php } ?>> <a href="<?php echo site_url('Slider/Logo'); ?>">Header Logo</a></li>
<li <?php if ($menus == $server || $menu == $server) { ?> class="active" <?php } ?> ><a href="<?php echo site_url('pages/index'); ?>">Menus</a></li>
<li <?php if ($footer_change == $server) { ?> class="active" <?php } ?>><a href="<?php echo site_url('Slider/footer_change'); ?>">Footer </a></li>
</ul>
</li>
</ul>
</div>
</div>