User Creation changes
This commit is contained in:
parent
7bf58ede17
commit
c517e540bb
@ -148,7 +148,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
if($role != ROLE_MANAGER )
|
||||
if($role != ROLE_MANAGER & $role != ROLE_EMPLOYEE )
|
||||
{
|
||||
?>
|
||||
|
||||
@ -156,12 +156,12 @@
|
||||
<span id="menu" data-toggle="dropdown"><i class="fa fa-database" aria-hidden="true"></i> Master Details<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
|
||||
|
||||
<?php
|
||||
if($role == ROLE_ADMIN || $role == ROLE_SALES || $role == ROLE_ACCOUNTS )
|
||||
<?php //echo $DEPCode;
|
||||
if($role == ROLE_ADMIN || $DEPCode == SALES || $DEPCode == FINANCE )
|
||||
{
|
||||
?>
|
||||
<?php
|
||||
if($role != ROLE_ACCOUNTS )
|
||||
if($DEPCode != FINANCE )
|
||||
{
|
||||
?>
|
||||
<li class="treeview">
|
||||
@ -174,7 +174,7 @@
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if($role == ROLE_ACCOUNTS )
|
||||
if($DEPCode == FINANCE )
|
||||
{
|
||||
?>
|
||||
<li class="treeview">
|
||||
@ -183,13 +183,7 @@
|
||||
<span class="nav-label">Cost Details</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if($role == ROLE_ACCOUNTS )
|
||||
{
|
||||
?>
|
||||
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>assetListing" >
|
||||
<i class="fa fa-cogs"></i>
|
||||
@ -213,7 +207,7 @@
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if($role != ROLE_ACCOUNTS )
|
||||
if($DEPCode == FINANCE )
|
||||
{
|
||||
?>
|
||||
<li class="treeview">
|
||||
@ -248,13 +242,13 @@
|
||||
|
||||
?>
|
||||
<?php
|
||||
if($role == ROLE_ADMIN || $role == ROLE_MANAGER || $role == ROLE_SALES || $role == ROLE_ACCOUNTS)
|
||||
if( $role == ROLE_MANAGER|| $role == ROLE_EMPLOYEE )
|
||||
{
|
||||
?>
|
||||
<li class="treeview">
|
||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Requisition<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<?php if($role == ROLE_MANAGER || $role == ROLE_ADMIN || $role == ROLE_ACCOUNTS)
|
||||
<?php if($role == ROLE_MANAGER || $role == ROLE_EMPLOYEE )
|
||||
{
|
||||
?>
|
||||
<li class="treeview">
|
||||
@ -266,7 +260,7 @@
|
||||
<?Php
|
||||
}
|
||||
?>
|
||||
<?php if($role == ROLE_MANAGER || $role == ROLE_ACCOUNTS)
|
||||
<?php if($role == ROLE_MANAGER )
|
||||
{
|
||||
?>
|
||||
<li class="treeview">
|
||||
@ -278,7 +272,7 @@
|
||||
<?Php
|
||||
} ?>
|
||||
<?Php
|
||||
if($role == ROLE_ACCOUNTS)
|
||||
if($DEPCode == FINANCE)
|
||||
{
|
||||
?>
|
||||
|
||||
@ -295,8 +289,32 @@
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($role == ROLE_ACCOUNTS)
|
||||
if($DEPCode == FINANCE)
|
||||
{
|
||||
?>
|
||||
|
||||
<li class="treeview">
|
||||
<span id="menu" data-toggle="dropdown"><i class="fa fa-thumb-tack"></i> Purchase order<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorderform/alternatepo">
|
||||
<i class="fa fa-users"></i>
|
||||
<span>Emergency Purchase Order </span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if($DEPCode == FINANCE)
|
||||
{
|
||||
?>
|
||||
<li class="treeview">
|
||||
@ -330,29 +348,6 @@
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if($role == ROLE_ACCOUNTS)
|
||||
{
|
||||
?>
|
||||
|
||||
<li class="treeview">
|
||||
<span id="menu" data-toggle="dropdown"><i class="fa fa-thumb-tack"></i> Purchase order<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorderform/alternatepo">
|
||||
<i class="fa fa-users"></i>
|
||||
<span>Emergency Purchase Order </span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
|
||||
Loading…
Reference in New Issue
Block a user