Your IP : 216.73.217.87


Current Path : /hdd/hdd11/www/sick/test/template/
Upload File :
Current File : /hdd/hdd11/www/sick/test/template/view_quiz.phtml

<!DOCTYPE html>
<html>
    <head>
        <title>Реши тест</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style type="text/css">
            p {
                text-transform: uppercase;
                font-weight: bold;
            }

            a {
                color: #006666;
                text-decoration: none;
            }

            a:hover {
                font-weight: bold;
            }
        </style>
    </head>
    <body>
        <br>
        <p><?php echo $quizInfo['title']; ?></p><br>
        <i>Добавен на: <?php echo date('d.m.Y', $quizInfo['date_added']); ?></i><br><br>
        <?php if (isset($_POST['submit'])): ?>
            <strong>Брой верни отговори:</strong> <?php echo $correctAnswers; ?> от общо <?php echo $totalQuestions; ?><br>
            <strong>Процент верни отговори:</strong> <?php echo $correctAnswersPercent; ?>&#37;<br>
            <strong>Оценка:</strong> <?php echo $mark; ?>
            <br><br>
        <?php endif; ?>

        <form action="" method="post">
            <?php foreach ($questionsList['questions'] as $question): ?>
                <strong><?php echo $question['question']; ?></strong><br>
                <?php foreach ($questionsList['answers'][$question['question_id']] as $answer): ?>
                    <input type="radio" name="<?php echo $answer['question_id']; ?>" value="<?php echo $answer['answer']; ?>"> <?php echo $answer['answer']; ?>
                <?php endforeach; ?>
                <br><br>
            <?php endforeach; ?>
            <input type="submit" name="submit" value="Изпрати">
            <input type="reset" name="reset" value="Изчисти">
        </form>
    </body>
</html>