<?php include("templates/global.php"); 
$vc=0;

if(isset($_GET['v_code']) && isset($_GET['source']))
{
    $vc=$_GET['v_code'];
    $source=$_GET['source'];
 
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>Get free counselling for Studide IT Bootcamp with 100 % Job assurence.</title>
  <meta content="" name="description">
  <meta content="" name="keywords">
  <?php include("templates/inc.php"); ?>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
   
   <script>
   
   
   
   $(document).ready(function(){
    //Upload event_url 

   
// jQuery ajax form submit example, runs when form is submitted
$("#f1").submit(function(e) {
    e.preventDefault(); // prevent actual form submit
    var form = $(this);
    var url = form.attr('action'); //get submit url [replace url here if desired]  
    
    $("#btnAdd").val("Submitting...");
    $("#btnAdd").prop('disabled', true);
    setInterval(function () {$("#btnAdd").prop('disabled', false);}, 3000);

    
        $.ajax({
            type: "POST",
            url: url,
            data: form.serialize(), // serializes form input
            success: function(data){

                console.log(data);
                $("#btnAdd").val("Submit");
                
                $("#msg").html(data); 
                $("#msg").slideDown("slow");
                $("#msg").slideUp(5000,function(){ 
                if(data=="Your are Registered.")
                   window.location="https://studide.in/bootcamp/";
                 });
				    
                   
                
                
            }
        });
    
});




	
});
       $(function () {
  $("#state_id").change(function(){
	 
   var id=$("#state_id").val();
   
	
		$.ajax({
			 type:'post',
			 url: 'get-districts.php',
			 data: {'id':id},
			 success: function(data)
			 {	 
			    
				 $("#district_id").html(data); 
				
			  }
		 });
       });
       
  });

   </script>
	
 	 <script>
//       const el = document.getElementById('education');
//       const box = document.getElementById('Other_education');
//       el.addEventListener('change', function handleChange(event) {
//          if (event.target.value === 'others') {
//             box.style.visibility = 'visible';
//          } else {
//             box.style.visibility = 'hidden';
//          }
//       });
//   </script>
</head>

<body>

  <main>
    <div class="container">

      <section class="section register min-vh-100 d-flex flex-column align-items-center justify-content-center py-4">
        <div class="container">
          <div class="row justify-content-center">
            <div class="col-lg-8 col-md-6 d-flex flex-column align-items-center justify-content-center">

              <div class="d-flex justify-content-center py-2">
                <a href="index.php" class="logo d-flex align-items-center w-auto">
                </a>
              </div><!-- End Logo -->

              <div class="card mb-1">

                <div class="card-body mt-3">
                 <center>  
                  <br>
                 <img src="heading.png" width="100%" style="border-radius:10px" /> 
                  </center>
            
                 <!--<div class="mt-2">-->
                 <!--     <center><iframe width="50%" height="150" class="rounded" src="https://www.youtube.com/embed/ufyb3uftW4Y?si=_PRePjz2uobbWMQ_" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></center>-->
                 <!--</div>-->
                 
                  <div class="pt-2 pb-2">
                    <h5 class="card-title text-center pb-0 fs-4">Get Free Counselling / Demo Class</h5>
                  </div>
                    
                 <!-- Custom Styled Validation -->
                                <form id="f1" action="counselling-action.php" class="row g-3 needs-validation" novalidate="" method="post">
                                      
                                  <div class="col-md-2">
                                   <label for="validationDefault04" class="form-label"><b>Intrested In</b></label>
                                  </div>
                                  <div class="col-md-3">
                                      
                                      <input type="radio" id="intrested_in" name="intrested_in" value="Enquiry"  checked="checked" > Enquiry
                                  </div>
                                      <div class="col-md-3">
                                      
                                      <input type="radio"id="intrested_in" name="intrested_in" value="Demo Class" > Demo Class
                                  </div>   
                                      
                                   

                                     <div class="col-md-6">
                                        <label for="validationCustom01" class="form-label"><b> Name</b></label>
                                        <input value="<?php if (isset($_GET['id'])) echo $row['name']; ?>" type="text" class="form-control" id="name" name="name" required="" placeholder="Enter Your name">
                                        <div class="invalid-feedback">
                                            Please provide a Name.
                                        </div>
                                    </div>
                                    
                                    <div class="col-md-6">
                                        <label for="mobile" class="form-label"><b>Mobile Number</b></label>
                                        <input value="<?php if (isset($_GET['id'])) echo $row['mobile']; ?>" type="number" class="form-control" id="mobile" name="mobile" required="" placeholder="Enter Your Mobile Number">
                                        <div class="invalid-feedback">
                                            Please provide a mobile number.
                                        </div>
                                    </div>
                                  
                                     <div class="col-md-12">
                                      
                                      
                                       <label for="yourDesignation" class="form-label"><b>Select Course</b></label>
                                        <select class="form-select" id="course" name="course" required="required">
                                         <option selected="selected" value="">Choose...</option>
                                          <option>Full Stack Developer Bootcamp(FSDB)</option>
                                          <!--<option>App Developer Bootcamp(ADB)</option>-->
                                          <!--<option>Data Analyst Bootcamp(ADB)</option>-->
                                          <option>Digital Marketing Bootcamp(ADB)</option>
                                        </select>
                                        
                                         
                                         
                                  </div>
                                    
                                    
                                    <div class="col-md-12">
                                      
                                         <label for="yourDesignation" class="form-label"><b>Select Last Education</b></label>
                                        <select class="form-select" id="education" name="education" onchange="showDiv('hidden_div', this)" required="required">
                                         <option selected="selected" value="">Choose...</option>
                                          <option>B-TECH</option>
                                          <option>M-TECH</option>
                                          <option>BCA</option>
                                          <option>MCA</option>
                                          <option>BSC IT/CS</option>
                                          <option>MSC IT/CS</option>
                                          <option>BBA</option>
                                          <option>MBA</option>
                                          <option>POLYTECHNIC</option>
                                          <option>BA</option>  
                                          <option>MA</option>  
                                          <option>BSC</option>  
                                          <option>MSC</option>  
                                          <option>BCOM</option>  
                                          <option>MCOM</option>  
                                          <option>INTERMEDIATE</option>
                                          <option value="OTHERS">OTHERS</option>
                                        </select>
                                     
                                        
                                         
                                         
                                  </div>
                                  
                                  <div  class="col-md-12" id="hidden_div" style="display:none;">
                                         <label for="yourDesignation" class="form-label">If last education Others please mention here</label>
                                         <input value="" type="text" class="form-control" id="other" name="other" required="" placeholder="Specify your Last Education">
                                  </div>
                                    <script>
                                           function showDiv(divId, element) {
                                             document.getElementById(divId).style.display = element.value == 'OTHERS' ? 'block' : 'none';
                                            }
                                   </script>
                                    
                                  <div class="col-md-6">
                                      
                                        <label for="yourDesignation" class="form-label"><b>Colleges/Intitution Name</b></label>
                                      
                                <input value="<?php if (isset($_GET['id'])) echo $row['institute_name']; ?>" type="text" class="form-control" id="institute_name" name="institute_name" required="" placeholder="Enter Your College/Institute">
                                        
                                        
                                         
                                         
                                  </div>
                                  
                                  <div class="col-md-6">
                                      
                                      
                                       <label for="yourDesignation" class="form-label"><b>Select Year</b></label>
                                        <select class="form-select" id="passing_year" name="passing_year" required="required">
                                         <option  value="">Choose...</option>
                                          <option value="First Year (1st)">First Year (1st)</option>
                                          <option  value="Second Year (2nd)">Second Year (2nd)</option>
                                          <option  value="Third Year (3rd)">Third Year (3rd)</option>
                                          <option  value="Fourth Year (4th)">Fourth Year (4th)</option>
                                          <option  value="Pass Out">Pass Out</option>
                                          
                                          
                                        </select>
                                        
                                         
                                         
                                  </div>

                                 

                                   <!--<div class="col-md-6">-->
                                   <!--     <label for="validationDefault04" class="form-label"><b>Select State</b></label>-->
                                   <!--     <select class="form-select" id="state_id" name="state_id" required="">-->
                                   <!--         <option selected="salacted" value="0">Choose...</option>-->
                                  <!--             
                                   <!--             include("./conn.php");-->
                                   <!--             $sql = "select * from state order by state_title asc";-->
                                  <!--             $smt = mysqli_query($conn, $sql);-->
                                  <!--             while ($rs = mysqli_fetch_assoc($smt)) -->
                                   <!--             {-->
                                  <!--                 echo '<option value="'.$rs['id'].'">'.$rs['state_title'].'</option>';-->
                                  <!--             }-->
                                           
                                   <!--     </select>-->
                                   <!-- </div>-->


                                   <!--  <div class="col-md-6">-->
                                   <!--     <label for="validationDefault04" class="form-label"><b>Select District</b></label>-->
                                   <!--     <select class="form-select" id="district_id" name="district_id" required="">-->
                                            
                                   <!--     </select>-->
                                   <!-- </div>-->


                                 <!--   <div class="col-md-12">-->
                                 <!--       <label for="validationCustom01" class="form-label"><b>Address</b></label>-->
                                 <!--       <textarea  type="text" class="form-control" id="address" name="address" required=""><?php if (isset($_GET['id'])) echo $row['address']; ?></textarea>-->
                                 <!--       <div class="invalid-feedback">-->
                                 <!--           Please provide a address.-->
                                 <!--       </div>-->
                                 <!-- </div>-->
                               

                                 <!--<div class="col-md-12">-->
                                 <!--       <label for="validationCustom01" class="form-label"><b>Remarks</b></label>-->
                                 <!--       <textarea type="text" rows="2" class="form-control" id="remarks" name="remarks" required=""> <?php if (isset($_GET['id'])) echo $row['remarks']; ?></textarea>-->
                                       
                                 <!--       <div class="invalid-feedback">-->
                                 <!--           Please provide require.-->
                                 <!--       </div>-->
                                 <!-- </div>-->
                               
                                 


                                    <div class="col-12 text-center">
                                        <input type="hidden" name="v_code" id="v_code" value="<?php echo $vc; ?>" />
                                        
                                        <input type="hidden" name="lead_source" id="lead_source" value="<?php echo $source; ?>" />
                                        
                                       <div class="alert alert-primary" role="alert" id="msg" style="display:none">
                                          
                                        </div>
                                    <button class="btn btn-primary  btn-lg" id="btnAdd" type="submit">Submit</button>
                
                                        
                                                                            </div>
                                </form><!-- End Custom Styled Validation -->

                    
                    <center><br>
                    For more details  ?<a href ="https://www.studide.in/bootcamp/" target="_blank"> <b>Click Here</b></a>
                    </center>
                    </div>
					          
                    
					          
                  </form>

                </div>
              </div>

              
            </div>
          </div>
        </div>

      </section>

    </div>
  </main><!-- End #main -->

  <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>


   <?php include("templates/vendors.php"); ?>

</body>

</html>