Exemplo n.º 1
0
    /// Show the tab bar.
    $currenttab = 'preview';
    include 'tabs.php';
    /// Heading and tab bar.
    print_heading(get_string('previewquiz', 'quiz', format_string($quiz->name)));
    $attemptobj->print_restart_preview_button();
    /// Inform teachers of any restrictions that would apply to students at this point.
    if ($messages) {
        print_box_start('quizaccessnotices');
        print_heading(get_string('accessnoticesheader', 'quiz'), '', 3);
        $accessmanager->print_messages($messages);
        print_box_end();
    }
} else {
    /// Just a heading.
    if ($attemptobj->get_num_attempts_allowed() != 1) {
        print_heading(format_string($attemptobj->get_quiz_name()) . ' - ' . $title);
    } else {
        print_heading(format_string($attemptobj->get_quiz_name()));
    }
}
// Start the form
echo '<form id="responseform" method="post" action="', $attemptobj->processattempt_url(), '" enctype="multipart/form-data" accept-charset="utf-8">', "\n";
echo '<div>';
print_js_call('init_quiz_form');
/// Print the navigation panel in a left column.
print_container_start();
echo '<div id="left-column">';
$attemptobj->print_navigation_panel('quiz_attempt_nav_panel', $page);
echo '</div>';
print_container_end();