diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 21ad23193e7..43dffccf09b 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -534,23 +534,20 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete, $reordertool, $reordercheckboxlabel = ''; } - if (!$quiz->shufflequestions) { - // Print and increment question number - $questioncountstring = ''; - if ($questioncount>999 || ($reordertool && $questioncount>99)) { - $questioncountstring = - "$reordercheckboxlabel$questioncount" . - $reordercheckboxlabelclose . $reordercheckbox; - } else { - $questioncountstring = $reordercheckboxlabel . $questioncount . - $reordercheckboxlabelclose . $reordercheckbox; - } - echo $questioncountstring; - $qno += $question->length; + if ($question->length == 0) { + $qnodisplay = get_string('infoshort', 'quiz'); + } else if ($quiz->shufflequestions) { + $qnodisplay = '?'; } else { - echo "$reordercheckboxlabel ? $reordercheckboxlabelclose" . - " $reordercheckbox"; + if ($qno > 999 || ($reordertool && $qno > 99)) { + $qnodisplay = html_writer::tag('small', $qno); + } else { + $qnodisplay = $qno; + } + $qno += $question->length; } + echo $reordercheckboxlabel . $qnodisplay . $reordercheckboxlabelclose . + $reordercheckbox; ?> diff --git a/mod/quiz/styles.css b/mod/quiz/styles.css index be2d4ea7834..60d83d46150 100644 --- a/mod/quiz/styles.css +++ b/mod/quiz/styles.css @@ -374,6 +374,7 @@ bank window's title is prominent enough*/ .ie6#page-mod-quiz-edit div.question div.content .questionname {width:20%;} .ie6#page-mod-quiz-edit .editq div.question div.content .randomquestioncategory a{width:40%;} .ie6#page-mod-quiz-edit .reorder .questioncontentcontainer .randomquestioncategory label{width: 35%;} +.qnum label {padding-right: 0.25em;} /** settings.php */ #adminquizreviewoptions {margin-bottom: 0.5em;}