

<?php
//connect include
require("includes/connection.php");

if(isset($_POST['VerifyNow']))
{
$StuID=$_POST['StuID'];
$StudentName=$_POST['StudentName'];


}

$extract = mysqli_query($con,"SELECT * FROM tblstudent where StuID='$StuID' AND StudentName='$StudentName'");
$numrows = mysqli_num_rows($extract);




?>
<?php require('include/header.php'); ?>



<!-- Main Wrapper Start -->
<div class="main-wrapper">
   
<div class="page-banner ovbl-dark" style="background-image:url(assets/images/banner/banner2.jpg);">
    <div class="container">
      <div class="page-banner-entry">
        <h1 class="text-white">Track Certificate</h1>
      </div>
    </div>
  </div>
  <div class="breadcrumb-row">
    <div class="container">
      <ul class="list-inline">
        <li><a href="#">Home</a></li>
        <li>Track Certificate</li>
      </ul>
    </div>
  </div>
    

   

    

    <!-- Page Conttent -->
    <?php
                                
$heading = '';
if($numrows==0)
{
$heading = "No Record Found";
}
else
{
    

while ($row = mysqli_fetch_assoc($extract))
{
    $StuID    = $row['StuID'];
    $StudentName=$row['StudentName'];
    $FatherName=$row['FatherName'];
    $MotherName=$row['MotherName'];
    $DOB       = $row['DOB'];
        $ContactNumber=$row['ContactNumber'];
    $Address=$row['Address'];
    $courseduration=$row['courseduration'];
    $coursename=$row['coursename'];
    $coursesession=$row['coursesession'];

   
    
     

}
$heading = "Student Details";  
}                           
                               ?>

    <main class="page-content">

       

        <div class="register-page section-ptb">

            <div class="container">

                <div class="row">

                    <div class="col-lg-7 col-md-12 ml-auto mr-auto">

                        <div class="login-register-wrapper">

                            <!-- login-register-tab-list start -->

                            <div class="login-register-tab-list nav">

                                <a class="active" data-toggle="tab" href="#lg1">

                                    <h4> <?php echo $heading;?> </h4>

                                </a>

                                

                                

                            </div>

                            
                            <!-- login-register-tab-list end -->
                         <?php if($numrows > 0):?>
                            <div class="tab-content">

                                <div id="lg1" class="tab-pane active">

                                    <div class="login-form-container">

                                        <div class="login-register-form">

                                            
                                            <form>
                                              <div class="form-group row">
                                                <label for="staticEmail" class="col-sm-4 col-form-label">Student Id</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $StuID;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">Student Name</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $StudentName;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">Father Name</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $FatherName;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">Mother Name</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $MotherName;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">D.O.B</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $DOB;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">Contact</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $ContactNumber;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">Student Address</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $Address;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">Course Duration</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $courseduration;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">Course Name</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $coursename;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                              <div class="form-group row">
                                                <label for="inputPassword" class="col-sm-4 col-form-label">Course Session</label>
                                                <div class="col-sm-8">
                                                  <h5><?php 
                                                        echo $coursesession;
                                                        ?>
                                                    </h5>
                                                </div>
                                              </div>
                                            </form>

                                        </div>

                                    </div>

                                </div>

                                

                                

                            </div>
                        <?php endif ?>

                        </div>

                    </div>

                </div>

            </div>

        </div>

        

    </main>

    <!--// Page Conttent -->

   

    <!-- <div class="most-popular-courses-area section-ptb">
           
        <img src="university-education-all-background-01.jpg">

    </div> -->
    <!-- Project Count Area End -->
    
    

    
</div>
<!-- Main Wrapper End -->
<?php require('include/footer.php'); ?>
    <link href="tracks/djs/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">

    <script type="text/javascript" src="tracks/djs/js/bootstrap-datetimepicker.js" charset="UTF-8"></script> 

<script type="text/javascript" src="tracks/djs/js/locales/bootstrap-datetimepicker.fr.js" charset="UTF-8"></script> 

<script>

    $('.datepickerss').datetimepicker({

		autoclose: 1,

		todayHighlight: 1,

		startView: 2,

		minView: 2,

        format: "dd/mm/yyyy"

		});

</script>
