Skip to content

Commit

Permalink
MDL-7171 Location of guest form should be above results - where the f…
Browse files Browse the repository at this point in the history
…orm for submitting results would appear.
  • Loading branch information
danmarsden committed Oct 31, 2006
1 parent ec27637 commit 92b2d0f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions mod/choice/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,6 @@



// print the results at the bottom of the screen

if ( $choice->showresults == CHOICE_SHOWRESULTS_ALWAYS or
($choice->showresults == CHOICE_SHOWRESULTS_AFTER_ANSWER and $current ) or
($choice->showresults == CHOICE_SHOWRESULTS_AFTER_CLOSE and $choice->timeclose <= time() ) ) {

choice_show_results($choice, $course, $cm);

} else if (!$choiceformshown) {
print_simple_box(get_string('noresultsviewable', 'choice'), 'center');
}

if (!$choiceformshown) {

$sitecontext = get_context_instance(CONTEXT_SYSTEM);
Expand Down Expand Up @@ -141,6 +129,19 @@
}
}

// print the results at the bottom of the screen

if ( $choice->showresults == CHOICE_SHOWRESULTS_ALWAYS or
($choice->showresults == CHOICE_SHOWRESULTS_AFTER_ANSWER and $current ) or
($choice->showresults == CHOICE_SHOWRESULTS_AFTER_CLOSE and $choice->timeclose <= time() ) ) {

choice_show_results($choice, $course, $cm);

} else if (!$choiceformshown) {
print_simple_box(get_string('noresultsviewable', 'choice'), 'center');
}


print_footer($course);


Expand Down

0 comments on commit 92b2d0f

Please sign in to comment.