header.php edited for Finance Team and Purchase Team

This commit is contained in:
VenbaInfotech 2017-06-12 13:16:45 +00:00
parent e9e22b46d6
commit be916c2863

View File

@ -79,6 +79,8 @@
<!-- fullCalendar 2.2.5-->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.print.css" media="print">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css" rel="stylesheet">
<style>
.error{
@ -250,7 +252,7 @@
<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_EMPLOYEE || $role == ROLE_ADMIN )
<?php if(($role == ROLE_MANAGER || $role == ROLE_EMPLOYEE || $role == ROLE_ADMIN) && $DEPCode != PURCHASE )
{
?>
<li class="treeview">
@ -275,7 +277,7 @@
<?Php
} ?>
<?Php
if($DEPCode == FINANCE)
if($DEPCode != FINANCE || $DEPCode == PURCHASE)
{
?>
@ -294,7 +296,7 @@
?>
<?php
if($DEPCode == FINANCE && $role == ROLE_MANAGER)
if(($DEPCode == FINANCE && $role == ROLE_MANAGER)|| ($(DEPCode == PURCHASE && $role == ROLE_EMPLOYEE))
{
?>
@ -302,7 +304,7 @@
<span id="menu" data-toggle="dropdown"><i class="fa fa-first-order"></i> Purchase order<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<?php
if($DEPCode == FINANCE)
if($DEPCode != FINANCE || $DEPCode == PURCHASE)
{
?>
<li class="treeview">
@ -316,7 +318,7 @@
}
?>
<?php
if($DEPCode == FINANCE && $role == ROLE_MANAGER)
if($DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)
{
?>
<li class="treeview">
@ -328,14 +330,34 @@
<?php
}
?>
<!-- For Finance Team for PO approval list-->
<?php
if($DEPCode == FINANCE && $role == ROLE_MANAGER)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorder/poapproval">
<i class="fa fa-users"></i>
<span>Approve Purchase Order</span>
</a>
</li>
<?php
}
?>
<!-- this page is for gate keeper for view the full po list-->
<?php
if($DEPCode != FINANCE && $DEPCode == PURCHASE)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorder/viewfullpurchaseorder">
<i class="fa fa-history"></i>
<span>View Purchase Order</span>
</a>
</li>
<?php
}
?>
</ul>
</li>
<?php