<?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>Edit Employee | Buurtzorg</title>
    <?php include("headerlink.php"); ?> 
    
    
    <script src="https://cdn.ckeditor.com/4.10.0/standard/ckeditor.js"></script>
    <script src="js/vendor/jquery-1.12.4.min.js"></script>
 <script src="js/bootstrap.min.js"></script>
    
  
<link rel="stylesheet" type="text/css" href="source/jquery.fancybox.css" media="screen" />

    
    
    
    
    
    
     <link rel="stylesheet" href="css/form/all-type-forms.css">
    <!-- x-editor CSS
		============================================ -->
    <link rel="stylesheet" href="css/editor/select2.css">
    <link rel="stylesheet" href="css/editor/datetimepicker.css">
    <link rel="stylesheet" href="css/editor/bootstrap-editable.css">
    <link rel="stylesheet" href="css/editor/x-editor-style.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 personaliz_label(per) {
	 
	
	 $('#ps').text(per);
	
	}
	
 
	</script> 
    <?php
	 $lead_basic_sql="select * from patient_master where Lead_ID='".$Lead_Req_Id."'";
	 $lead_basic_query=mysqli_query($con,$lead_basic_sql);
	 $lead_details=mysqli_fetch_array($lead_basic_query);
	?>   
    
    <script type="text/javascript">
	function ShowPersonalize()
	{
	   if(document.getElementById("personalize").checked==true)
	   {
	   
	      $('#personalize_div').show();
	   }
	   else
	   {
	      $('#personalize_div').hide();
	   }
	
	}
	</script> 
    
<script>
function isNumberKey(evt)
{
    var charCode = (evt.which) ? evt.which : event.keyCode;
    if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
    {
        return false;
    }
    else
    {
        return true;
    }
}

</script> 
<script>
function isNumberKey(evt)
{
    var charCode = (evt.which) ? evt.which : event.keyCode;
    if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
    {
        return false;
    }
    else
    {
        return true;
    }
}
</script> 
<script>
function select_day()
{
 if($('#check_day').is(":checked"))   
        $("#countday").show() && $("#location").show();
    else
        $("#countday").hide()&& $("#location").hide();
		
}
</script>
<script>
function sameadd()
{	
		var check_day1=$('#check_day1').val();
 		var add=$('#Current_Address').val();
		 var state=$('#Current_State').val();
		 var city=$('#Current_City').val();
		 var pin=$('#Current_Pincode').val();
 if(document.getElementById('check_day1').checked==true)
 {   
        $('#Permanent').val(add);
		$('#Permanent_State').val(state);
		$('#Permanent_City').val(city);
		$('#Permanent_Pincode').val(pin);
		
	}
    else if(document.getElementById('check_day1').checked==false)
	{
         $('#Permanent').val('');
		$('#Permanent_State').val('');
		$('#Permanent_City').val('');
		$('#Permanent_Pincode').val('');
	}
}
</script>
<script>
function add_des()
{
$('#adddes').show();
}
</script>

</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">
        
       
                                               <?php
								  if(isset($_REQUEST['add_service']))
								  {
							
                              		$updatetna="update employee_master set First_Name='".$_REQUEST['First_Name']."',Last_Name='".$_REQUEST['Last_Name']."', Email='".$_REQUEST['Email']."',Mobile='".$_REQUEST['Mobile']."',DOB='".$_REQUEST['DOB']."',Gender='".$_REQUEST['Gender']."',Emp_No='".$_REQUEST['Emp_No']."',Department='".$_REQUEST['Department']."',Designation='".$_REQUEST['Designation']."',Office_Location_Area='".$_REQUEST['Office_Location_Area']."',Office_Location_City='".$_REQUEST['Office_Location_City']."',Emp_Type='".$_REQUEST['Emp_Type']."',Current_Address='".$_REQUEST['Current_Address']."',Current_State='".$_REQUEST['Current_State']."',Current_City='".$_REQUEST['Current_City']."',Current_Pincode='".$_REQUEST['Current_Pincode']."',Permanent_Address='".$_REQUEST['Permanent']."',Permanent_State='".$_REQUEST['Permanent_State']."',Permanent_City='".$_REQUEST['Permanent_City']."',Permanent_Pincode='".$_REQUEST['Permanent_Pincode']."',password='".$_REQUEST['password']."',PAN_Number='".$_REQUEST['PAN_Number']."',DOJ='".$_REQUEST['DOJ']."',Martial_Status='".$_REQUEST['Martial_Status']."',Aadhaar_Card_No='".$_REQUEST['Aadhaar_Card_No']."',Bank_Name='".$_REQUEST['Bank_Name']."',Bank_Branch='".$_REQUEST['Bank_Branch']."',Bank_Account='".$_REQUEST['Bank_Account']."',Status='".$_REQUEST['active']."' where SLN='".$Lead_Req_Id."'";
									$updatequery=mysqli_query($con,$updatetna);
									  ?>
                                      <script>
									  alert('Employee Successfully updated');
									  window.location.href='view-tna.php';
									  </script>
									  <?php
								  }
								  ?> 
        
        
        
            <div class="container-fluid">
                <div class="row">
                
                
                    
                    <div class="col-lg-12 col-md-12 col-sm-12 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 style="margin-bottom:15px; text-transform:uppercase">EDIT EMPLOYEES</h1>
                                   
                                    
                                          <div class="row" style="padding:0; background-color:#FFFFFF">
                                           
                                              
                                <?php 
								 $datafetch=mysqli_fetch_array(mysqli_query($con,"select * from employee_master where SLN='".$Lead_Req_Id."'"));
								?>
                                  <form method="post" action="" id="add_service">
                                   
                                      
                                      <div class="col-sm-12" id="call_later_div">
                                      
                                    
                                      
                                      
                                      <div class="col-sm-3 form-group"><label>First Name<span style="color:#FF0000">*</span></label>
                                           
                                             <input name="First_Name" id="First_Name" type="text" class="form-control"  placeholder="First Name" value="<?php echo $datafetch['First_Name'] ?>" data-rule-required="true" data-msg-required="Please enter service name" required>
                                                     
                                                   </div>
                                                  
                                                    <div class="col-sm-3 form-group"><label>Last Name<span style="color:#FF0000">*</span></label>
                                           
                                             <input name="Last_Name" id="Last_Name" type="text" class="form-control"  placeholder="Last Name" value="<?php echo $datafetch['Last_Name'] ?>" data-rule-required="true" data-msg-required="Please enter service name" required>
                                                     
                                                   </div>
                                                    <div class="col-sm-3 form-group"><label>Email<span style="color:#FF0000"></span></label>
                                           
                                             <input name="Email" id="Email" type="text" class="form-control"  placeholder="Email" value="<?php echo $datafetch['Email'] ?>" data-rule-required="true" data-msg-required="Please enter service name" >
                                                     
                                                   </div>
                                                   
                                                   <div class="col-sm-3 form-group"><label>Mobile<span style="color:#FF0000">*</span></label>
                                           
                                             <input name="Mobile" id="Mobile" type="text" class="form-control"  placeholder="Mobile" value="<?php echo $datafetch['Mobile'] ?>" data-rule-required="true" data-msg-required="Please enter service name" maxlength="10" onKeyPress="return isNumberKey(event)" required>
                                                     
                                                   </div> 
                                                   
                                                   <div class="col-sm-3 form-group"><label>DOB<span style="color:#FF0000">*</span></label>
                                           
                                             <input name="DOB" id="start12" type="text" class="form-control"  placeholder="DOB" value="<?php echo date('d-m-Y',strtotime($datafetch['DOB'])) ?>" data-rule-required="true" data-msg-required="Please enter service name" required>
                                                     
                                                   </div>
                                                  
                                                    
                                                   <div class="col-sm-3 form-group"><label>Gender<span style="color:#FF0000">*</span></label>
                                           
                                            <select name="Gender" id="Gender" class="form-control" required>
                                            <option value="">Select Gender</option>
                                            <option value="Male"<?php if($datafetch['Gender']==Male){ echo "selected";} ?>>Male</option>
                                            <option value="Female"<?php if($datafetch['Gender']==Female){ echo "selected";} ?>>Female</option>
                                            
											</select>
                                                      
                                                   </div>
                                                   
                                                   <div class="col-sm-3 form-group"><label>Emp Id</label>
                                           
                                             <input name="Emp_No" id="Emp_No" type="text" class="form-control"  placeholder="Emp Id" value="<?php echo $datafetch['Emp_No'] ?>" data-rule-required="true" data-msg-required="Please enter service name">
                                                     
                                                   </div> 
                                                    
                                                    <div class="col-sm-3 form-group"><label>Department</label>
                                        
                                           <select name="Department" id="Department" class="form-control" required>
                                            <option value="">Select Department</option>
                                            <?php
											$depart=mysqli_query($con,"select * from department_master where Active='Yes'");
											 
                                             while($depart_data=mysqli_fetch_array($depart))
                                             {
											 ?>
                                            <option value="<?php echo $depart_data['Department']?>"<?php if($depart_data['Department']==$datafetch['Department']){echo "selected"; } ?>><?php echo $depart_data['Department']?></option>
                                            <?php
                                            }
											?>
                                             </select>
                                                     
                                                   </div>
                                                   <div class="col-sm-3 form-group"><label>Designation<span style="color:#FF0000">*</span></label>
                                                   <select name="Designation" id="Designation" class="form-control" required>
                                                   <option value="">Select Designation</option>
                                                   <?php
                                                   $des="select Designation from designation_master where Active='Yes'";
												   $des_query=mysqli_query($con,$des);
												   while($des_fetch=mysqli_fetch_array($des_query))
												   {
                                                   ?>
                                            		<option value="<?php echo $des_fetch['Designation'] ?>" <?php if($des_fetch['Designation']==$datafetch['Designation']){echo "selected"; } ?>><?php echo $des_fetch['Designation'] ?></option>
													<?php 
													}
                                                    ?>
													</select>
                                                   </div> 
                                                   
                                                   
                                                   
                                                   
                                                   <div class="col-sm-3 form-group"><label>Office Location City<span style="color:#FF0000">*</span></label>
                                           
                                           <?php
										     		$SqlLoc="select SLN, Location_Name from location_master where Active='Yes'";
                                               ?>
                                            <select name="Office_Location_City" id="Office_Location_City" class="form-control" required>
                                            <option value="">Select Location</option>
                                            <?php
											 
                                               $RsLoc= mysqli_query($con,$SqlLoc);
                                               while($RowLoc=mysqli_fetch_array($RsLoc))
											   {
											 ?>
                                            <option value="<?php echo $RowLoc['Location_Name']; ?>"<?php if($RowLoc['Location_Name']==$datafetch['Office_Location_City']){echo "selected"; } ?>><?php echo $RowLoc['Location_Name']; ?></option>
                                            <?php
												}
												?>
											</select>      
                                                   </div>
                                                     
                                                   <div class="col-sm-3 form-group"><label>Office Location Area<span style="color:#FF0000"></span></label>
                                           
                                             <input name="Office_Location_Area" id="Office_Location_Area" type="text" class="form-control"  placeholder="Office Location Area" value="<?php echo $datafetch['Office_Location_Area'] ?>"  data-rule-required="true" data-msg-required="Please enter service name">
                                                     
                                                   </div> 
                                                    
                                                   <div class="col-sm-3 form-group"><label>Emp Type</label>
                                           
                                                    <select name="Emp_Type" id="Emp_Type" class="form-control">
                                                    <option value="">Select Type</option>
                                                    <option value="Fulltime"<?php if($datafetch['Emp_Type']==Fulltime){ echo "selected";} ?>>Full time</option>
                                                    <option value="Parttime"<?php if($datafetch['Emp_Type']==Parttime){ echo "selected";} ?>>Part time</option>
                                                    </select> 
                                                    
                                                   </div>
                                                   
                                                   
                                                   
                                                   
                                                </div>
                                                
                                                <div class="col-sm-12"> 
                                                <div class="form-group col-sm-6" style="padding-top:15px;"> 
                                                </div>
                                                <div class="form-group col-sm-6" style="padding-top:15px;"> 
                                       <label><input type="checkbox" name="check_day1" id="check_day1" onClick="sameadd()" value="Yes"/> Same as Current Address</label>
                                      </div>
                                                </div>
                                                
                                                <div class="col-sm-6" style="padding-right:0px;">
                                       
                                                   <div class="col-sm-12 form-group"><label>Current Address</label>
                                           
                                             <textarea name="Current_Address" id="Current_Address" type="text" class="form-control"  placeholder="Current Address" data-rule-required="true" data-msg-required="Please enter service name"><?php echo $datafetch['Current_Address'] ?></textarea>
                                                     
                                                   </div> 
                                                   
                                                   <div class="col-sm-4 form-group"><label>State</label>
                                           
                                                   <select name="Current_State" id="Current_State" class="form-control">
                                                    <option value="">Select State</option>
                                                    <?php
													$state=mysqli_query($con,"select * from state_master"); 
													while($state_data=mysqli_fetch_array($state))
													{
													?>
                                                    <option value="<?php echo $state_data['State_Name'] ?>"<?php if($state_data['State_Name']==$datafetch['Current_State']){echo "selected"; } ?>><?php echo $state_data['State_Name'] ?></option>
                                                    <?php
													}
													?>
                                                    </select>
                                             
                                                     
                                                   </div>
                                                   
                                                   <div class="col-sm-4 form-group"><label>City</label>
                                           
                                             <input name="Current_City" id="Current_City" type="text" class="form-control"  placeholder="Enter Current City" value="<?php echo $datafetch['Current_City'] ?>" data-rule-required="true" data-msg-required="Please enter City">
                                             
                                                     
                                                   </div>
                                                   
                                                   <div class="col-sm-4 form-group"><label>Pincode</label>
                                           
                                             <input name="Current_Pincode" id="Current_Pincode" type="text" class="form-control"  placeholder="Enter Pincode" value="<?php echo $datafetch['Current_Pincode'] ?>" data-rule-required="true" data-msg-required="Please enter service name" onKeyPress="return isNumberKey(event)"><br/>
                                             
                                                     
                                                   </div>
                                                   
                                                </div>
                                                <div class="col-sm-6" style="padding-left:0px;" id="paradd">
                                                    
                                                   <div class="col-sm-12 form-group"><label>Permanent Address</label>
                                           
                                             <textarea name="Permanent" id="Permanent" type="text" class="form-control"  placeholder="Permanent Address"  data-rule-required="true" data-msg-required="Please enter service name"><?php echo $datafetch['Permanent_Address'] ?></textarea>
                                                     
                                                   </div>
                                                   
                                                   <div class="col-sm-4 form-group"><label>State</label>
                                           
                                                   <select name="Permanent_State" id="Permanent_State" class="form-control">
                                                    <option value="">Select State</option>
                                                     <?php
													$state=mysqli_query($con,"select * from state_master"); 
													while($state_data=mysqli_fetch_array($state))
													{
													?>
                                                    <option value="<?php echo $state_data['State_Name'] ?>"<?php if($state_data['State_Name']==$datafetch['Permanent_State']){echo "selected"; } ?>><?php echo $state_data['State_Name'] ?></option>
                                                    <?php
													}
                                                    ?>
                                                    </select>
                                             
                                                     
                                                   </div>
                                                   
                                                   <div class="col-sm-4 form-group"><label>City</label>
                                           
                                             <input name="Permanent_City" id="Permanent_City" type="text" class="form-control"  placeholder="Enter Permanent City" value="<?php echo $datafetch['Permanent_City'] ?>" data-rule-required="true" data-msg-required="Please enter City">
                                             
                                                     
                                                   </div>
                                                   
                                                   
                                                   
                                                   <div class="col-sm-4 form-group"><label>Pincode</label>
                                           
                                             <input name="Permanent_Pincode" id="Permanent_Pincode" type="text" class="form-control"  placeholder="Enter Pincode" value="<?php echo $datafetch['Permanent_Pincode'] ?>" data-rule-required="true" data-msg-required="Please enter service name" onKeyPress="return isNumberKey(event)"><br/>
                                             
                                                     
                                                   </div>
                                                   
                                                   
                                                </div>
                                                
                                                  
                                                <div class="col-sm-12">
                                                <hr>
                                               <div class="col-sm-12">
                                                <h1 style="margin-bottom:15px; text-transform:uppercase">ADDITIONAL iNFORMATION</h1>
                                               </div>
                                                
                                                 <div class="form-group col-sm-4" style="padding-top:15px;"> 
                                       <label><input type="checkbox" name="check_day" id="check_day" onClick="select_day()"/> Give Software Access</label>
                                      </div>
                                      
                                    		  <div class="col-sm-4 form-group" id="countday" style="display:none;"><label>Password</label>
                                           
                                             <input name="password" id="password" type="text" class="form-control"  placeholder="Password" value="<?php echo $datafetch['password'] ?>" data-rule-required="true" data-msg-required="Please enter Password" >
                                             </div>
                                       
                                            <div class="col-sm-4 form-group" id="location" style="display:none;"><label>Access Location<span style="color:#FF0000">*</span></label>
                                           
                                           <?php
										     		$SqlLoc1="select SLN, Location_Name from location_master where Active='Yes'";
                                               ?>
                                            <select name="access_location" id="access_location" class="form-control" >
                                            <option value="">Select Location</option>
                                            <?php
											 
                                               $RsLoc1= mysqli_query($con,$SqlLoc1);
                                               while($RowLoc1=mysqli_fetch_array($RsLoc1))
											   {
											 ?>
                                            <option value="<?php echo $RowLoc1['SLN']; ?>"<?php if($RowLoc1['Location_Name']==$datafetch['Office_Location_City']){echo "selected"; } ?>><?php echo $RowLoc1['Location_Name']; ?></option>
                                            <?php
												}
												?>
                                                 </select>       
                                                </div> 
                                                   
                                                </div>
                                                
                                                   <div class="col-sm-12">
                                        
                                                   <!-- <div class="col-sm-4 form-group"><label>Manager Email<span style="color:#FF0000"></span></label>
                                           
                                             <input name="Manager_Email" id="Manager_Email" type="text" class="form-control"  placeholder="Manager Email" value="<?php echo $datafetch['Manager_Email'] ?>" data-rule-required="true" data-msg-required="Please enter service name" >
                                                  </div> -->  
                                                  <div class="col-sm-4 form-group"><label>PAN Number</label>
                                           
                                             <input name="PAN_Number" id="PAN_Number" type="text" class="form-control"  placeholder="PAN Number" value="<?php echo $datafetch['PAN_Number'] ?>" data-rule-required="true" data-msg-required="Please enter service name">
                                                  </div>
                                                  
                                                  <div class="col-sm-4 form-group"><label>DOJ<span style="color:#FF0000"></span></label>
                                           
                                             <input name="DOJ" id="finish12" type="text" class="form-control"  placeholder="DOJ" value="<?php echo date('d-m-Y',strtotime($datafetch['DOJ'])) ?>" data-rule-required="true" data-msg-required="Please enter service name">
                                                     
                                                   </div>
                                                   
                                               
 
                                                   <div class="col-sm-4 form-group"><label>Martial Status</label>
                                           
                                                      <select name="Martial_Status" id="Martial_Status" class="form-control">
                                                      <option value="">Select Martial Status</option>
                                                      <option value="Married"<?php if($datafetch['Martial_Status']==Married){ echo "selected";} ?>>Married</option>
                                                      <option value="Single"<?php if($datafetch['Martial_Status']==Single){ echo "selected";} ?>>Single</option>
                                                      </select>
                                                     
                                                   </div> 
                                                    <div class="col-sm-4 form-group"><label>Aadhaar Card No</label>
                                           
                                             <input name="Aadhaar_Card_No" id="Aadhaar_Card_No" type="text" class="form-control"  placeholder="Aadhaar Card No" value="<?php echo $datafetch['Aadhaar_Card_No'] ?>" data-rule-required="true" data-msg-required="Please enter service name">
                                                  </div>   
                                                  <div class="col-sm-4 form-group"><label>Bank Name</label>
                                           
                                             <input name="Bank_Name" id="Bank_Name" type="text" class="form-control"  placeholder="Bank Name" value="<?php echo $datafetch['Bank_Name'] ?>" data-rule-required="true" data-msg-required="Please enter service name">
                                                  </div> 
                                                   
                                               
                                      
 
                                                   <div class="col-sm-4 form-group"><label>Bank Branch </label>
                                           
                                             <input name="Bank_Branch" id="Bank_Branch" type="text" class="form-control"  placeholder="Bank Branch" value="<?php echo $datafetch['Bank_Branch'] ?>" data-rule-required="true" data-msg-required="Please enter service name">
                                                     
                                                   </div> 
                                                    <div class="col-sm-4 form-group"><label>Bank Account</label>
                                           
                                             <input name="Account" id="Account" type="text" class="form-control"  placeholder="Bank Account" value="<?php echo $datafetch['Bank_Account'] ?>" data-rule-required="true" data-msg-required="Please enter service name">
                                                     
                                                   </div>
                                                   <div class="col-sm-4 form-group"><label>ACTIVE</label>
                                           
                                            <select name="active" id="active" class="form-control">
                                            <option value="Active">Active</option>
                                            <option value="In-Active">In-Active</option>
                                            
											</select>
                                                      
                                                   </div>
                                                </div>
                                                
                                                <div class="col-sm-12">
                                              <div class="form-group">  <label></label>
                                                 <input type="submit" class="btn btn-custon-rounded-three
                                    				btn-primary" name="add_service" value="Submit" style="margin-top:30px; float:right;"></div>
                                    			
                                                </div>
                                              
                                        </form>
                               
                                       
                                        
                                        
                                        
                                        
                                            </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>

     
    
     <!--  editable JS
		============================================ -->
    <script src="js/editable/jquery.mockjax.js"></script>
    <script src="js/editable/mock-active.js"></script>
    <script src="js/editable/select2.js"></script>
    <script src="js/editable/moment.min.js"></script>
    <script src="js/editable/bootstrap-datetimepicker.js"></script>
    <script src="js/editable/bootstrap-editable.js"></script>
    <script src="js/editable/xediable-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> 
  
               
                                               <script>
 
$('button.call_btn_1').click(function() {
    //var text = $(this).text();
	var text = $(this).data('value_santanu');
	//alert(text)
	$('#hidden_call_box').val(text);
	$('#response').val(text);
    // do something with the text
});
												</script> 
                                                
                                                
                                                
                                                
       <!-- bootstrap-clockpicker -->
      <link rel="stylesheet" type="text/css" href="css/bootstrap-clockpicker.min.css">
    <script type="text/javascript" src="js/bootstrap-clockpicker.min.js"></script>


 <script type="text/javascript">
$('.clockpicker').clockpicker()
	.find('input').change(function(){
		console.log(this.value);
	});
var input = $('#single-input').clockpicker({
	placement: 'bottom',
	align: 'left',
	autoclose: true,
	'default': 'now'
});

$('.clockpicker-with-callbacks').clockpicker({
		donetext: 'Done',
		init: function() { 
			console.log("colorpicker initiated");

		},
		beforeShow: function() {
			console.log("before show");
		},
		afterShow: function() {
			console.log("after show");
		},
		beforeHide: function() {
			console.log("before hide");
		},
		afterHide: function() {
			console.log("after hide");
		},
		beforeHourSelect: function() {
			console.log("before hour selected");
		},
		afterHourSelect: function() {
			console.log("after hour selected");
		},
		beforeDone: function() {
			console.log("before done");
		},
		afterDone: function() {
			console.log("after done");
		}
	})
	.find('input').change(function(){
		console.log(this.value);
	});

// Manually toggle to the minutes view
$('#check-minutes').click(function(e){
	// Have to stop propagation here
	e.stopPropagation();
	input.clockpicker('show')
			.clockpicker('toggleView', 'minutes');
});
if (/mobile/i.test(navigator.userAgent)) {
	$('input').prop('readOnly', true);
}
</script>   

  <script language="javascript">
  $(function() {
    $( "#start12" ).datepicker({
	  dateFormat: 'dd-mm-yy',
      defaultDate: "-1d",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths: 1,
      onClose: function( selectedDate ) {
        $( "#datepicker1" ).datepicker( "option", "minDate", selectedDate );
      }
    });
  });
  
  </script>
  
  
  <script language="javascript">
  $(function() {
    $( "#finish12" ).datepicker({
	  dateFormat: 'dd-mm-yy',
      defaultDate: "-1d",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths: 1,
      onClose: function( selectedDate ) {
        $( "#datepicker1" ).datepicker( "option", "minDate", selectedDate );
      }
    });
  });
  
  </script>

<script type="text/javascript">
/*$("#add_service").validate({
          
      showErrors: function(errorMap, errorList) {
          // Clean up any tooltips for valid elements
          $.each(this.validElements(), function (index, element) {
              var $element = $(element);
              $element.data("title", "") // Clear the title - there is no error associated anymore
                  .removeClass("error")
                  .tooltip("destroy");
          });
          // Create new tooltips for invalid elements
          $.each(errorList, function (index, error) {
              var $element = $(error.element);

              $element.tooltip("destroy") // Destroy any pre-existing tooltip so we can repopulate with new tooltip content
                  .data("title", error.message)
                  .addClass("error")
                  .tooltip(); // Create a new tooltip based on the error messsage we just set in the title
          });
      },

     
	  
});*/
</script>                                          
                                                
                                                
 <!-- <script>
		CKEDITOR.replace( 'editor1', {
			height: 150,
			width: 700,
		} );
	</script> -->  

<script type="text/javascript" src="source/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="lib/jquery.mousewheel.pack.js"></script>    
                                               
<script>

$(document).ready(function() {
	$(".various5").fancybox({
		maxWidth	: 380,
		maxHeight	: 410,
		fitToView	: true,
		width		: '100%',
		height		: '100%',
		autoSize	: false,
		closeClick	: false,
		openEffect	: 'none',
		closeEffect	: 'none',
		
		
		
		
	});
	
 
});

</script>                                         
    
</body>

</html>