Current File : /home/inlingua/public_html/sensoriumpsychologists.com/franchise/final_exam_result.php |
<?php
include_once("common/head_links.php");
include_once("../classes/config.php");
?>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php include_once("common/header.php");?>
<?php include_once("common/left_side_bar.php");?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
</h1>
</section>
<!-- Main content -->
<section class="content">
<?php
$id=$session_row['student_id'];
$result=$query->select_where_field('shristi_final_result','user_id',$id,"AND status='1'"); ?>
<!-- Info boxes -->
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8 col-sm-8 col-xs-8">
<table class="student table table-striped">
<tr>
<td colspan="11"> <h1>Final Exam result</h1></td></tr>
<tr>
<th>Total Question</th>
<th>Right Answers</th>
<th>Wrong Answers</th>
<th>Total Marks</th>
<th>Total %</th>
</tr>
<?php
while($row=$result->fetch_assoc()){
$right_answer = $row['right_answer'];
$wrong_answer = $row['wrong_answer'];
$total_marks = $row['right_answer'];
?>
<tr>
<td>
<?php
$results12=$query->select_where('shristi_final_test','status','1');
echo $arow=$results12->num_rows;
?>
</td>
<td><?php echo $right_answer; ?></td>
<td><?php echo $wrong_answer; ?></td>
<td><?php echo $total_marks; ?></td>
<td>
<?php
if($total_marks==0){echo "Enable To get Your %";}
else{ $new_width = ($right_answer/ $arow ) * 100;
if($new_width<=50){
echo "<p class='btn btn-danger' style='color:black;'>$new_width</p>";
}else{echo "<p class='btn btn-success' style='color:green;'>$new_width</p>";}
}
?>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
</section>
</div>
<?php include_once("common/footer.php");?>
</div><!-- ./wrapper -->
<?php include_once("common/footer_links.php");?>
</body>
</html>