Current File : /home/inlingua/www/sensoriumpsychologists.com/backup/student/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
if($sesssion_row['final_exam']=='1'){
echo '<div class="alert alert-danger">
<a class="close" data-dismiss="alert" href="#">×</a>
<strong>Error!</strong>You have not apper in final exam.</div>';
}else{
?>
<?php
$id=$session_row['student_id'];
$result=$query->select_where_field('shristi_final_result','user_id',$id,"AND status !=''"); ?>
<!-- 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>Un Answers</th>
<th>Total Marks</th>
<th>Total %</th>
<th>Create Date</th>
</tr>
<?php
while($row=$result->fetch_assoc()){
$right_answer = $row['right_answer'];
$wrong_answer = $row['wrong_answer'];
$unanswered = $row['unanswered'];
$created_at = $row['created_at'];
$total_marks = $row['right_answer'];
?>
<tr>
<td><?php
$results12=$query->select_where('shristi_final_test','status','1');
//echo $arow=$results12->num_rows;
echo $arow=50;
?></td>
<td><?php echo $right_answer; ?></td>
<td><?php echo $wrong_answer; ?></td>
<td><?php echo $unanswered; ?></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>
<td><?php echo $created_at; ?></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>