siddharth_application/application/views/includes/header.php
gandhimathi Bharathirajan e085d5b3e4 Purchase Department Addedd
2017-06-13 11:02:17 +05:30

464 lines
17 KiB
PHP
Executable File

<html>
<head>
<meta charset="UTF-8">
<title><?php echo $pageTitle; ?></title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.4 -->
<link href="<?php echo base_url(); ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- FontAwesome 4.3.0 -->
<link href="<?php echo base_url(); ?>assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons 2.0.0 -->
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="<?php echo base_url(); ?>assets/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="<?php echo base_url(); ?>assets/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
<!-- daterange picker -->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/daterangepicker/daterangepicker.css">
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-1.12.4.js"></script>
<!-- jquery-1.12.4.min -->
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.jeditable.js"></script>
<!-- DataTables -->
<script src="<?php echo base_url();?>assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- cdn fot data Table plugins-->
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/underscore.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-ui-1.10.4.min.js"></script>
<script src="<?php echo base_url();?>assets/dist/jquery.loader.js"></script>
<link href="<?php echo base_url();?>assets/dist/jquery.loader.css" rel="stylesheet" type="text/css" />
<!-- For Table Sorting -->
<script type="text/javascript" src="<?php echo base_url();?>assets/js/tsort.min.js"></script>
<!-- For Searchable dropdown -->
<script src="<?php echo base_url();?>assets/plugins/select2/select2.full.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/daterangepicker/moment.js"></script>
<script src="<?php echo base_url();?>assets/plugins/daterangepicker/moment.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/daterangepicker/daterangepicker.js"></script>
<link href="<?php echo base_url();?>assets/css/default.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/animate.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/style.min.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/component.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" type="text/css">
<!-- Bootstrap 3.3.4 -->
<link href="<?php echo base_url(); ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- FontAwesome 4.3.0 -->
<link href="<?php echo base_url(); ?>assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons 2.0.0 -->
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="<?php echo base_url(); ?>assets/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<!-- Searchable dropdown -->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/select2/select2.min.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/daterangepicker/daterangepicker.css">
<!-- fullCalendar 2.2.5 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<script src="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.js"></script>
<!-- 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">
<!-- 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{
color:red;
font-weight: normal;
}
#menu{color: #fff;line-height: 20px;position: relative;display: block; padding: 15px 15px;background-color: transparent;cursor: pointer;
}
@media (max-width: 500px)
{
.navbar-custom-menu>.navbar-nav>li>.dropdown-menu {
position: absolute;
right: 5%;
left: auto;
border: 1px solid #ddd;
background: #3c8dbc;
}
}
.box-header{padding:20px ! important}
select{
width: 100%;
padding: 2%;}
</style>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" crossorigin="anonymous">
<title>Siddharth Industries</title>
<!-- Data Tables-->
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.bootstrap.css"/>
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.responsive.css"/>
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.tableTools.min.css"/>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<link href="//cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
<script type="text/javascript"> var baseURL = "<?php echo base_url(); ?>";</script>
</head>
<body class="skin-blue sidebar-collapse">
<header class="main-header">
<!-- Logo -->
<a class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>SI</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Siddharth Industries</b></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation" >
<!-- Sidebar toggle button-->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<i class="fa fa-bars fa-2x" aria-hidden="true"></i>
</button>
</div>
<div class="navbar-custom-menu collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less -->
<li class="treeview">
<a href="<?php echo base_url(); ?>dashboard">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
</a>
</li>
<?php
if($role == ROLE_ADMIN || $DEPCode == SALES || $DEPCode == FINANCE )
{
?>
<li class="treeview">
<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 //echo $DEPCode;
if($role == ROLE_ADMIN || $DEPCode == SALES || $DEPCode == FINANCE )
{
?>
<?php
if($DEPCode != FINANCE )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>supplierListing" >
<i class="fa fa-user-secret"></i>
<span class="nav-label">Supplier Details</span>
</a>
</li>
<?php
}
?>
<?php
if($DEPCode == FINANCE )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>costListing" >
<i class="fa fa-cart-plus"></i>
<span class="nav-label">Cost Details</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>assetListing" >
<i class="fa fa-cogs"></i>
<span class="nav-label">Asset Details</span>
</a>
</li>
<?php
}
?>
<?php
if($role == ROLE_ADMIN)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>employeeListing" >
<i class="fa fa-user-circle"></i>
<span class="nav-label">Employee Details</span>
</a>
</li>
<?php
}
?>
<?php
if($role == ROLE_ADMIN )
{
?>
<li class="treeview">
<a href="<?php echo base_url();?>rawmaterialListing" >
<i class="fa fa-files-o"></i>
<span>Material Master</span>
</a>
</li>
<?php
}
?>
<?php
}
if($role == ROLE_ADMIN )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>userListing">
<i class="fa fa-users"></i>
<span>Users</span>
</a>
</li>
<?php
}
?>
</ul>
</li>
<?php
}
?>
<?php
if( $role == ROLE_MANAGER|| $role == ROLE_EMPLOYEE || $role == ROLE_ADMIN)
{
?>
<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 )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>Requisition">
<i class="fa fa-arrow-circle-up"></i>
<span>Raise Requisition </span>
</a>
</li>
<?Php
}
?>
<?php if($role == ROLE_MANAGER )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>ApproveRequisition">
<i class="fa fa-thumbs-o-up"></i>
<span>Approve Requisition </span>
</a>
</li>
<?Php
} ?>
<?Php
if($DEPCode != FINANCE || $DEPCode == PURCHASE)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>CreatePO">
<i class="fa fa-empire"></i>
<span>Purchase Order From Requisition</span>
</a>
</li>
<?Php } ?>
</ul>
</li>
<?php
}
?>
<?php
//if(($DEPCode == FINANCE && $role == ROLE_MANAGER)|| ($(DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)))
if($DEPCode == FINANCE || $DEPCode == PURCHASE )
{
?>
<li class="treeview">
<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 || $DEPCode == PURCHASE)
if( $DEPCode == PURCHASE)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>EmergencyPO">
<i class="fa fa-ambulance"></i>
<span>Emergency Purchase Order </span>
</a>
</li>
<?php
}
?>
<?php
//if($DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)
if($DEPCode == PURCHASE )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorderListing">
<i class="fa fa-list"></i>
<span>Purchase Order List </span>
</a>
</li>
<?php
}
?>
<!-- For Finance Team for PO approval list-->
<?php
//if($DEPCode == FINANCE && $role == ROLE_MANAGER)
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)
if( $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
}
?>
<?php
if($DEPCode == FINANCE)
{
?>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> PaySlip <span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
<li class="treeview">
<a href="<?php echo base_url(); ?>ExcelUpload">
<i class="fa fa-upload"></i>
<span>Upload Salary</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>ExcelUpload2">
<i class="fa fa-keyboard-o"></i>
<span>Monthly Salary Inputs</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>ViewPay">
<i class="fa fa-money"></i>
<span>PaySlip Generator</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>payslip/updatepayroll" >
<i class="fa fa-credit-card-alt"></i> <span>Payslip</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>emppayListings" >
<i class="fa fa-credit-card"></i> <span>Employee Salary Details</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>monthlyListings" >
<i class="fa fa-table"></i> <span>Employee Monthly Payment</span>
</a>
</li>
</ul>
</li>
<?php
}
?>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-check-square-o"></i> Inspection<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<li class="treeview">
<a href="<?php echo base_url(); ?>inwardgateregister/inwardgateregister">
<i class="fa fa-upload"></i>
<span>Inward Gate Register</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>inwardgateregister/materialinspectionreport">
<i class="fa fa-upload"></i>
<span>Material Inspection Report</span>
</a>
</li>
</ul>
</li>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?php echo base_url(); ?>assets/dist/img/avatar.png" class="user-image" alt="User Image"/>
<span class="hidden-xs"><?php echo $name; ?></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="<?php echo base_url(); ?>assets/dist/img/avatar.png" class="img-circle" alt="User Image" />
<p>
<?php echo $name; ?>-<?php echo $role; ?>
<small><?php echo $role_text; ?></small>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="<?php echo base_url(); ?>loadChangePass" class="btn btn-default btn-flat">Change Password</a>
</div>
<div class="pull-right">
<a href="<?php echo base_url(); ?>logout" class="btn btn-default btn-flat">Sign out</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>