
<?php
$quiz_total_time = 0;
foreach ($quiz_questions as $value) {
    $quiz_total_time += $value->time_limit;
}
$quiz_total_time = $quiz_total_time / 60;
$taken_time = $taken_time / 60;
?>

<div class="col-sm-offset-1 col-sm-9 ">

    <div class="col-sm-12 padding-zero text-left"><h3>Quiz Result</h3></div>

    <div class="col-sm-12 padding-zero"><br></div>
    <div class="col-sm-12 gray">
        <form action="quiz_test_multiple_choice_question.html" method="post">
            <div class="col-sm-8  padding-zero text-left">

                <div class="col-sm-12 text-left" style="padding: 0 0 5px 20px;">
                    <h3>Status On Questions</h3>  
                    <p>Total question : <?php echo $total_question; ?></p>
                    <p>Total correct answer : <?php echo $correct_ans; ?></p>
                    <p>Total  wrong answer : <?php echo $wrong_ans; ?></p>
                    <p>Total unanswer question: <?php echo $unanswered; ?></p>
                    <p>Taken Time: 
                        <?php
                        $quiz_total_time = 0;
                        foreach ($quiz_questions as $value) {
                            $quiz_total_time += $value->time_limit;
                        }
                        $quiz_total_time = $quiz_total_time * 60;
                        echo $this->cf->sec2view($quiz_result->quiz_finish_time) . ' / ' . $this->cf->sec2view($quiz_total_time);
                        ?>
                    </p>
                    <p>Correct answer percentage: <span id="skillP"><?php echo round($correct_percentage, 2); ?>%</span></p>
                </div>
                
            </div>
        </form>    
        <div class="col-sm-4 padding-zero">

            <div class="row">
                <div class="col-sm-12"><br><br><br></div>
                <div class="col-sm-12" style="padding: 0">
                                <!--<div style="width: 200px;" id="testPercentage" class="circlestat  circliful" data-dimension="200" data-text="80%" data-width="30" data-fontsize="38" data-fgcolor="#32cd32" data-percent="80" data-bgcolor="#eee" data-fill="#ddd"><span style="line-height: 200px; font-size: 38px;" class="circle-text">80%</span><canvas height="200" width="200"></canvas></div>-->
                    <div id="testPercentage" class="circlestat " data-dimension="200" data-text="" data-width="30" data-fontsize="38" data-fgcolor="" data-percent=""  data-bgcolor="#eee" data-fill="#ddd"></div>

                </div>
            </div>
        </div>
    </div>
</div>
<script src="<?php echo base_url()?>front_end_resource/quiz/skill_meter.js" type="text/javascript"></script>