Also, fix uppercase tag names in the tab row CSS, which did not work at DEVELOPER debug level.
Merged from MOODLE_18_STABLE.
$string['editingquestion'] = 'Editing a question';
$string['missingimportantcode'] = 'This question type is missing important code: $a.';
$string['notenoughdatatoeditaquestion'] = 'Neither a question id, nor a category id and question type, was specified.';
+$string['questionbank'] = 'Question bank';
$string['questiondoesnotexist'] = 'This question does not exist';
$string['unknownquestiontype'] = 'Unknown question type: $a.';
$string['questions'] = 'Questions';
$string['questionsinclhidden'] = 'Questions (including hidden)';
$string['questionsinuse'] = '(* Questions marked by an asterisk are already in use in some quizzes. These question will not be deleted from these quizzes but only from the category list.)';
+$string['questionsinthisquiz'] = 'Questions in this quiz';
$string['questionsperpage'] = 'Questions per page';
$string['questiontext'] = 'Question text';
$string['questiontype'] = 'Question type $a';
$quiz = &$modform;
include('tabs.php');
- print_simple_box_start("center");
+ print_box_start();
$a->attemptnum = count_records('quiz_attempts', 'quiz', $quiz->id, 'preview', 0);
$a->studentnum = count_records_select('quiz_attempts', "quiz = '$quiz->id' AND preview = '0'", 'COUNT(DISTINCT userid)');
error('Failed to set sumgrades');
}
- print_simple_box_end();
+ print_box_end();
print_footer($course);
exit;
}
echo '<table border="0" style="width:100%" cellpadding="2" cellspacing="0">';
echo '<tr><td style="width:50%" valign="top">';
- print_simple_box_start();
+ print_box_start('generalbox quizquestions');
+ print_heading(get_string('questionsinthisquiz', 'quiz'), '', 2);
$sumgrades = quiz_print_question_list($modform, true, $SESSION->quiz_showbreaks, $SESSION->quiz_reordertool);
if (!set_field('quiz', 'sumgrades', $sumgrades, 'id', $modform->instance)) {
error('Failed to set sumgrades');
}
- print_simple_box_end();
+ print_box_end();
echo '</td><td style="width:50%" valign="top">';
echo '<fieldset class="invisiblefieldset" style="display: block;">';
echo "<input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\" />";
- print_simple_box_start();
echo "<table style=\"width:100%;\">\n";
echo "<tr><th colspan=\"3\" style=\"white-space:nowrap;\" class=\"header\" scope=\"col\">$strorder</th>";
echo "<th class=\"header\" scope=\"col\">#</th>";
echo '<input type="hidden" name="savechanges" value="save" /></div>';
echo '<input type="hidden" name="savequizid" value="'.$quiz->id.'" />'; // ugly hack to prevent modform session "mistakes"
- print_simple_box_end();
echo '</fieldset>';
echo "</form>\n";
echo '<form method="post" action="edit.php?courseid='.$course->id.'">';
echo '<fieldset class="invisiblefieldset" style="display: block;">';
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
- print_simple_box_start();
+
echo '<table id="categoryquestions" style="width: 100%"><tr>';
echo "<th style=\"white-space:nowrap;\" class=\"header\" scope=\"col\">$straction</th>";
}
}
echo "</table>\n";
- print_simple_box_end();
$paging = print_paging_bar($totalnumber, $page, $perpage,
"edit.php?courseid={$course->id}&perpage=$perpage&", 'page',
}
// starts with category selection form
- if (has_capability('moodle/question:managecategory', $context)) {
- print_simple_box_start();
- question_category_form($course, $SESSION->questioncat, $SESSION->questionrecurse,
- $SESSION->questionshowhidden, $SESSION->questionshowquestiontext);
- print_simple_box_end();
- }
+ print_box_start('generalbox questionbank');
+ print_heading(get_string('questionbank', 'question'), '', 2);
+ question_category_form($course, $SESSION->questioncat, $SESSION->questionrecurse,
+ $SESSION->questionshowhidden, $SESSION->questionshowquestiontext);
// continues with list of questions
- print_simple_box_start();
question_list($course, $SESSION->questioncat, isset($modform->instance) ? $modform->instance : 0,
$SESSION->questionrecurse, $page, $perpage, $SESSION->questionshowhidden, $sortorder,
$SESSION->questionshowquestiontext);
- print_simple_box_end();
+
+ print_box_end();
?>
/***
*** Question
***/
+.questionbank h2 {
+ margin-top: 0;
+}
.que {
width: 90%;
line-height:1.8em;
}
-.tabrow0 LI {
+.tabrow0 li {
display: inline;
margin: 0 -4px 0 0;
padding: 0;
}
-.tabrow0 A span {
+.tabrow0 a span {
padding: 10px 14px 4px 0;
background: transparent url(pix/tab/right.gif) no-repeat right top;
}
-.tabrow0 A.here span {
+.tabrow0 a.here span {
background: transparent url(pix/tab/right_last.gif) no-repeat right top;
}
background: none !important;
}
-.tabrow0 A {
+.tabrow0 a {
text-decoration: none;
/* font-weight: bold; */
background: transparent url(pix/tab/left.gif) no-repeat left top;
padding: 10px 0 4px 14px;
}
-.tabrow0 A:hover, .tabrow0 A:active, .tabrow0 A.here:link, .tabrow0 A.here:visited {
+.tabrow0 a:hover, .tabrow0 a:active, .tabrow0 a.here:link, .tabrow0 a.here:visited {
/* background:#ddd; */
}
-.tabrow0 A:hover {
+.tabrow0 a:hover {
background-image: url(pix/tab/left_hover.gif);
}
-.tabrow0 A.here:hover {
+.tabrow0 a.here:hover {
background-image: url(pix/tab/left.gif);
}
-.tabrow0 A:hover span {
+.tabrow0 a:hover span {
background-image: url(pix/tab/right_hover.gif);
}
-.tabrow0 A.here:hover span {
+.tabrow0 a.here:hover span {
background-image: url(pix/tab/right_last.gif);
}
-.tabrow0 A.here {
+.tabrow0 a.here {
color:#444;
}
-.tabrow0 A.here:link, .tabrow0 A.here:visited {
+.tabrow0 a.here:link, .tabrow0 a.here:visited {
position:relative;
z-index:102;
}
padding: 0;
}
-.tabrow0 UL {
+.tabrow0 ul {
position:absolute;
left:0;
top:1.8em;
font-size: 95%;
}
-.tabrow0 UL LI {
+.tabrow0 ul li {
display:inline;
margin-top:1px;
background-image: none;
}
-.tabrow0 UL A {
+.tabrow0 ul a {
background-image: none;
color:#00c;
margin:0;
border:0
}
-.tabrow0 UL A span {
+.tabrow0 ul a span {
padding: 0;
background-image: none;
}
-.tabrow0 UL .last span,
-.tabrow0 UL A:hover, .tabrow0 UL A:hover span,
-.tabrow0 UL A.here:hover, .tabrow0 UL A.here:hover span {
+.tabrow0 ul .last span,
+.tabrow0 ul a:hover, .tabrow0 ul a:hover span,
+.tabrow0 ul a.here:hover, .tabrow0 ul a.here:hover span {
background-image: none;
}
-.tabrow0 UL A:hover, .tabrow0 UL A:active, .tabrow0 UL A.here:link, .tabrow0 UL A.here:visited {
+.tabrow0 ul a:hover, .tabrow0 ul a:active, .tabrow0 ul a.here:link, .tabrow0 ul a.here:visited {
color:#444;
}
{
text-align: center;
}
+#mod-quiz-edit .quizquestions h2 {
+ margin-top: 0;
+}
+#mod-quiz-edit #showbreaks {
+ margin-top: 0.7em;
+}
body#question-preview .quemodname,
body#question-preview .controls
{