<?php ob_start();
include 'connection.php';

session_start();

if (!isset($_SESSION['is_logged_in'])) {
    header("Location:login.php");
    die();
    }
date_default_timezone_set('Asia/Calcutta');
$today = date("d/m/y");
$today1 = date("d-m-Y");
$today1a = date("Y-m-d");

$time = date("h:i A");


$currentyear = date("Y");
$currentmonth = date("m");

if($currentmonth>03) { 
$cuyear = date("Y");
$cuyear1 = date("y")+1;
} 
else { 
$cuyear = date("Y")-1;
$cuyear1 =  date("y");
} 
$f_year = "$cuyear"."-"."$cuyear1";


if($currentmonth>03) { 
$cuyear01 = date("Y")-1;
$cuyear11 = date("y");
} 
else { 
$cuyear01 = date("Y")-2;
$cuyear11 =  date("y");
} 
$f_Lyear = "$cuyear01"."-"."$cuyear11";




$querylogin = "select * from  mst_users where user_name = '". $_SESSION["LOGIN_NAME"]."' AND password = '".$_SESSION["EMPLOYEE_PASSWORD"]."'";
$resultlogin = mysqli_query($conn,$querylogin);
while($row=mysqli_fetch_array($resultlogin))
{
$user_name = $row['user_name'];
$user_id = $row['user_id'];
$first_name = $row['first_name'];
$login_type=$row['login_type'];

}
?>
<!DOCTYPE html>
<html>
<!-- Mirrored from themesdesign.in/xadmino/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Feb 2021 12:04:34 GMT -->
<head>
<meta charset="utf-8" />
<title><?php echo $company_namecnp?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content="Admin Dashboard" name="description" />
<meta content="ThemeDesign" name="author" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" href="assets/images/favicon.png">
<link href="assets/plugins/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/datatables/responsive.bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/datatables/dataTables.bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/icons.css" rel="stylesheet" type="text/css">
<link href="assets/css/style.css" rel="stylesheet" type="text/css">
<link href="vendors/bower_components/select2/dist/css/select2.min.css" rel="stylesheet" type="text/css">
<link href="vendors/bower_components/bootstrap-select/dist/css/bootstrap-select.min.css" rel="stylesheet" type="text/css">
<link href="vendors/bower_components/multiselect/css/multi-select.css" rel="stylesheet" type="text/css">
<script type="text/javascript" >
   function preventBack(){window.history.forward();}
    setTimeout("preventBack()", 0);
    window.onunload=function(){null};
</script>
</head>
<body class="fixed-left">
<div id="wrapper">
<div class="topbar">
<div class="topbar-left">
<div class="text-center"> <a href="index.php" class="logo"><img src="assets/images/logo_white_2.png"></a> <a href="index.html" class="logo-sm"><img src="assets/images/logo_sm.png" height="36"></a></div>
</div>
<div class="navbar navbar-default" role="navigation">
<div class="container">
<div class="">
<div class="pull-left">
<button type="button" class="button-menu-mobile open-left waves-effect waves-light"> <i class="ion-navicon"></i> </button>
<span class="clearfix"></span></div>
<ul class="nav navbar-nav navbar-right pull-right">
<li class="hidden-xs"> <a href="#" id="btn-fullscreen" class="waves-effect waves-light"><i class="fa fa-crosshairs"></i></a></li>
<li class="dropdown"> <a href="#" class="dropdown-toggle profile waves-effect waves-light" data-toggle="dropdown" aria-expanded="true"><img src="assets/images/users/avatar-1.jpg" alt="user-img" class="img-circle"> </a>
<ul class="dropdown-menu">
<!--<li><a href="javascript:void(0)"> Profile</a></li>
                <li><a href="javascript:void(0)"><span class="badge badge-success pull-right">5</span> Settings </a></li>-->
<!-- <li class="divider"></li>-->
<li><a href="logout.php"> Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="left side-menu">
<div class="sidebar-inner slimscrollleft"> <br>
<br>
<div id="sidebar-menu">
<ul style="text-transform:uppercase;">
<li> <a href="index.php" class="waves-effect"><i class="ti-home"></i><span>Dashboard </span></a></li>
<li> <a href="view_customer.php" class="waves-effect"><i class="ti-user"></i><span>Customer Master</span></a></li>
<li class="has_sub"> <a href="javascript:void(0);" class="waves-effect"><i class="ti-layout-tab"></i><span>Products</span><span class="pull-right"><i class="mdi mdi-plus"></i></span></a>
<ul class="list-unstyled">
<li> <a href="view_finish_product.php" class="waves-effect">Finish Product</a></li>
<li> <a href="view_rowmaterial.php" class="waves-effect">Raw Material</a></li>
</ul>
</li>
<li class="has_sub"> <a href="javascript:void(0);" class="waves-effect"><i class="ti-layout-tab"></i><span>Raw Material Inward </span><span class="pull-right"><i class="mdi mdi-plus"></i></span></a>
<ul class="list-unstyled">
<li><a href="cust_raw_material_recived.php">Add Inward </a></li>
<li><a href="view_all_inwards_customer.php">View Inward Material</a></li>
</ul>
</li>
<li class="has_sub"> <a href="javascript:void(0);" class="waves-effect"><i class="ti-layout-tab"></i><span>Customer PO </span><span class="pull-right"><i class="mdi mdi-plus"></i></span></a>
<ul class="list-unstyled">
<li><a href="customer_po.php">Add customer PO </a></li>
<li><a href="customer_po_more_product.php">View PO Itemwise</a></li>

<li><a href="view_all_customer_po.php">View Customer PO </a></li>
</ul>
</li>
<li class="has_sub"> <a href="javascript:void(0);" class="waves-effect"><i class="ti-layout-tab"></i><span>Delivery Challan</span><span class="pull-right"><i class="mdi mdi-plus"></i></span></a>
<ul class="list-unstyled">
<li> <a href="delivery_challan.php" class="waves-effect">Make Challan</a></li>
<li> <a href="view_all_delivery_challan.php" class="waves-effect">View Challan</a></li>
<li> <a href="view_all_delivery_detalils.php" class="waves-effect">Report-Datewise Challan</a></li>
</ul>
</li>
<li class="has_sub"> <a href="javascript:void(0);" class="waves-effect"><i class="ti-layout-tab"></i><span>Invoice</span><span class="pull-right"><i class="mdi mdi-plus"></i></span></a>
<ul class="list-unstyled">
<li> <a href="view_all_delivery_detalils_step1.php" class="waves-effect">Make Invoice</a></li>
<li> <a href="view_all_invoice.php" class="waves-effect">View Invoice</a></li>
</ul>
</li>
<li class="has_sub"> <a href="javascript:void(0);" class="waves-effect"><i class="ti-user"></i><span>VENDOR </span><span class="pull-right"><i class="mdi mdi-plus"></i></span></a>
<ul class="list-unstyled">
<li> <a href="view_vendor_details.php" class="waves-effect"><i class="ti-bar-chart"></i><span>VENDOR MASTER </span></a></li>
<li> <a href="view_vendor_stock.php" class="waves-effect"><i class="ti-bar-chart"></i><span>VENDOR STOCK </span></a></li>
<li> <a href="view_all_vendorpo.php" class="waves-effect"><i class="ti-bar-chart"></i><span>VENDOR PO</span></a></li>
</ul>
</li>
<li class="has_sub"> <a href="javascript:void(0);" class="waves-effect"><i class="ti-layout-tab"></i><span>MASTER </span><span class="pull-right"><i class="mdi mdi-plus"></i></span></a>
<ul class="list-unstyled">
<li><a href="view_all_sales_user.php">ALL USER LIST</a></li>
<li><a href="view_all_user_type.php">ALL USER TYPE</a></li>
<li><a href="add_bar_size.php">Bar Size</a></li>
<li><a href="add_bar_material.php">Bar Material</a></li>
</ul>
</li>
</ul>
</div>
<div class="clearfix"></div>
</div>
</div>
