<?php include "layouts/menu.php"; ?> 
   <?php $hpl=$_REQUEST['hpl'];?>
  <?php $vno=$_REQUEST['vno'];?>
  <!--  page-wrapper -->
         <div class="right_col" role="main">
            <div class="row">
                 <!-- page header -->
                <div class="col-lg-12">
                    <h1 class="page-header  alert alert-info">Updates</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">
                            Details
                        </div>
                        <div class="panel-body">
                            <div class="row">
   <div class="alert alert-info">Welcome Update User Details Here</div>
   <form name="form1" class="form-horizontal" method="post" action="" enctype="multipart/form-data">
   <?php
				$qry=mysqli_query($conn, "select * from customerdetails where mfin='$mfin' &&  vno='$vno'");
				$row=mysqli_fetch_array($qry);
	?>
	<img style="margin-left:150px;margin-bottom:20px;"" src="user/<?php echo $row['uimg'];?>" height="100" width="100"/>
   <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'];?>" placeholder="E.g 1008" required>
    </div>
  </div>
  
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Vehicle No</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputEmail3" name="vno" value="<?php echo $row['vno'];?>" placeholder="E.g TN 21 S 2676">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Model</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="model" value="<?php echo $row['model'];?>" placeholder="Vehicle Model">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Vehicle Name</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="vname" value="<?php echo $row['vname'];?>" placeholder="Vehicle Name">
    </div>
  </div>
   <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Color</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="color" value="<?php echo $row['color'];?>" placeholder="Vehicle Color E.g RED">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">H.P Amount</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="1" name="hpamount"  value="<?php echo $row['hpamount'];?>" placeholder="H.P Amount" onChange="add1()">
    </div>
  </div>
   <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Interest in %</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="2" name="inter"  value="<?php echo $row['inter'];?>" placeholder="2" onChange="add1()">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">H.P Date</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="datepicker" name="hpdate" value="<?php echo $row['hpdate'];?>" placeholder="H.P Date">
    </div>
    </div>
   <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Due Month</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="3" name="duemnt" value="<?php echo $row['duemnt'];?>" placeholder="Due Month">
    </div>
  </div>
  <input style="margin-left:150px;margin-bottom:10px;" type="button" value="Due" onclick="add2()">
  <div class="form-group">
    <label for="txt1" class="col-sm-2 control-label">Due Amount</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="txt1"  name="dueamt" value="<?php echo $row['dueamt'];?>" placeholder="Due Amount" onChange="add()">
    </div>
  </div>
  <div class="form-group">
    <label for="txt2" class="col-sm-2 control-label">Interest</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="txt2"  name="interest" value="<?php echo $row['interest'];?>" placeholder="Interest" onChange="add()">
    </div>
  </div>
   <input style="margin-left:150px;margin-bottom:10px;" type="button" value="ADD" onclick="add()">
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Total Amount</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="tot" name="total" value="<?php echo $row['total'];?>" placeholder="Total Amount" >
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Book Binding Amount</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="bba" name="bba" value="<?php echo $row['bba'];?>" placeholder="Book Binding Amount">
	</div>
  </div>
  <input style="margin-left:150px;margin-bottom:10px;" type="button" value="ADD" onclick="add3()">
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Book Binding Date</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="bbd" value="<?php echo $row['bbd'];?>" placeholder="Book Binding Date">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Name</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="name" value="<?php echo $row['name'];?>" placeholder="name">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Address</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" rows="3" name="address" value="<?php echo $row['address'];?>" placeholder="Address">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Co-Applicant Details</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" rows="3" name="co" value="<?php echo $row['co'];?>" placeholder="">
    </div>
  </div>
  <img style="margin-left:150px;margin-bottom:20px;"" src="user/<?php echo $row['img'];?>" height="100" width="100"/>
   <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Broker Name</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="bname" value="<?php echo $row['bname'];?>" placeholder="Broker Name">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Insurance Date</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="datepicker" name="idate" value="<?php echo $row['idate'];?>" placeholder="Insurance Date">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Username</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="uname" value="<?php echo $row['uname'];?>" placeholder="User Name">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Password</label>
    <div class="col-sm-4">
      <input type="password" class="form-control" id="inputPassword3" name="pwd" value="<?php echo $row['pwd'];?>" placeholder="Password">
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default" name="s2">Register</button>
    </div>
  </div>
      <div class="alert alert-success">
	  <?php include "programs/csupdate.php"; ?>
	  </div>
</form>
 </div>
</div></div>
</div></div></div> <?php include "layouts/footer.php"; ?></body></html>
