<?php
include("common/connection.php");
//login_check();
$Lead_Req_Id=base64_decode($_REQUEST['Lid']);

?>

<!doctype html>
<html class="no-js" lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Current Leads | KPS Institute of Polytechnic</title>
    <?php include("headerlink.php"); ?> 
     <link rel="stylesheet" href="css/form/all-type-forms.css">
 
</head>

<body style="background-color:#e7eff9">
        						
                                
                                
                            <div align="center" class="sparkline9-hd" style="background-color:#f9f9f9; padding:10px 0">
                    		<div class="main-sparkline9-hd">
                            		<h1>LEAD ACTIVITY</h1>
                               </div></div>    
 
                                  
                                <div class="main-sparkline9-hd" style=" padding-top:25px;padding-right:10px; background-color:#e7eff9; padding-left:10px; padding-bottom:25px">     
                              	 <?php
								 $enquired_sql="select * from lead_details where Lead_ID='".$Lead_Req_Id."' order by Datetime_of_Enquiry asc";
								 $enquired_query=mysqli_query($con,$enquired_sql);
								 $k=1;
								 while($enquired=mysqli_fetch_array($enquired_query))								 	 
								 {
									 
								 ?>
                                 
                                 <div class="single-review-st-text">      
                               		  
                                
                                
                               		 <div class="review-ctn-hf"  style="margin-left:0; background-color:#FFFFFF;
                                border-radius:18px; padding:15px; width:100%">
                                
                                
                                	<P><strong> <?php if($k==1) { echo "New Lead Created on";} else { echo "Enquired for ".$enquired['Form_Source'];}; ?></strong></p>
                                    <P><strong>Date : </strong>
                                     
                                    <span style="color:rgba(0,0,0,0.8)"><?php echo date('M d,Y h:i a',strtotime($enquired['Datetime_of_Enquiry'])); ?></span></p>
                                    
                                    
                                   
                                  
									<P><strong>Source : </strong><?php echo $enquired['Form_Source']; ?></p>
                                    
                                    <?php
									if($enquired['Comments']!='')
									{
									?>
                                     <P><strong>Remarks : </strong><?php echo $enquired['Comments']; ?></p>
								 	<?php
									}
									?>
                                    
                                                                                                                                               
                                </div>
                                                               
                                 </div>
                                 <?php
								  $k++;
								 }
								 ?>
                                
                            	</div>
                                
                                
                                
                  
                     
             

     <!-- jquery
		============================================ -->
     
       <script src="js/vendor/jquery-1.12.4.min.js"></script>
    <!-- bootstrap JS
		============================================ -->
    <script src="js/bootstrap.min.js"></script>
    <!-- wow JS
		============================================ -->
    <script src="js/wow.min.js"></script>
    <!-- price-slider JS
		============================================ -->
    <script src="js/jquery-price-slider.js"></script>
    <!-- meanmenu JS
		============================================ -->
    <script src="js/jquery.meanmenu.js"></script>
    <!-- owl.carousel JS
		============================================ -->
    <script src="js/owl.carousel.min.js"></script>
    <!-- sticky JS
		============================================ -->
    <script src="js/jquery.sticky.js"></script>
    <!-- scrollUp JS
		============================================ -->
    <script src="js/jquery.scrollUp.min.js"></script>
    
    <script src="js/scrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
    <script src="js/scrollbar/mCustomScrollbar-active.js"></script>

      <!-- datepicker JS
		============================================ -->
    <script src="js/datepicker/jquery-ui.min.js"></script>
    <script src="js/datepicker/datepicker-active.js"></script>
    
    
    
    <!-- mCustomScrollbar JS
		============================================ -->
    <script src="js/scrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
    <script src="js/scrollbar/mCustomScrollbar-active.js"></script>
    <!-- metisMenu JS
		============================================ -->
    <script src="js/metisMenu/metisMenu.min.js"></script>
    <script src="js/metisMenu/metisMenu-active.js"></script>
    <!-- peity JS
		============================================ -->
    <script src="js/peity/jquery.peity.min.js"></script>
    <script src="js/peity/peity-active.js"></script>
    <!-- sparkline JS
		============================================ -->
    <script src="js/sparkline/jquery.sparkline.min.js"></script>
    <script src="js/sparkline/sparkline-active.js"></script>
    <!-- tab JS
		============================================ -->
    <script src="js/tab.js"></script>
    <!-- plugins JS
		============================================ -->
    <script src="js/plugins.js"></script>
    <!-- main JS
		============================================ -->
    <script src="js/main.js"></script>
    <!-- tawk chat JS
		============================================ -->
    <script src="js/tawk-chat.js"></script>
   <!-- form validate JS
		============================================ -->
    <script src="js/form-validation/jquery.form.min.js"></script>
    <script src="js/form-validation/jquery.validate.min.js"></script>
    <script src="js/form-validation/form-active.js"></script>
    
    
 <script>
$(document).ready(function() {
   $("body").tooltip({ 
   	selector: '[data-toggle=tooltip]' 
	 });
});
 
</script>   
     
    
</body>

</html>