<?php
require("../connection.php");
include("../user.php");
$user_id=$_SESSION['user'];
$username=$_SESSION['user_name'];
$id_code=$_REQUEST['id'];
$get_exp=mysqli_fetch_array(mysqli_query($con,"SELECT * FROM `issue_master_table` where id='$id_code'"));
$ex_date=$get_exp['expire_date'];
?>
<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-12">
	<div class="card">
	<div class="card-header">
	<strong>Extend Date</strong>
	<a href="temp_expiry_report.php"><button class="btn btn-primary" style="width:50px;float:right;"><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="extnd_submit.php">
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Date</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="text" id="from_date" name="from_date"  value="<?php echo date("d-M-Y",strtotime($ex_date)); ?>"  class="form-control"  autocomplete="off" readonly></div>
		</div>
		<div class="row form-group">
		<div class="col col-md-3"><label for="text-input" class=" form-control-label">Extend Date</label><span style="color:red;">*</span></div>
		<div class="col-12 col-md-9"><input type="date" id="ex_date" name="ex_date"    class="form-control"  autocomplete="off" required >
		<input type="hidden" id="code" name="code"  value="<?php echo $id_code; ?>"  class="form-control"  autocomplete="off" required ></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>


