echo \Components\Courses\Helpers\Form::timeDiff($realLimit * 60);
?>
</strong> to complete this form.
	There are <strong><?php 
echo $this->pdf->getQuestionCount();
?>
</strong> questions.
	<?php 
if ($this->dep->getAllowedAttempts() > 1) {
    ?>
		You are allowed <strong><?php 
    echo $this->dep->getAllowedAttempts();
    ?>
</strong> attempts.
		This is your <strong><?php 
    echo \Components\Courses\Helpers\Form::toOrdinal((int) $this->resp->getAttemptNumber());
    ?>
</strong> attempt.
	<?php 
}
?>
</p>
<?php 
if ($realLimit == $limit) {
    ?>
	<p><em>Time will begin counting when you click 'Continue' below.</em></p>
<?php 
} else {
    ?>
	<p><em>Time is already running because the form is close to expiring!</em></p>
<?php 
Exemple #2
0
    if ($completedAttempts && count($completedAttempts) > 0) {
        ?>
				<p>
					View another completed attempt:
					<select name="attempt">
						<?php 
        foreach ($completedAttempts as $completedAttempt) {
            ?>
							<option value="<?php 
            echo $completedAttempt;
            ?>
"<?php 
            echo $completedAttempt == $attempt ? ' selected="selected"' : '';
            ?>
><?php 
            echo \Components\Courses\Helpers\Form::toOrdinal($completedAttempt);
            ?>
 attempt</option>
						<?php 
        }
        ?>
					</select>
					<input class="btn btn-secondary" type="submit" value="GO" />
				</p>

				<?php 
        $nextAttempt = count($completedAttempts) < $dep->getAllowedAttempts() ? count($completedAttempts) + 1 : null;
        ?>
			<?php 
    }
    ?>