<?php include "layouts/menu.php"; ?> <div class="right_col" role="main">
            <div class="row">
                 <!-- page header -->
                <div class="col-lg-12">
                    <h1 class="page-header">Inserting Month</h1>
                </div>
                <!--end page header -->
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <div class="alert alert-info">Welcome Verify Duedates Here</div>
                        </div>
                        <div class="panel-body">
                            <div class="row">
							  <?php $hpl=$_REQUEST['hpl'];?>
	<?php
	$qry=mysqli_query($conn, "select * from customerdetails where mfin='$mfin' &&  hpl='$hpl'");
$row=mysqli_fetch_array($qry);
	$date = $row['hpdate'];
	$mnt = $row['duemnt'];
	?>
   <form role="form" name="form1" class="form-horizontal" method="post" action="duemonth.php" enctype="multipart/form-data">
   <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">HPL</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="hpl" value="<?php echo $row['hpl'];?>">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Vehicle No</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="vno" value="<?php echo $row['vno'];?>" >
    </div>
  </div><?php
  $dates = $row['hpdate'];
	$mnts = $row['duemnt'];
	$a=30;
for($i=1; $i <= $mnts; $i++) {
$ss[$i] = date("d-m-Y", strtotime("$dates + " . ($i*1) . " month"));?>
<div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Due <?php echo $i; ?> </label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputpassword3" name="due<?php echo $i; ?>" value="<?php echo $ss[$i];?>">
    </div>
  </div>
<?php }
?>
 <div class="form-group">
   <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-primary" name="s1">Register</button>
   </div> 
</div>
      <div class="alert alert-success">
	 <?php include "programs/duedate.php"; ?>
	  </div>
</form>
  </div>
 
 
</div>
</div></div>
</div></div></div><?php include "layouts/fooder.php"; ?>
 <!-- end wrapper -->

    <!-- Core Scripts - Include with every page -->
    <script src="assets/plugins/jquery-1.10.2.js"></script>
    <script src="assets/plugins/bootstrap/bootstrap.min.js"></script>
    <script src="assets/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="assets/plugins/pace/pace.js"></script>
    <script src="assets/scripts/siminta.js"></script>
    <!-- Page-Level Plugin Scripts-->
    <script src="assets/plugins/morris/raphael-2.1.0.min.js"></script>
    <script src="assets/plugins/morris/morris.js"></script>
    <script src="assets/scripts/dashboard-demo.js"></script>

</body>

</html>
