<!doctype html>
<?php 
include("../connection.php");
include("../user.php");
$cur_date=date('Y-m-d H:i:s');
$user=$_SESSION['user'];


?>
 <html class="no-js" lang=""> 
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo TITLE;?></title>
    <meta name="description" content="Ela Admin - HTML5 Admin Template">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="apple-touch-icon" href="../images/bluebase.png">
    <link rel="shortcut icon" href="../images/bluebase.png">
    <!-- <script type="text/javascript" src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv.min.js"></script> -->

	<style>
	input
	{
	text-transform:uppercase;	
	}
	textarea
	{
	text-transform:uppercase;	
	}
	</style>
</head>
<body>
  
		<div class="col-lg-8">
	<div class="card">
		<div class="card-header">
		<strong>Invoice Creation</strong>
			<a href="invoice_master.php"><button class="btn btn-primary" style="width:50px;margin-left:400px;"onclick=""><i class="fa fa-backward"></i></button></a>			
		</div>
	<div class="card-body card-block">
	<form  method="post" enctype="multipart/form-data" class="form-horizontal" action="invoice_submit.php">
	<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Category Name</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><select id="cat_name" name="cat_name" placeholder="select category name" class="form-control"autocomplete="off" required>
		<option value="" selected disabled>Select category  name</option>
		
		</select></div>
		</div>
			<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">PO Number</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><select id="po_number" name="po_number" placeholder="select po number" class="form-control"autocomplete="off"  required>
		<option value="" selected disabled>Select PO Number</option>
		
		</select></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">PO Date</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" id="po_date" name="po_date" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Invoice Number</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" id="invoice_number" name="invoice_number" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Invoice Date</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" value="<?php echo date("d-m-Y",strtotime($cur_date));?>" id="invoice_date" name="invoice_date" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">PO Quantity</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" id="po_quantity" name="po_quantity" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Issued Quantity</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" id="issued_quantity" name="issued_quantity" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Available Quantity</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" id="avail_quantity" name="avail_quantity" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Inward Quantity</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" id="inward_quantity" name="inward_quantity" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Vendor</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" id="vendor" name="vendor" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Warranty Period</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><select id="warranty_period" name="warranty_period" placeholder="select no. of  years" class="form-control"autocomplete="off" required>
		<option value="" selected disabled>Select No. Of Years</option>
		<option value="1 year">1 year</option>
		<option value="2 years">2 years</option>
		<option value="3 years">3 years</option>
		</select></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Expiry Date</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" value="<?php echo date("d-m-Y",strtotime($cur_date));?>" id="expiry_date" name="expiry_date" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Amount</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="number" id="amount" name="amount" placeholder="" class="form-control" autocomplete="off" required></div>
		</div>
				<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Remarks</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><textarea type="text" id="remarks" name="remarks" placeholder="" class="form-control"autocomplete="off" required></textarea></div>
		</div>
		
		<div style="">
		<button type="submit" name="submit" class="btn btn-success" ><i class="fa fa-dot-circle-o"></i> Submit</button>
		
		</div>
	</form>
	</div>
	</div>
    <div class="clearfix"></div>

    <footer class="site-footer">
        
    </footer>

</div><!-- /#right-panel -->
</body>
</html>



