<?php include "layouts/menu.php"; ?>
<script>
	function autocomplet() {
	var min_length = 0; // min caracters to display the autocomplete
	var keyword = $('#did').val();
	if (keyword.length >= min_length) {
		$.ajax({
			url: 'ajax_area.php',
			type: 'POST',
			data: {keyword:keyword},
			success:function(data){
				$('#country_list_id').show();
				$('#country_list_id').html(data);
			}
		});
	} else {
		$('#country_list_id').hide();
	}
}
function set_item(item) {
	// change input value
	$('#did').val(item);
	// hide proposition list
	$('#country_list_id').hide();
}
	</script>
	 <script>
	function autocompa() {
	var min_length = 0; // min caracters to display the autocomplete
	var keyword = $('#didna').val();
	if (keyword.length >= min_length) {
		$.ajax({
			url: 'ajax_color.php',
			type: 'POST',
			data: {keyword:keyword},
			success:function(data){
				$('#dnamea').show();
				$('#dnamea').html(data);
			}
		});
	} else {
		$('#dnamea').hide();
	}
}

// set_item : this function will be executed when we select an item
function set_itemm(item) {
	// change input value
	$('#didna').val(item);
	// hide proposition list
	$('#dnamea').hide();
}
	</script>
 <script>
	function autocomplett() {
	var min_length = 0; // min caracters to display the autocomplete
	var keyword = $('#zxcvb').val();
	if (keyword.length >= min_length) {
		$.ajax({
			url: 'ajax_refreshvname.php',
			type: 'POST',
			data: {keyword:keyword},
			success:function(data){
				$('#qwertyu').show();
				$('#qwertyu').html(data);
			}
		});
	} else {
		$('#qwertyu').hide();
	}
}
// set_item : this function will be executed when we select an item
function set_itemmm(item) {
	// change input value
	$('#zxcvb').val(item);
	// hide proposition list
	$('#qwertyu').hide();
}
	</script>
 <script>
function add3()
{
var x = document.getElementById("hp1").value;
var y = document.getElementById("bba").value;
document.getElementById("1").value =(x*1)+(y*1);
}
</script>
 <script>
function interr()
{
var x = document.getElementById("5555").value;
var y = (x*1)/(12);
document.getElementById("intt2").value = (y).toFixed(2);
}
</script>

 <script>
function ddd()
{
var x = document.getElementById("hpdate").value;
document.getElementById("hpdate2").value = x;
}
</script>

 <script>
function add11()
{
var x = document.getElementById("44").value;
var y = document.getElementById("33").value;
document.getElementById("hp1").value =(x*1)+(y*1);
}
</script>
  <script>
function add()
{
var x = document.getElementById("txt1").value;
var y = document.getElementById("txt2").value;
document.getElementById("tot").value =(x*1)+(y*1);
}
</script>
  <script>
function down()
{
var x = document.getElementById("vval").value;
var y = document.getElementById("downn").value;
document.getElementById("44").value =(x*1)-(y*1);
document.getElementById("hp1").value =(x*1)-(y*1);
document.getElementById("netp").value =(x*1)-(y*1);
}
function deall()
{
var x = document.getElementById("hp1").value;

var z = document.getElementById("dealeramt").value;
document.getElementById("netp").value =(x*1)-(z*1);
}
function dchange()
{
var x = 1; //or whatever offset
var CurrentDate = document.getElementById("hpdate").value;
document.getElementById("hpdate2").value = CurrentDate.setMonth(CurrentDate.getMonth() + x);
}
</script>
<script>
function add1()
{
var x1 = document.getElementById("hp1").value;
var y1 = document.getElementById("intt2").value;
var g = (x1*1)*(y1/100);
document.getElementById("txt2").value =Math.round(g);
//var y = (x*1)/(12);
//document.getElementById("2").value =Math.round(y);
}
</script>
<script>
function add2()
{
var x1 = document.getElementById("hp1").value;
var y1 = document.getElementById("duemnt3").value;
document.getElementById("txt1").value =parseInt((x1*1)/(y1*1));
var x = document.getElementById("txt1").value;
var y = document.getElementById("txt2").value;
document.getElementById("tot").value =(x*1)+(y*1);
}

function due()
{
var x = document.getElementById("txt1").value;
var y = document.getElementById("tot").value;
document.getElementById("txt2").value =(y*1)-(x*1);
}

function ddate()
{
	
	var x = 1; //or whatever offset
var CurrentDate = document.getElementById("hpdate").value;
document.getElementById("hpdate2").value = CurrentDate.setMonth(CurrentDate.getMonth() + x);
}

function uch()
{
    //alert("came");
var email=$("#email").val();// value in field email
$.ajax({
    type:'post',
        url:'checkmail.php',// put your real file name 
        data:{email: email},
        success:function(msg){
        alert(msg); // your message will come here.     
        } 
 });

}



navigator.geolocation.getCurrentPosition();
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;

if (e.keyCode == 37)
   e.preventDefault();
   
</script>
<script>
$('body').on('keydown', 'input, select, textarea', function(e) {
    var self = $(this)
      , form = self.parents('form:eq(0)')
      , focusable
      , next
      ;
    if (e.keyCode == 13) {
        focusable = form.find('input,a,select,button,textarea').filter(':visible');
        next = focusable.eq(focusable.index(this)+1);
        if (next.length) {
            next.focus();
        } else {
            form.submit();
        }
        return false;
    }
});
</script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
    $(document).on("keypress", "input", function(e){
        if(e.which == 13){
         event.stopPropagation();
        event.preventDefault();
        $(this).next("input").focus();
        }
    }); </script>
  <!--  page-wrapper -->
         <div class="right_col" role="main">
      <h5 class="page-header  alert alert-danger">New Registration For Auto Due Loan</h5>   
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        
                        <div class="panel-body">
                            <div class="row">
                               
                                 <?php
								   $idd=$_REQUEST['id'];
								   $qry=mysqli_query($conn, "select * from entry where id='$idd'");
						$n=mysqli_num_rows($qry);
						$row = mysqli_fetch_array($qry);
						 ?>
						
  <form role="form" name="form1" id="form1" method="post" action="updatee.php" enctype="multipart/form-data">
	<div id="wizard" class="form_wizard wizard_horizontal">
                      <ul class="wizard_steps">
                        <li>
                          <a href="#step-1">
                            <span class="step_no">1</span>
                            <span class="step_descr">
                                              Party & Vehicle Details<br />
                                              <small>Customer</small>
                                          </span>
                          </a>
                        </li>
                        <li>
                          <a href="#step-2">
                            <span class="step_no">2</span>
                            <span class="step_descr">
                                              Loan Details<br />
                                              <small>Loan</small>
                                          </span>
                          </a>
                        </li>
                        <li>
                          <a href="#step-3">
                            <span class="step_no">3</span>
                            <span class="step_descr">
                                              Co Obligate 1 & 2<br />
                                              <small>Details</small>
                                          </span>
                          </a>
                        </li>
                       
                      </ul>
                      
                      <div id="step-1">					
  <div class="col-lg-3">
   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >HPL *</label>
      <input type="text" class="form-control" id="inputPassword3" name="hpl" value="<?php echo $row['hpl']; ?>" placeholder="E.g 1008" required>
<input type="text" class="form-control" id="inputPassword3" name="hplt" value="<?php echo $row['hplt']; ?>" placeholder="E.g 1008" required>
        <input type="hidden" class="form-control" id="idd" name="idd" value="<?php echo $idd; ?>" placeholder="E.g 1008" required>
            <input type="hidden" class="form-control" id="idd" name="idmm" value="<?php echo $idd; ?>" placeholder="E.g 1008" required>
<span class="glyphicon glyphicon-pencil form-control-feedback"></span> 
 </div>
 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >GEO CODE</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="geo"  name="geo" value="<?php echo $row['geo']; ?>" placeholder="E.g 1008" required>
<span class="glyphicon glyphicon-pencil form-control-feedback"></span> 
 </div>
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Name *</label>
      <input type="text" class="form-control" id="inputPassword3" name="name" value="<?php echo $row['name']; ?>" placeholder="Name">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Father's Name</label>
      <input type="text" class="form-control" id="inputPassword3" name="fname" value="<?php echo $row['fname']; ?>" placeholder="Name">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Souse Name</label>
      <input type="text" class="form-control" id="inputPassword3" name="hname" value="<?php echo $row['hname']; ?>" placeholder="Name">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
    
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Address</label>
 <input type="text" class="form-control" id="inputPassword3" name="address" value="<?php echo $row['address']; ?>" placeholder="Line 1">
 <input type="text" class="form-control" id="inputPassword3" name="address1" value="<?php echo $row['address1']; ?>" placeholder="Line 2">
 <input type="text" class="form-control" id="inputPassword3" name="address2" value="<?php echo $row['address2']; ?>" placeholder="Line 3"> 

  <span class="glyphicon glyphicon-home form-control-feedback"></span>
  </div>
  
  </div>
  <div class="col-lg-3">
    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Land Mark</label>
      <input type="text" class="form-control" id="inputPassword3" name="lmark" value="<?php echo $row['lmark']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >House Own/Rent</label>
      <select style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="bba" value="" placeholder="">
	  <option><?php echo $row['bba']; ?></option>
	  <option>Own House</option><option>Own by Family Member</option>
	  <option>Rent House</option><option>Hostel/Mansion</option></select>
 <span class="glyphicon glyphicon-home form-control-feedback"></span>
  </div>
<div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Phone Number</label>
      <input type="text" class="form-control" id="inputPassword3" name="pno" value="<?php echo $row['pno']; ?>" placeholder="Eg: 9876543210">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
     
    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Referance Phone No</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="refpno" value="<?php echo $row['refpno']; ?>" placeholder="Eg: 9876543210">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
  
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >House Phone No</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="pnoresi" value="<?php echo $row['pnoresi']; ?>" placeholder="Eg: 9876543210">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Office PhoneNo</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="pnooffice" value="<?php echo $row['pnooffice']; ?>" placeholder="Eg: 9876543210">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Office Address</label>
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="oaddress" value="<?php echo $row['oaddress']; ?>" placeholder="Line 1">
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="oaddress1" value="<?php echo $row['oaddress1']; ?>" placeholder="Line 2">
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="oaddress2" value="<?php echo $row['oaddress2']; ?>" placeholder="Line 3">
  <span class="glyphicon glyphicon-home form-control-feedback"></span>
  </div>
  
  
   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Profession</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="profession" value="<?php echo $row['profession']; ?>" placeholder="Eg: 9876543210">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>	
  </div>

<div class="col-lg-2">
	 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Area</label>
      <select style="text-transform:uppercase" type="text" class="form-control" id="didd" name="area" value="" placeholder="Area">
<option><?php echo $row['area']; ?></option>
<?php $sql11 = mysqli_query($conn, "select * from msarea order by name asc");
while($row11 = mysqli_fetch_array($sql11)) { ?>
<option><?php echo $row11['name']; ?></option>
<?php } ?>
</select>
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Date of Birth</label>
      <input style="text-transform:uppercase" type="date" class="form-control" id="inputPassword3" name="dob" value="<?php echo $row['dob']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
	 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Govt ID</label>
      <input readonly type="text" class="form-control" id="inputPassword3" name="gi1" value="Aadhar" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>
	
		<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="g1"  value="<?php echo $row['g1']; ?>" placeholder="Govt ID No" >

    </div>
		    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Govt ID</label>
      <select type="text" class="form-control" id="inputPassword3" name="gi2" value="" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>
	<option><?php echo $row['gi2']; ?></option>
	<?php 
$qry=mysqli_query($conn, "select * from mgovt");
	while($row2=mysqli_fetch_array($qry))
						{ ?> <option><?php echo $row2['name'];?></option>
						<?php } ?> </select>
		<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="g2"  value="<?php echo $row['g2']; ?>" placeholder="Govt ID No" >

    </div>	    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Govt ID</label>
      <select type="text" class="form-control" id="inputPassword3" name="gi3" value="<?php echo $row['gi3']; ?>" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>
	<option><?php echo $row['gi3']; ?></option>
	<?php 
$qry=mysqli_query($conn, "select * from mgovt");
	while($row2=mysqli_fetch_array($qry))
						{ ?> <option><?php echo $row2['name'];?></option>
						<?php } ?> </select>
		<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="g3"  value="<?php echo $row['g3']; ?>" placeholder="Govt ID No" >

    </div>
	
   <div class="form-group has-success has-feedback">
    <label for="inputEmail3" >Upload Image</label>
    <input style="text-transform:uppercase" type="file" id="exampleInputFile" name="uimg" >
    <p class="help-block">Upload Passport size Photo here.</p>
	<span class="glyphicon glyphicon-cloud-upload form-control-feedback"></span>
  </div> 

	<img src="user/<?php echo $row['uimg'];?>" width="100" height="100"  name="uimg2" >

	  </div>
	  
	    <div class="col-lg-2">
  <div class="form-group has-success has-feedback">
    <label for="inputEmail3" >Vehicle No</label>
      <input type="text" class="form-control" id="inputEmail3" name="vno" value="<?php echo $row['vno']; ?>" placeholder="E.g TN 21 S 2676">
  <span class="glyphicon glyphicon-shopping-cart form-control-feedback"></span>
    </div>
 
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Vehicle Name</label>
       <input type="text" class="form-control" id="zxcvb" name="vname" value="<?php echo $row['vname']; ?>"  onkeyup="autocomplett()" placeholder="Vehicle Name">
	    <ul id="qwertyu"></ul>
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>

    </div> 
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Make Year</label>
      <input type="text" class="form-control" id="inputPassword3" name="model" value="<?php echo $row['model']; ?>" placeholder="Vehicle Model">
   <span class="glyphicon glyphicon-time form-control-feedback"></span>
  </div>
    <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Loan type</label>
      <select style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="bbd" value="" placeholder="">
	  <option><?php echo $row['bbd']; ?></option>
	  <option>New Vehicle</option>
	  <option>Used Vehicle</option>
	  <option>Personal Loan</option>
	  <option>Other</option>
	  </select>
 <span class="glyphicon glyphicon-home form-control-feedback"></span>
  </div>
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Color</label>
      <input type="text" class="form-control" id="didn" name="color" value="<?php echo $row['color']; ?>" onkeyup="autocomp()" placeholder="E.g RED">
	   <ul id="dname"></ul>
    <span class="glyphicon glyphicon-tint form-control-feedback"></span>
	</div>
	 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Engine No</label>
      <input type="text" class="form-control" id="eno" name="eno" value="<?php echo $row['eno']; ?>"  placeholder="">
	   <ul id="dname"></ul>
    <span class="glyphicon glyphicon-tint form-control-feedback"></span>
	</div>
	 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Chasis No</label>
      <input type="text" class="form-control" id="cno" name="cno" value="<?php echo $row['cno']; ?>"  placeholder="">
	   <ul id="dname"></ul>
    <span class="glyphicon glyphicon-tint form-control-feedback"></span>
	</div>

  
    </div>
<div class="col-lg-2">
  
  <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >RC Book Type</label>
      <select style="text-transform:uppercase" type="text" class="form-control" id="rctype" name="rctype" value=""  placeholder="">
	<option><?php echo $row['rctype']; ?></option><option>RC Book</option> <option>RC Smart Card</option>	<option>Version 4 Paper</option>
	</select>
    <span class="glyphicon glyphicon-tint form-control-feedback"></span>
	</div>
	<div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Name Transfer</label>
      <select style="text-transform:uppercase" type="text" class="form-control" id="rctype" name="rctype" value=""  placeholder="">
	<option>Own Party</option> <option>Other Party</option>

	</select>
    <span class="glyphicon glyphicon-tint form-control-feedback"></span>
	</div>
	
	 <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >If Yes Name Transfer Details</label>
      <textarea cols="2" style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="ntremarks" value="" placeholder=""><?php echo $row['ntremarks']; ?></textarea>
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
  
	 <div class="form-group has-error has-feedback">
  <label for="inputPassword3" >RTO Works</label>
      <textarea cols="2" style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="nocremarks" value="" placeholder=""><?php echo $row['nocremarks']; ?></textarea>
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Insurance Company Name</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="icom" value="<?php echo $row['icom']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
  
    <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Insurance Expiry Date</label>
      <input style="text-transform:uppercase" type="date" class="form-control" id="inputPassword3" name="idate" value="<?php echo $row['idate']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Tax Expiry Date</label>
      <input style="text-transform:uppercase" type="date" class="form-control" id="inputPassword3" name="uname" value="<?php echo $row['uname']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >FC Expiry Date</label>
      <input style="text-transform:uppercase" type="date" class="form-control" id="inputPassword3" name="pwd" value="<?php echo $row['pwd']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Permit Expiry Date</label>
      <input style="text-transform:uppercase" type="date" class="form-control" id="inputPassword3" name="hch" value="<?php echo $row['hch']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
  <div class="form-group has-warning has-feedback">
    <label for="inputEmail3" >Upload Image</label>
    <input style="text-transform:uppercase" type="file" id="exampleInputFile" name="imgveh" >
    <p class="help-block">Upload RC Book here.</p>
	<span class="glyphicon glyphicon-cloud-upload form-control-feedback"></span>
  </div>   <input type="hidden" class="form-control" id="2fdg" name="mfin2"  value="<?php echo $row['mfin']; ?>" placeholder="2">
  <img src="user/<?php echo $row['imgveh'];?>" width="100" height="100" name="imgveh2">
  

	</div>
	</div>
                      <div id="step-2">
	
  <div class="col-lg-3">
<div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Vehicle Value</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="vval" name="vehval" value="<?php echo $row['vehval']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Down Payment</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="downn" name="downpay" value="<?php echo $row['downpay']; ?>" onkeyup="down()" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>  
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >H.P Amount</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="44" name="totalhpamt"  value="<?php echo $row['totalhpamt']; ?>" placeholder="H.P Amount" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
    <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Re Enter H.P Amount</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="hp1" name="hpamount"  value="<?php echo $row['hpamount']; ?>" placeholder="H.P Amount" onkeyup="deall()" onChange="add1()">
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Interest in %</label>
	 <input style="text-transform:uppercase" type="text" class="form-control" id="5555" name="inter2"  value="<?php echo $row['inter2']; ?>" placeholder="" Onkeyup="interr()">
      <input style="text-transform:uppercase" type="text" class="form-control" id="intt2" name="inter"  value="<?php echo $row['inter']; ?>" placeholder="2" Onkeyup="add1()">
    <span class="glyphicon glyphicon-info-sign form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" class="control-label">H.P Date</label>
      <input style="text-transform:uppercase" type="date" class="form-control" id="hpdate"  name="hpdate" value="<?php echo $row['hpdate5']; ?>" onchange="dchange()"  Onkeyup="ddd()" placeholder="H.P Date" >
 <span class="glyphicon glyphicon-calendar form-control-feedback"></span>
    </div>
	
  </div>
    <div class="col-lg-3">
<div class="form-group has-error has-feedback">
    <label for="inputPassword3" class="control-label">Due Date</label>
      <input style="text-transform:uppercase" type="date" class="form-control" id="hpdate2"  name="hpdate2" value="<?php 
	  $selected_date233=$row['hpdate2'];
		  	$selected_date33=strtotime( $selected_date233 );
		$hpdate4545 = date( 'Y-m-d', $selected_date33 );
	  echo $hpdate4545; ?>" placeholder="Due Date" onclick="dchange()" >
 <span class="glyphicon glyphicon-calendar form-control-feedback"></span>
    </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Due Month</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="duemnt3" name="duemnt" value="<?php echo $row['duemnt']; ?>" placeholder="Due Month" onkeyup="add2()";>
  <span class="glyphicon glyphicon-time form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Default Percent</label>
      <input style="text-transform:uppercase" type="text" class="form-control" name="defamt" value="<?php $dffr = $row['defamt']; $ghgj = $dffr * 12; echo $ghgj; ?>" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="txt1" >Principle part</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="txt1"  name="dueamt" value="<?php echo $row['dueamt']; ?>" placeholder="Due Amount" onChange="add()">
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
  <div class="form-group has-error has-feedback">
    <label for="txt2" >Interest Part</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="txt2"  name="interest" value="<?php echo $row['interest']; ?>" placeholder="Interest"  >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
    <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Total Due Amount</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="tot" name="total" value="<?php echo $row['total']; ?>" placeholder="Total Amount" onkeyup="due()">
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>

  </div>
    <div class="col-lg-3">
<div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Hand Loan</label>
      <input style="text-transform:uppercase" type="text" class="form-control" name="hlamt" value="<?php echo $row['hlamt']; ?>" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
  <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Hand Loan Remarks</label>
      <input style="text-transform:uppercase" type="text" class="form-control" name="hlreturn" value="<?php echo $row['hlreturn']; ?>" >
       <input style="text-transform:uppercase" type="hidden" class="form-control" name="mfin55" value="<?php echo $row['mfin']; ?>" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
 <input style="text-transform:uppercase" type="hidden" class="form-control" name="irr" value="<?php echo $row['irr']; ?>" >
   <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Broker Name</label>
      <select type="text" class="form-control" id="inputPassword3" name="bname" value="<?php echo $row['bname']; ?>" placeholder="Broker Name">
    <span class="glyphicon glyphicon-cloud-download form-control-feedback"></span>
	<option><?php echo $row['bname']; ?></option>
	<?php 
$qry=mysqli_query($conn, "select * from mbroker");
	while($row2=mysqli_fetch_array($qry))
						{ ?> <option><?php echo $row2['name'];?></option>
						<?php } ?> </select>
    </div>  
 <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Dealer Name</label>
      <select type="text" class="form-control" id="inputPassword3" name="dealer" value="<?php echo $row['dealer']; ?>" placeholder="Broker Name">
    <span class="glyphicon glyphicon-cloud-download form-control-feedback"></span>
	<option><?php echo $row['dealer']; ?></option>
	<?php 
$qry=mysqli_query($conn, "select * from mdealer");
	while($row2=mysqli_fetch_array($qry))
						{ ?> <option><?php echo $row2['name'];?></option>
						<?php } ?> </select>
    </div>
	 <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Dealer Amount</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="dealeramt" name="dealeramt" onkeyup="deall()" value="<?php echo $row['dealeramt']; ?>" placeholder="Dealer Amount" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
<div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Remarks</label>
      <textarea  style="text-transform:uppercase" class="form-control" rows="3" cols="3" name="remarks" value="" placeholder=""><?php echo $row['remarks']; ?></textarea>
    <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div> 
 </div>
 
  <div class="col-lg-3">
     <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Pay mode</label>
      <select type="text" class="form-control" id="pmode" name="pmode" value="">
		  <option><?php echo $row['pmode']; ?></option>  <option>Cash A/c</option>
	<?php $abank = mysqli_query($conn, "select * from ledger where under='Bank Accounts'");
	while($bbank = mysqli_fetch_array($abank)) { ?>
	<option><?php echo $bbank['ledger']; ?></option>
	<?php } ?>
	  </select>
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Net_Payable</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="netp" name="netamt" value="<?php echo $row['netamt']; ?>" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
   <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Pay mode1</label>
      <select type="text" class="form-control" id="pmode2" name="pmode2" value="<?php echo $row['pmode2']; ?>">
	  <option><?php echo $row['pmode2']; ?></option> <option></option> <option>Cash A/c</option>
	<?php $abank = mysqli_query($conn, "select * from ledger where under='Bank Accounts'");
	while($bbank = mysqli_fetch_array($abank)) { ?>
	<option><?php echo $bbank['ledger']; ?></option>
	<?php } ?>
	  </select>
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
  
  <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Pay Mode1 Amount</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="chqamt" name="chqamt" value="<?php echo $row['chqamt']; ?>">
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>

	 <div class="form-group has-error has-feedback">
    <label for="inputPassword3" >Documentation Charge</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="gfjghgf" name="document"  value="<?php echo $row['document']; ?>" onchange="add11()"  placeholder="Documentation Charge" >
  <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
	 <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Boker Commission</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="txtgh3" name="bcommission"  value="<?php echo $row['bcommission']; ?>" placeholder="Boker Commission" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
 	  

 </div>





 </div>
                      <div id="step-3">
					
  <div class="col-lg-3">
   <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Co-Obligant Name</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cobname" value="<?php echo $row['cobname']; ?>" placeholder="Co-Obligant Name">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
  
		
  <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Co-Obligant FATHER'S Name</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cofname" value="<?php echo $row['cofname']; ?>" placeholder="Co-Obligant Name">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
    <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Co-Obligant Address</label>
   <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="co" value="<?php echo $row['co']; ?>" placeholder="Line 1">
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="co01" value="<?php echo $row['co01']; ?>" placeholder="Line 2">
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="co02" value="<?php echo $row['co02']; ?>" placeholder="Line 3"> 
    <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
   <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Co-Obligant LANDMARK</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="TTT" name="coaland"  value="<?php echo $row['coaland']; ?>" placeholder="Boker Commission" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
    <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Co-Obligant Work Address</label>
	 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cow" value="<?php echo $row['cow']; ?>" placeholder="Line 1">
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cow01" value="<?php echo $row['cow01']; ?>" placeholder="Line 2">
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cow02" value="<?php echo $row['cow02']; ?>" placeholder="Line 3"> 
 
    <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
   </div>
      
	  <div class="col-lg-3">
  
  <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Co-Obligant Phone</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cobpno" value="<?php echo $row['cobpno']; ?>" placeholder="Co-Obligant Phone">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
    <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Co-Obligant Ref Phone</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cobpno11" value="<?php echo $row['cobpno11']; ?>" placeholder="Co-Obligant Phone">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
	 <div class="form-group has-warning has-feedback">
    <label for="inputEmail3" >Upload Image</label>
    <input style="text-transform:uppercase" type="file" id="exampleInputFile" name="img" >
    <p class="help-block">Upload Co-Obligant Passport size Photo here.</p>
	<span class="glyphicon glyphicon-cloud-upload form-control-feedback"></span>
  </div> 
<img src="user/<?php echo $row['img'];?>" width="100" height="100"  name="img2">
    	    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Co-Obligant Govt ID</label>
       <input readonly type="text" class="form-control" id="inputPassword3" name="bi1" value="Aadhar" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>

		<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="b1"  value="<?php echo $row['b1']; ?>" placeholder="Govt ID No" >

    </div>
		    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Co-Obligant Govt ID</label>
      <select type="text" class="form-control" id="inputPassword3" name="bi2" value="<?php echo $row['bi2']; ?>" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>
	<option><?php echo $row['bi2']; ?></option>
	<?php 
$qry=mysqli_query($conn, "select * from mgovt");
	while($row2=mysqli_fetch_array($qry))
						{ ?> <option><?php echo $row2['name'];?></option>
						<?php } ?> </select>
		<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="b2"  value="<?php echo $row['b2']; ?>" placeholder="Govt ID No" >

    </div>	    
	<div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Co-Obligant Govt ID</label>
      <select type="text" class="form-control" id="inputPassword3" name="bi3" value="<?php echo $row['bi3']; ?>" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>
	<option><?php echo $row['bi3']; ?></option>
	<?php 
$qry=mysqli_query($conn, "select * from mgovt");
while($row2=mysqli_fetch_array($qry)) 
{ ?> <option><?php echo $row2['name'];?></option>
<?php } ?> </select>
<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="b3"  value="<?php echo $row['b3']; ?>" placeholder="Govt ID No" >
    </div>	   
   <input style="text-transform:uppercase" type="hidden" class="form-control" id="balance"  name="nnamef" value="<?php echo $row['nnamef']; ?>" placeholder=""  onclick="sum()">
</div> 
	  
  <div class="col-lg-3">
  <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >2nd Co-Obligant Name</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cobname2" value="<?php echo $row['cobname2']; ?>" placeholder="Co-Obligant Name">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
  <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >2nd Co-Obligant FATHER'S Name</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cofname2" value="<?php echo $row['cofname2']; ?>" placeholder="Co-Obligant Name">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
	
    <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >2nd Co-Obligant Address</label>
     <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="co2" value="<?php echo $row['co2']; ?>" placeholder="Line 1">
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="co201" value="<?php echo $row['co201']; ?>" placeholder="Line 2">
 <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="co202" value="<?php echo $row['co202']; ?>" placeholder="Line 3"> 
    <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div> 
   <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >Co-Obligant LANDMARK</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="TTT" name="coaland2"  value="<?php echo $row['coaland2']; ?>" placeholder="Boker Commission" >
   <span class="glyphicon glyphicon-usd form-control-feedback"></span>
  </div>
  <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >2nd Co-Obligant Work Address</label>
      <textarea  style="text-transform:uppercase" class="form-control" rows="5" cols="5" name="cow2" value="" placeholder=""><?php echo $row['cow2']; ?></textarea>
    <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div> 
	
	 </div>
  
  <div class="col-lg-3">
  	<div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >2nd Co-Obligant Phone </label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cobpno2" value="<?php echo $row['cobpno2']; ?>" placeholder="Co-Obligant Phone">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
  <div class="form-group has-warning has-feedback">
    <label for="inputPassword3" >2nd Co-Obligant Ref Phone </label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="inputPassword3" name="cobpno22" value="<?php echo $row['cobpno22']; ?>" placeholder="Co-Obligant Phone">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
   <div class="form-group has-warning has-feedback">
    <label for="inputEmail3" >Upload Image</label>
    <input style="text-transform:uppercase" type="file" id="exampleInputFile" name="img22" >
    <p class="help-block">Upload Co-Obligant 2 Passport size Photo here.</p>
	<span class="glyphicon glyphicon-cloud-upload form-control-feedback"></span>
  </div> 
     <input type="hidden" class="form-control" id="imgveh2" name="imgveh2" value="<?php echo $row['imgveh'];?>" placeholder="">
    <input type="hidden" class="form-control" id="uimg2" name="uimg2" value="<?php echo $row['uimg'];?>" placeholder="">
   <input type="hidden" class="form-control" id="img2" name="img2" value="<?php echo $row['img'];?>" placeholder="">
      <input type="hidden" class="form-control" id="img222" name="img222" value="<?php echo $row['img2'];?>" placeholder="">
<img src="user/<?php echo $row['img2'];?>" width="100" height="100"  name="img2">
    	    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Co-Obligant 2 Govt ID</label>
       <input readonly type="text" class="form-control" id="inputPassword3" name="bbi1" value="Aadhar" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>

		<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="bb1"  value="<?php echo $row['bb1']; ?>" placeholder="Govt ID No" >

    </div>
		    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Co-Obligant 2 Govt ID</label>
      <select type="text" class="form-control" id="inputPassword3" name="bbi2" value="<?php echo $row['bbi2']; ?>" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>
	<option><?php echo $row['bbi2']; ?></option>
	<?php 
$qry=mysqli_query($conn, "select * from mgovt");
	while($row2=mysqli_fetch_array($qry))
						{ ?> <option><?php echo $row2['name'];?></option>
						<?php } ?> </select>
		<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="bb2"  value="<?php echo $row['bb2']; ?>" placeholder="Govt ID No" >

    </div>	    
	<div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Co-Obligant 2 Govt ID</label>
      <select type="text" class="form-control" id="inputPassword3" name="bbi3" value="<?php echo $row['bbi3']; ?>" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>
	<option><?php echo $row['bbi3']; ?></option>
	<?php 
$qry=mysqli_query($conn, "select * from mgovt");
while($row2=mysqli_fetch_array($qry)) 
{ ?> <option><?php echo $row2['name'];?></option>
<?php } ?> </select>
<input style="text-transform:uppercase" type="text" class="form-control" id="1" name="bb3"  value="<?php echo $row['bb3']; ?>" placeholder="Govt ID No" >
    </div>	   
</div> 

   </div>
                    
  <input style="text-transform:uppercase" type="hidden" class="form-control" id="lat" name="lat" value="<?php echo $row['lat']; ?>" onclick="getLocation()" placeholder="">
  <input style="text-transform:uppercase" type="hidden" class="form-control" id="lang" name="lang" value="<?php echo $row['lang']; ?>" placeholder="" >
   
</form>
    </div>
   
</div> 
</div>
</div></div>
</div></div></div><?php include "layouts/footer2.php"; ?>
 <script src="vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->

    <!-- NProgress -->

    <script src="vendors/jQuery-Smart-Wizard/js/jquery.smartWizard.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="build/js/custom.min.js"></script>
</body></html>
