<?php
include("common/connection.php");
login_check();
$Lead_Req_Id=base64_decode($_REQUEST['id']);
$user_type_sql="select User_Type from user_master where User_Name='".$_SESSION['user']."'";
$user_type_query=mysqli_query($con,$user_type_sql);
$user_type=mysqli_fetch_array($user_type_query);
?>

<!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">
    
    
    <script>
	function unlock_form() {
	 
	$('#edit_c_form  input'). prop("disabled", false);
	//$('#not_editable  input'). prop("disabled", true);
	$('#edit_c_form  textarea'). prop("disabled", false);
	$('#edit_c_form  select'). prop("disabled", false);
	$('#update_btn').show();
	$('#edit_btn_1').hide();
	
 
	}
	</script>
    
    <script>
	function send_sms_1(per) {
	 
	 if(per=='whatsapp_1') {
	$('#whatsapp_div').show();
	$('#sms_div').hide();
	$('#call_div').hide(); 
	$('#email_div').hide();  
	}	
	
	if(per=='sms_1') {
	$('#sms_div').show();
	$('#whatsapp_div').hide();
	$('#call_div').hide(); 
	$('#email_div').hide();
	}
	
	
	if(per=='email_1') {
	$('#sms_div').hide();
	$('#whatsapp_div').hide();
	$('#call_div').hide(); 
	$('#email_div').show();
	}
	
	if(per=='call_1') {
	$('#sms_div').hide();
	$('#whatsapp_div').hide();
	$('#call_div').show(); 
	$('#email_div').hide();
	}
	}
	</script> 
    <?php
	 $lead_basic_sql="select * from lead_master where Lead_ID='".$Lead_Req_Id."'";
	 $lead_basic_query=mysqli_query($con,$lead_basic_sql);
	 $lead_details=mysqli_fetch_array($lead_basic_query);
	?>    
</head>

<body>
    <!--[if lt IE 8]>
		<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
	<![endif]-->
    <!-- Start Left menu area -->
    
    
    
    <?php include("left-menu.php"); ?>
    
    
    
    <!-- End Left menu area -->
    <!-- Start Welcome area -->
    <div class="all-content-wrapper">
        
        
       <?php include("header-menu.php"); ?> 
        
       
                                        	
        <!-- Static Table Start -->
        <div class="static-table-area">
        
       
        
        
        
            <div class="container-fluid">
                <div class="row">
                    
                    <div class="col-lg-8 col-md-6 col-sm-6 col-xs-12" >
                        <div class="sparkline9-list mt-b-30 res-mg-t-30 analysis-progrebar-ctn" style="background-color:#FFFFFF">
                            <div class="sparkline9-hd">
                                <div class="main-sparkline9-hd">
                                    <h1>EDIT LEADS</h1>
                                    <form action="" class="dropzone dropzone-custom needsclick add-professors dz-clickable" id="edit_c_form">
                                            
                                            <div class="row" style="padding:0; background-color:#FFFFFF">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                                    <div class="form-group" id="not_editable">
                                                    	<label for=" ">Name </label>
                                                        <input disabled name="number" class="form-control" placeholder="Name" value="<?php echo $lead_details['Lead_Name']; ?>" 
                                                        type="text" id="">
                                                    </div>
                                                     
                                                    
                                                    <div class="form-group">
                                                    	<label for="">Mob No. </label>
                                                        <input disabled class="form-control" placeholder="Mobile No" value="<?php echo $lead_details['Phone']; ?>" type="text">
                                                    </div>
                                                    <div class="form-group">
                                                        <label for="">Course Names </label>
                                                            <select disabled class="form-control">
                                                            	<option><?php echo $lead_details['Course_Name']; ?></option>
                                                            </select>
                                                                
                                                    </div>
                                                    
                                                    
                                                    
                                                    <div class="form-group">
                                                    	<label for="">Zone</label>
                                                        <input disabled class="form-control" placeholder="Zone" value="<?php echo $lead_details['Zone']; ?>" type="text">
                                                    </div>
                                                     
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                                    <div class="form-group">
                                                    	<label for="">Email </label>
                                                        <input disabled class="form-control" placeholder="Email Id" value="<?php echo $lead_details['Email']; ?>" type="email">
                                                    </div>
                                                    
                                                    <div class="form-group">
                                                    	<label for="">City </label>
                                                        <input disabled class="form-control" placeholder="City Name" value="<?php echo $lead_details['City']; ?>" type="text">
                                                    </div>
                                                    
                                                    <div class="form-group">
                                                    	<label for="">Center </label>
                                                        <input disabled class="form-control" placeholder="Center Name" value="<?php echo $lead_details['Center']; ?>" type="text">
                                                    </div>
                                                    
                                                    
                                                    
                                                    <div class="form-group">
                                                        <label for="">Refer To</label>
                                                            <select disabled class="form-control">
                                                            <?php
															$user_refer_sql="select User_Name,User_Type from user_master where Active='Yes'";
															$user_refer_query=mysqli_query($con,$user_refer_sql);
															while($user_refer=mysqli_fetch_array($user_refer_query))
															{
															?>
                                                                <option  value="<?php echo $user_refer['User_Name']; ?>"<?php if($user_refer['User_Name']==$lead_details['Lead_Referred_To']){ echo 'selected';}?>><?php echo $user_refer['User_Name']; ?></option>
                                                             <?php
															 }
															 ?>
                                                            </select>
                                                                
                                                    </div>
                                                    
                                                     
                                                </div>
                                                
                                                
                                                <!--<div class="col-sm-12">
                                                
                                                    <div class="form-group edit-ta-resize">
                                                        <textarea disabled name="description" style="resize:none; height:100px"><?php echo $lead_details['Center']; ?></textarea>
                                                    </div>
                                                    
                                                 </div>-->
                                                 
                                                 <div align="left" class="col-lg-12">
                                                    <div align="left" class="col-lg-6" style="text-align:left; padding-left:0; padding-top:20px">
                                                    <?php if($user_type['User_Type']=='Super Admin')
													{
													?>
                                                        <button type="button" class="btn btn-primary waves-effect waves-light" 
                                                        style="width:100px" onClick="unlock_form()" id="edit_btn_1">Edit</button>
                                                        
                                                        
                                                        <button type="submit" class="btn btn-primary waves-effect waves-light" 
                                                        style="width:100px; display:none" onClick="" id="update_btn">Update</button>
                                                        <?php
													}
													?>
                                                    </div>
                                                    
                                                    
                                                     <div align="left" class="col-lg-6" style="text-align:left">
                                                    
                                                    <div class="social-media-in icon_4" style="padding-top:10px">
                                    <a href="javascript:void(0)"  style="height:45px; width:45px" onClick="send_sms_1('whatsapp_1')"><i class="fa fa-whatsapp" style="font-size:24px; line-height:45px"></i></a> 
                                </div>
                               					    <div class="social-media-in  icon_4" style="padding-top:10px">
                                    <a href="javascript:void(0)"  style="height:45px; width:45px"  onClick="send_sms_1('email_1')"><i class="fa fa-envelope icon_fix" style="font-size:24px; line-height:45px"></i></a> 
                                </div>
                                
                                                    <div class="social-media-in  icon_4" style="padding-top:10px">
                                                        <a href="javascript:void(0)"  style="height:45px; width:45px"  onClick="send_sms_1('sms_1')"><i class="fa fa-comments" style="font-size:24px; line-height:45px"></i></a> 
                                                    </div>
                                                    
                                                    <div class="social-media-in  icon_4" style="padding-top:10px">
                                                        <a href="javascript:void(0)"  style="height:45px; width:45px"  onClick="send_sms_1('call_1')"><i class="fa fa-phone" style="font-size:24px; line-height:45px"></i></a> 
                                                    </div>
                                                    </div>
                                                </div>
                                                
                                                
                                                                                
                                                    
                                                
                                                
                                                
                                                
                                                
                                                
                                            </div>
                                         </form>
                                         
                                         
                                         
                                         
                                         
                                          <div class="row" style="padding:0; background-color:#FFFFFF; margin-top:50px">
                                         <!--========================Whatsapp div ============================-->
                                         
                                         <div class="col-sm-12" id="whatsapp_div" style="display:none">
                                                <h1 style="margin-bottom:25px">Whatsapp</h1>
                                                 <div class="form-group">
                                                    	<label for="">From </label>
                                                        <input disabled class="form-control" placeholder="Email Id" value="test@gmail.com" type="email">
                                                    </div>
                                                    
                                                     <div class="form-group">
                                                        <label for="">Select Subject</label>
                                                            <select   class="form-control">
                                                                <option>Refer 1</option>
                                                                <option>Refer 2</option>
                                                                <option>Refer 3</option>
                                                            </select>
                                                                
                                                    </div>
                                                    
                                                    
                                                    <div class="form-group">
                                                        <label for="">Content</label>
                                                           
                                                      
                                                        <textarea name="description" style="resize:none; height:100px" disabled>Lorem ipsum dolor sit amet of, consectetur adipiscing elitable. Vestibulum tincidunt est vitae ultrices accumsan. </textarea>
                                                    
                                                                
                                                    </div>
                                                 <div align="left" class="col-lg-12" style="padding-left:0">
                                                    
                                                    <div align="left" class="col-lg-6" style="text-align:left; padding-left:0; xpadding-top:20px">
                                                        <button type="button" class="btn btn-primary waves-effect waves-light" 
                                                        style="width:100px" onClick="unlock_form()">Send</button>
                                                    </div>
                                                    
                                                    
                                                    </div>
                                                 
                                      	 </div>
                                         
                                          <!--========================Whatsapp div ============================-->
                                          
                                          
                                           <!--========================SMS div ============================-->
                                         
              							<div class="col-sm-12" id="sms_div" style="display:none">
                                                <h1 style="margin-bottom:25px">SMS</h1>
                                                
                                                
                                                
                                                
                                                 <div class="form-group">
                                                    	<label for="">From </label>
                                                        <input disabled class="form-control" placeholder="Email Id" value="test@gmail.com" type="email">
                                                    </div>
                                                    
                                                     <div class="form-group">
                                                        <label for="">Select Subject</label>
                                                            <select   class="form-control">
                                                                <option>Refer 1</option>
                                                                <option>Refer 2</option>
                                                                <option>Refer 3</option>
                                                            </select>
                                                                
                                                    </div>
                                                    
                                                    
                                                    <div class="form-group">
                                                        <label for="">Content</label>
                                                           
                                                      
                                                        <textarea name="description" style="resize:none; height:100px" disabled>Lorem ipsum dolor sit amet of, consectetur adipiscing elitable. Vestibulum tincidunt est vitae ultrices accumsan. </textarea>
                                                    
                                                                
                                                    </div>
                                                    
                                                    <div align="left" class="col-lg-12" style="padding-left:0">
                                                    
                                                    <div align="left" class="col-lg-6" style="text-align:left; padding-left:0; xpadding-top:20px">
                                                        <button type="button" class="btn btn-primary waves-effect waves-light" 
                                                        style="width:100px" onClick="unlock_form()">Send</button>
                                                    </div>
                                                    
                                                    
                                                    </div>
                                           </div>
                                           
                                           
                                            <!--========================SMS div ============================-->
                                                 
                                                 
                                                 
                                            <!--========================Email div ============================-->
                                         
              							<div class="col-sm-12" id="email_div" style="display:none">
                                                <h1 style="margin-bottom:25px">Email</h1>
                                                
                                                
                                                 <div class="form-group">
                                                    	<label for="">From </label>
                                                        <input disabled class="form-control" placeholder="Email Id" value="test@gmail.com" type="email">
                                                    </div>
                                                    
                                                    <div class="form-group">
                                                        <label for="">Select Subject</label>
                                                            <select   class="form-control">
                                                                <option>Refer 1</option>
                                                                <option>Refer 2</option>
                                                                <option>Refer 3</option>
                                                            </select>
                                                                
                                                    </div>
                                                    
                                                    
                                                    <div class="form-group">
                                                        <label for="">Content</label>
                                                           
                                                      
                                                        <textarea name="description" style="resize:none; height:100px" disabled>Lorem ipsum dolor sit amet of, consectetur adipiscing elitable. Vestibulum tincidunt est vitae ultrices accumsan. </textarea>
                                                    
                                                                
                                                    </div>
                                                    
                                                    
                                                    <div align="left" class="col-lg-12" style="padding-left:0">
                                                    
                                                    <div align="left" class="col-lg-6" style="text-align:left; padding-left:0; xpadding-top:20px">
                                                        <button type="button" class="btn btn-primary waves-effect waves-light" 
                                                        style="width:100px" onClick="unlock_form()">Send</button>
                                                    </div>
                                                    
                                                    
                                                    </div>
                                           </div>
                                           
                                           
                                            <!--========================Email div ============================-->      
                                                 
                                                 
                                                 
                                                 
                                                 
                                                 
                                              <!--========================Call div ============================-->
                                         
              							<div class="col-sm-12" id="call_div" style="display:none">
                                                <h1 style="margin-bottom:25px">Call</h1>
                                                  <div class="form-group">
                                                    	<div class="form-group">
                                                        <label for="">Status</label>
                                                            <select   class="form-control">
                                                                <option>Status 1</option>
                                                                <option>Status 2</option>
                                                                <option>Status 3</option>
                                                            </select>
                                                                
                                                    </div>
                                                    </div>
                                                    <div class="form-group">
                                                    <label for="">Next Calling Date</label>
 <input name="finish" id="finish" type="text" class="form-control" placeholder="Next Calling Date">
 </div>
                                                    
                                                    
                                                    <div class="form-group">
                                                        <label for="">Response</label>
                                                           
                                                      
                                                        <textarea name="description" style="resize:none; height:100px"> </textarea>
                                                    
                                                                
                                                    </div>
                                                    
                                                    
                                                    
                                                    
                                                    
                                                    
                                                    <div align="left" class="col-lg-12" style="padding-left:0">
                                                    
                                                    <div align="left" class="col-lg-6" style="text-align:left; padding-left:0; xpadding-top:20px">
                                                        <button type="button" class="btn btn-primary waves-effect waves-light" 
                                                        style="width:100px" onClick="unlock_form()">Send</button>
                                                    </div>
                                                    
                                                    
                                                    </div>
                                           </div>
                                           
                                           
                                            <!--========================Call div ============================-->      
                                                     
                                                 
                                                 
                                                 
                                                 
                                                    
                                                    
                                                    
                                                 </div>
                                </div>
                            </div>
                             
                         </div>
                         
                    </div> 
                    
                    
                     <div class="col-lg-4" >
                     <div class="sparkline9-list mt-b-30 res-mg-t-30 analysis-progrebar-ctn" style="background-color:#FFFFFF;padding-left: 0; padding-right:0; padding-bottom:0">
                            <div class="sparkline9-hd">
                                <div class="main-sparkline9-hd" style="padding-left:20px">
                                    <h1>COMMUNICATION HISTORY</h1>
                                 </div>  
                                     
                                     
                                <div class="main-sparkline9-hd" style="height:450px; overflow-y:auto; margin-top:25px;padding-right:10px; background-color:#e7eff9; padding-left:10px">     
                              	 
                                 
                                 <div class="single-review-st-text">      
                               		 <div class="social-media-in side_icon" style="padding-top:10px; margin-right:15px">
                                    <a href="#"  style="height:32px; width:32px">
                                    <i class="fa fa-envelope icon_fix_1" style="font-size:20px; line-height:32px"></i></a> 
                                 </div>
                                
                                
                               		 <div class="review-ctn-hf"  style="margin-left:0; background-color:#FFFFFF;
                                border-radius:18px; padding:15px">
                                    <P>
                                    <i class="fa fa-clock-o" aria-hidden="true" style="font-size:16px; margin-right:2px"></i>
                                    <span style="color:rgba(0,0,0,0.65)">Feb 19, 2019 3:03 PM</span></p>
                                    
                                    
                                    <P><strong>Status : </strong>Santanu</p>
                                    <div align="justify" class="heide_1" ><strong>Content : </strong><span  style="color:rgba(0,0,0,.6)">
                                    Lorem ipsum dolor sit amet of, consec tetur adipisc ing elitable. Vestib ulum tinc idunt 
                                    est vitae ultrices accum san. SDolor sit amet of, conse</span></div>
                                                                                                                                               
                                </div>
                                                               
                                 </div>
                                 
                                 
                                 <div class="single-review-st-text">      
                               		 <div class="social-media-in side_icon" style="padding-top:10px; margin-right:15px">
                                    <a href="#"  style="height:32px; width:32px">
                                    <i class="fa fa-comments" style="font-size:20px; line-height:32px"></i></a> 
                                 </div>
                                
                                
                               		 <div class="review-ctn-hf"  style="margin-left:0; background-color:#FFFFFF;
                                border-radius:18px; padding:15px">
                                    <P>
                                    <i class="fa fa-clock-o" aria-hidden="true" style="font-size:16px; margin-right:2px"></i>
                                    <span style="color:rgba(0,0,0,0.65)">Feb 19, 2019 3:03 PM</span></p>
                                    
                                    
                                    <P><strong>Status : </strong>Santanu</p>
                                    <div align="justify" class="heide_1" ><strong>Content : </strong><span  style="color:rgba(0,0,0,.6)">
                                    Lorem ipsum dolor sit amet of, consec tetur adipisc ing elitable. Vestib ulum tinc idunt 
                                    est vitae ultrices accum san. SDolor sit amet of, conse</span></div>
                                                                                                                                               
                                </div>
                                                               
                                 </div>
                                 
                                 
                                 
                                 <div class="single-review-st-text">      
                               		 <div class="social-media-in side_icon" style="padding-top:10px; margin-right:15px">
                                    <a href="#"  style="height:32px; width:32px">
                                    <i class="fa fa-whatsapp" style="font-size:20px; line-height:32px"></i></a> 
                                 </div>
                                
                                
                               		 <div class="review-ctn-hf"  style="margin-left:0; background-color:#FFFFFF;
                                border-radius:18px; padding:15px">
                                    <P>
                                    <i class="fa fa-clock-o" aria-hidden="true" style="font-size:16px; margin-right:2px"></i>
                                    <span style="color:rgba(0,0,0,0.65)">Feb 19, 2019 3:03 PM</span></p>
                                    
                                    
                                    <P><strong>Status : </strong>Santanu</p>
                                    <div align="justify" class="heide_1" ><strong>Content : </strong><span  style="color:rgba(0,0,0,.6)">
                                    Lorem ipsum dolor sit amet of, consec tetur adipisc ing elitable. Vestib ulum tinc idunt 
                                    est vitae ultrices accum san. SDolor sit amet of, conse</span></div>
                                                                                                                                               
                                </div>
                                                               
                                 </div>
                                 
                                 
                                 
                                 <div class="single-review-st-text">      
                               		 <div class="social-media-in side_icon" style="padding-top:10px; margin-right:15px">
                                    <a href="#"  style="height:32px; width:32px">
                                    <i class="fa fa-phone" style="font-size:20px; line-height:32px"></i></a> 
                                 </div>
                                
                                
                               		 <div class="review-ctn-hf"  style="margin-left:0; background-color:#FFFFFF;
                                border-radius:18px; padding:15px">
                                    <P>
                                    <i class="fa fa-clock-o" aria-hidden="true" style="font-size:16px; margin-right:2px"></i>
                                    <span style="color:rgba(0,0,0,0.65)">Feb 19, 2019 3:03 PM</span></p>
                                    
                                    
                                    <P><strong>Status : </strong>Santanu</p>
                                    <div align="justify" class="heide_1" ><strong>Content : </strong><span  style="color:rgba(0,0,0,.6)">
                                    Lorem ipsum dolor sit amet of, consec tetur adipisc ing elitable. Vestib ulum tinc idunt 
                                    est vitae ultrices accum san. SDolor sit amet of, conse</span></div>
                                                                                                                                               
                                </div>
                                                               
                                 </div>
                                 
                          
                                 
                                 
                            	</div>
                                
                                
                                
                            </div>
                             
                         </div>
                     
                     
                     
                     
                     
                     </div>
                    
                    
                      
                    	
                              <div class="sparkline9-hd" style="padding-bottom: 0px;">
                              
                              
                                <div class="review-content-section">
                                    <div id="" class="pro-ad addcoursepro">
                                        
                                          
                                            
                                            
                                           
                                        
                                    </div>
                                </div>
                                        
                              
                              
                              </div>          
                        </div>
                    </div>
                </div>
                
                
            </div>
        </div>
        <!-- Static Table End -->
        <div class="footer-copyright-area">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="footer-copy-right">
                            <p>Copyright © 2019. All rights reserved. </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </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>
    
    
    
     
    
</body>

</html>