Created
April 28, 2015 03:34
-
-
Save benjohnson77/3d2ccd84fb2073985f08 to your computer and use it in GitHub Desktop.
Navigation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="ls-nav"> | |
<ul> | |
<?php if($this->session->userdata('user_type_id') == 1 && $this->session->userdata('is_admin') != 1) { ?> | |
<li><a href="<?=base_url()?>dashboard" <?=($this->uri->segment(1) == 'dashboard'?'class="active"':NULL)?>><span class="icon-dashboard"></span>Dashboard</a></li> | |
<li><a href="<?=base_url()?>mail" <?=($this->uri->segment(1) == 'mail'?'class="active"':NULL)?>><span class="icon-mail"></span>Mail</a></li> | |
<li><a href="<?=base_url()?>client" <?=($this->uri->segment(1) == 'client'?'class="active"':NULL)?>><span class="icon-client"></span>Clients</a></li> | |
<li><a href="<?=base_url()?>company" <?=($this->uri->segment(1) == 'company'?'class="active"':NULL)?>><span class="icon-company"></span>Companies</a></li> | |
<li><a href="<?=base_url()?>user" <?=($this->uri->segment(1) == 'user'?'class="active"':NULL)?>><span class="icon-user"></span>Users</a></li> | |
<li><a href="<?=base_url()?>agent" <?=($this->uri->segment(1) == 'agent'?'class="active"':NULL)?>><span class="icon-agent"></span>Agents</a></li> | |
<li><a href="<?=base_url()?>order" <?=($this->uri->segment(1) == 'order'?'class="active"':NULL)?>><span class="icon-order"></span>Orders</a></li> | |
<?php } elseif($this->session->userdata('user_type_id') == 2 && $this->session->userdata('is_admin') != 1) { ?> | |
<li><a href="<?=base_url()?>dashboard" <?=($this->uri->segment(1) == 'dashboard'?'class="active"':NULL)?>><span class="icon-dashboard"></span>Dashboard</a></li> | |
<li><a href="<?=base_url()?>mail" <?=($this->uri->segment(1) == 'mail'?'class="active"':NULL)?>><span class="icon-mail"></span>Mail</a></li> | |
<li><a href="<?=base_url()?>company" <?=($this->uri->segment(1) == 'company'?'class="active"':NULL)?>><span class="icon-company"></span>Companies</a></li> | |
<li><a href="<?=base_url()?>user" <?=($this->uri->segment(1) == 'user'?'class="active"':NULL)?>><span class="icon-user"></span>Users</a></li> | |
<li><a href="<?=base_url()?>agent" <?=($this->uri->segment(1) == 'agent'?'class="active"':NULL)?>><span class="icon-agent"></span>Agents</a></li> | |
<li><a href="<?=base_url()?>order" <?=($this->uri->segment(1) == 'order'?'class="active"':NULL)?>><span class="icon-order"></span>Orders</a></li> | |
<?php } elseif($this->session->userdata('user_type_id') == 3 && $this->session->userdata('is_admin') != 1) { ?> | |
<li><a href="<?=base_url()?>dashboard" <?=($this->uri->segment(1) == 'dashboard'?'class="active"':NULL)?>><span class="icon-dashboard"></span>Dashboard</a></li> | |
<li><a href="<?=base_url()?>user" <?=($this->uri->segment(1) == 'user'?'class="active"':NULL)?>><span class="icon-user"></span>Users</a></li> | |
<?php } elseif($this->session->userdata('is_admin') == 1) { ?> | |
<li><a href="<?=base_url()?>dashboard" <?=($this->uri->segment(1) == 'dashboard'?'class="active"':NULL)?>><span class="icon-dashboard"></span>Dashboard</a></li> | |
<li><a href="<?=base_url()?>mail" <?=($this->uri->segment(1) == 'mail'?'class="active"':NULL)?>><span class="icon-mail"></span>Mail</a></li> | |
<li><a href="<?=base_url()?>distributor" <?=($this->uri->segment(1) == 'distributor'?'class="active"':NULL)?>><span class="icon-distributor"></span>Distributors</a></li> | |
<li><a href="<?=base_url()?>client" <?=($this->uri->segment(1) == 'client'?'class="active"':NULL)?>><span class="icon-client"></span>Clients</a></li> | |
<li><a href="<?=base_url()?>company" <?=($this->uri->segment(1) == 'company'?'class="active"':NULL)?>><span class="icon-company"></span>Companies</a></li> | |
<li><a href="<?=base_url()?>user" <?=($this->uri->segment(1) == 'user'?'class="active"':NULL)?>><span class="icon-user"></span>Users</a></li> | |
<li><a href="<?=base_url()?>agent" <?=($this->uri->segment(1) == 'agent'?'class="active"':NULL)?>><span class="icon-agent"></span>Agents</a></li> | |
<li><a href="<?=base_url()?>product" <?=($this->uri->segment(1) == 'product'?'class="active"':NULL)?>><span class="icon-product"></span>Products</a></li> | |
<li><a href="<?=base_url()?>order" <?=($this->uri->segment(1) == 'order'?'class="active"':NULL)?>><span class="icon-order"></span>Orders</a></li> | |
<li><a href="<?=base_url()?>admin" <?=($this->uri->segment(1) == 'admin'?'class="active"':NULL)?>><span class="icon-admin"></span>Admin</a></li> | |
<?php } ?> | |
</ul> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment