<?php ob_start(); session_start(); ?>
	<!DOCTYPE html>
	<html>
	<?php include "../layouts/db_connect.php"; ?>
	<?php 	
if(isset($_SESSION['code'])) {
	  $code = $_SESSION['code'];
	  $scode = $_SESSION['code'];
	   
		$staff = $_SESSION['name'];
		 $postt = $_SESSION['postt'];
		  $mfin222 = $_SESSION['mfin222'];
	} 
	?>
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<!-- Meta, title, CSS, favicons, etc. -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta http-equiv="X-UA-Compatible" content="chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1">
			<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<style>

table, th, td {
    border: 1px solid black;
}
#customers {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

#customers td, #customers th {
    border: 1px solid #ddd;
    padding: 8px;
}

#customers tr:nth-child(even){background-color: #f2f2f2;}

#customers tr:hover {background-color: #ddd;}

#customers th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #4CAF50;
    color: white;
}
</style>
<title>INFOSSEL SOFT SOLUTIONS </title> </head>
<body>
<?php 		  
  $idd=$_REQUEST['id'];
   $mfin=$_REQUEST['mfin'];
	$sql=mysqli_query($conn, "select * from entry where id=$idd && mfin='$mfin'");
$row2=mysqli_fetch_array($sql);
$n = mysqli_num_rows($sql);
	$hpl =$row2['hpl'];
	$mfin3 = $row2['mfin'];
	$mfin4 =  $row2['mfin'];
 ?>
    <!--  page-wrapper -->
         <div class="right_col" role="main">

            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
  <div class="panel panel-default">
<td><h3><center><font face="Courier New" color="red">Pending</font></h3>


	<a href="index2.php"  data-toggle="tooltip" title="Home"><i class="fa fa-home fa-2x" style="color:red;" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
	</td> 
   <div class="panel-body">
                            <div class="row">
							 <div class="col-lg-6">
<table id="customers">
<thead>
<tr>

<th><b><?php echo $row2['name']; ?> : <?php echo $row2['hpl']; ?></b></th>

</tr></thead><tbody>

<tr><td><b><font size="2">
 S/O <?php echo $row2['fname']; ?></br>
 <?php echo $row2['address']; ?></br>
  <?php echo $row2['address1']; ?></br>
   <?php echo $row2['address2']; ?></br>
    <?php echo $row2['lmark']; ?></br>
<b><font size="4" color="red"><a href="tel:<?php echo $row2['pno']; ?>">Phone : <?php echo $row2['pno']; ?></a> </font>  </b></br>
<font size="3" color="blue">Phone Office : <?php echo $row2['pnooffice']; ?></br>
Phone Resi :  <?php echo $row2['pnoresi']; ?></font></b></br> </br>

<h5><b>Office Address</b></h5>

 <?php echo $row2['oaddress']; ?></br>
  <?php echo $row2['oaddress1']; ?></br>
   <?php echo $row2['oaddress2']; ?></br>
    <?php echo $row2['olmark']; ?></br>
</td></tr>

<tr>
<td><b><font size="2">Area : <?php echo $row2['area']; ?></font></b></td>
</tr>
<tr>
<td><b><font size="2">Business/Job   : <?php echo $row2['profession']; ?></font></b></td>
</tr>
<tr>
<td><b><font size="2">Response Date   : <?php echo $row2['rdate']; ?></font></b></td>
</tr>
<tr>
<td><b><font size="2">Holding   : <?php echo $row2['model']; ?></font></b></td>
</tr>
<tr>
<td><b><font size="2">Loan Required   : <?php echo $row2['loanr']; ?></font></b></td>
</tr>
<tr>
<td><b><font size="2">Remarks   : <?php echo $row2['remarks']; ?></font></b></td>
</tr>

<tr> <td>
<?php $ff = $row2['lat']; if($ff>0) { ?>	<a href="https://www.google.com/maps/?q=<?php echo $row2['lat'];?>,<?php echo $row2['lang'];?>"  data-toggle="tooltip" title="Google Map !" title="Full View!" target="_blank"><i class="fa fa-map-marker fa-2x" style="color:purple;" aria-hidden="true">House  Verified</i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php }
else { ?>
<a href="https://www.srihariassociates.in/col/geop.php?hpl=<?php echo $hpl; ?>&mfin=<?php echo $mfin3; ?>&idd=<?php echo $idd; ?>"  data-toggle="tooltip" title="Add Google Map !" title="Full View!" target="_blank"><i class="fa fa-location-arrow fa-2x" style="color:purple;" aria-hidden="true">House Not Verified</i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<?php	
} 
 ?> <td>
</tr>

<tr> <td>
<?php $ff = $row2['olat']; if($ff>0) { ?>	<a href="https://www.google.com/maps/?q=<?php echo $row2['olat'];?>,<?php echo $row2['olang'];?>"  data-toggle="tooltip" title="Google Map !" title="Full View!" target="_blank"><i class="fa fa-map-marker fa-2x" style="color:purple;" aria-hidden="true">Office  Verified</i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php }
else { ?>
<a href="https://www.srihariassociates.in/col/geopo.php?hpl=<?php echo $hpl; ?>&mfin=<?php echo $mfin3; ?>&idd=<?php echo $idd; ?>"  data-toggle="tooltip" title="Add Google Map !" title="Full View!" target="_blank"><i class="fa fa-location-arrow fa-2x" style="color:purple;" aria-hidden="true">Office Not Verified</i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<?php	
} 
 ?> <td>
</tr>


<tr> <td>
<?php $ff = $row2['clat']; if($ff>0) { ?>	<a href="https://www.google.com/maps/?q=<?php echo $row2['clat'];?>,<?php echo $row2['clang'];?>"  data-toggle="tooltip" title="Google Map !" title="Full View!" target="_blank"><i class="fa fa-map-marker fa-2x" style="color:purple;" aria-hidden="true">Co-Applicant  Verified</i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php }
else { ?>
<a href="https://www.srihariassociates.in/col/geopc.php?hpl=<?php echo $hpl; ?>&mfin=<?php echo $mfin3; ?>&idd=<?php echo $idd; ?>"  data-toggle="tooltip" title="Add Google Map !" title="Full View!" target="_blank"><i class="fa fa-location-arrow fa-2x" style="color:purple;" aria-hidden="true">Co-Applicant Not Verified</i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<?php	
} 
 ?> <td>
</tr>

<tr> <td>
<a href="geocc.php?hpl=<?php echo $hpl; ?>&mfin=<?php echo $mfin3; ?>">Complete Verification Click Here</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <td>
</tr>


</tbody>

</table>
<div>
 <form name="form177" class="form-horizontal" method="post" action="" enctype="multipart/form-data">
 <B>Add Remark and Next Visit Date</B>
 <?php $sql555=mysqli_query($conn, "select * from customerdetails where hpl='$hpl' && mfin='$mfin3'");
$row=mysqli_fetch_array($sql555); ?>
 <textarea cols="7"  rows="2" name="myremarks" placeholder="Enter Call History"><?php echo $row['myremarks']; ?></textarea>
 <input type="date" name="resdate" value="<?php echo $row['resdate']; ?>">
  <input type="hidden" name="hpl" value="<?php echo $row['hpl']; ?>">
 <input type="hidden" value="<?php echo $row['id']; ?>" name="idd">
  <button type="submit" class="btn btn-primary" name="s53">Update Call</button>
	<?php if(isset($_POST['s53']))
							{
								extract($_POST);  
								$sql33=mysqli_query($conn, "select * from appres where mfin='$mfin3' && scode='$scode' && rdate='$resdate' && hpl='$hpl'");
$n33 = mysqli_num_rows($sql33);
if($n33 == 0) {
			$insert22=mysqli_query($conn, "insert into appres(mfin,scode,remarks,rdate,hpl)
					values('$mfin3','$scode','$myremarks','$resdate','$hpl')"); }
$insert=mysqli_query($conn, "update customerdetails set resdate='$resdate',myremarks='$myremarks' where hpl='$hpl' && mfin='$mfin3'"); 
								}		
								?>
 </form>
</div>
<a href="https://senthoormotorfinance.in/col/geo2.php?hpl=<?php echo $hpl; ?>&mfin=<?php echo $mfin; ?>">Add Geo Location</a></br>
<a href="ulive.php?id=<?php echo $idd; ?>">Ultra Live Data</a>
</div>

</div></div>
</div></div></div></div></div></div> </body></html>
