<?php 
//ob_start(); session_start();
 require_once("includes/initialize.php");
 
 
if (!isset($_SESSION['stdid'])) {
    redirect_to("index.php");
}else{
    $stdid = $_SESSION['stdid'];
}
 //$stdid = $_SESSION['stdid'];

$msg='';

// $error=array(
// 1=>"Wrong file format. Only (.jpg) format is allowed",
// 2=>"Passport uploaded successfully"

// );





       
        $stu='';$upformno='';

// if (isset($_POST['submit'])){
    


$stu = Biodata::Cform($stdid);
// //print_r($grades);

 
 
 
//  }
 
//  else
 
 if (isset($_POST['logout'])){
     unset($_SESSION['stdid']);
     session_destroy();
  redirect_to('index.php');
 }

?>

<?php include_layout_template('headers.php')?>
  
  

<center>
<div class="headers">

<span class="head-styling-left">Admission Portal</span>

<span class="head-styling-right">Application Page</span>

</div>

</center>
<hr style="border:inset 1px solid">
    
<div class="row">

  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
    <center>


      <div class="page-container">
      <div class="page-header-text">
        <h2>Application Successful</h2>
        </div>

        <div class="page-content-text">


<form method="post" action="" enctype="multipart/form-data">

  <div class="form-row">
    <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
      <label for="inputSurname"  class="alert bg-success alert-dismissable" 
      style="color:#0ba332; width: 100%; margin-top: 5px">

           <button aria-hidden=true data-dismiss=alert class=close type=button> × </button>

      <center><strong>Success! Application completed successfully. 

      Click Print Application Form to print your application form.


    Thank you.</center></strong></label>
      
    </div>
  </div>











   

   <div class="well" style="padding-left: 40%; padding-top: 60px">
  
  <!-- <a href="index.php" type="submit" aria-label="Previous" class="btn btn-danger btn-lg"><span aria-hidden="true" style="vertical-align: center">&laquo;</span>Back </a>
 -->
 <?php if (isset($stu->passport)){?>
<!--redirect_to('print_appform.php');-->
<!-- }-->

  <a type="submit" href="print_appform.php" target="_blank" class="btn btn-success btn-lg">Print Application Form</a>
  
  <?php } ?>
  
  <input type="submit" class="btn btn-danger btn-lg" id="logout" name="logout" value="Log Out">
<!-- <li><a href="#" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li> -->
</div> 
    <!-- </div > -->


  

</form>

</div>
</div>
<?php echo enquiryMsg();?>
</center>
<!-- </div> -->
</div>
</div>


 <script src="Jquery/jquery-2.1.3.min.js"></script>

<script src="bootstrap/js/bootstrap.js"></script>
</body>
</html>

<script type="text/javascript">
  
  document.title='Application Portal::Upload passport';

  // $(document).ready(function(){
  //   $('#submit').click(function(){

  //     alert("success");
  //   })
  // })
  
    </script>