<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" >
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" ></script>
<title>Annual Report Card</title>
<style>
.report-card{border:2px solid #a1def4;height:95%;border-radius:5px;}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-12">
<center>
<h2 style="background: yellow;">Student Detail</h2></center>

<div class="table-responsive text-center">
<table class="table table-bordered table-striped" id="mytable">

<thead>
<tr>
<th>Student Name</th>
<th>Father Name</th>
<th>Address</th>
<th>Contact No</th>
</tr>
</thead>
<tbody>
<?php
$table='student';
$student_id=$this->uri->segment('3');
$get_student_data=$this->StudentModel->get_data_by_id($student_id,$table);
if($get_student_data){
foreach($get_student_data as $data){
?>
<tr>
<td><?php echo htmlspecialchars_decode($data['student_name']); ?></td>
<td><?php echo htmlspecialchars_decode($data['father_name']); ?></td>
<td><?php echo htmlspecialchars_decode($data['address']); ?></td>
<td><?php echo htmlspecialchars_decode($data['contact_no']); ?></td>
</tr>
<?php

}
}

?>
</tbody>
</table>
</div>

</div>

</div>
</div>
</body>
</html>