';
$this->start_table();
+ $rowcount = 0;
foreach ($questions as $question) {
- $this->print_table_row($question);
+ $this->print_table_row($question, $rowcount);
+ $rowcount += 1;
}
$this->end_table();
@@ -1270,16 +1342,19 @@ class question_bank_view {
echo "\n";
}
- protected function get_row_classes($question) {
+ protected function get_row_classes($question, $rowcount) {
$classes = array();
if ($question->hidden) {
$classes[] = 'dimmed_text';
}
+ if (!empty($this->extrarows)) {
+ $classes[] = 'r' . ($rowcount % 2);
+ }
return $classes;
}
- protected function print_table_row($question) {
- $rowclasses = implode(' ', $this->get_row_classes($question));
+ protected function print_table_row($question, $rowcount) {
+ $rowclasses = implode(' ', $this->get_row_classes($question, $rowcount));
if ($rowclasses) {
echo '
' . "\n";
} else {
@@ -1289,30 +1364,9 @@ class question_bank_view {
$column->display($question, $rowclasses);
}
echo "
\n";
- }
-
- protected function display_question_sort_options($pageurl, $sortorder){
- //sort options
- $html = "
";
- // POST method should only be used for parameters that change data
- // or if POST method has to be used, the user must be redirected immediately to
- // non-POSTed page to not break the back button
- $html .= '
\n";
- $html .= "
\n";
- echo $html;
+ foreach ($this->extrarows as $row) {
+ $row->display($question, $rowclasses);
+ }
}
public function process_actions() {
diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css
index d5115443f97..b1e45606b23 100644
--- a/theme/standard/styles_color.css
+++ b/theme/standard/styles_color.css
@@ -1187,7 +1187,12 @@ css id's of question bank*/
#mod-quiz-edit .questionbankwindow div.header a{
color:#FFF;
}
-
+#categoryquestions .r1 {
+ background: #e4e4e4;
+}
+#categoryquestions .header {
+ border: 0 none;
+}
/***
*** Modules: Resource
diff --git a/theme/standard/styles_fonts.css b/theme/standard/styles_fonts.css
index d614c826de5..c9403cda949 100644
--- a/theme/standard/styles_fonts.css
+++ b/theme/standard/styles_fonts.css
@@ -1046,7 +1046,7 @@ body#mod-forum-index .generalbox .cell {
text-decoration:underline;
}
#mod-quiz-edit div.question div.content .questiontext,
-#categoryquestions .questiontext{
+#mod-quiz-edit #categoryquestions .questiontext {
font-weight:bold;
}
#mod-quiz-edit div.question div.content div.questioncontrols{
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index 35666270b74..ea8bad2bbe3 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -4718,6 +4718,10 @@ table.quizreviewsummary td.cell {
padding-right:0.3em;
}
+.sideblock #categoryquestions .header {
+ text-align: center;
+ padding:0;
+}
#mod-quiz-edit div.question div.content .questionname,
#categoryquestions .questionname{
@@ -5000,8 +5004,9 @@ css id's of question bank*/
width:100%;
}
#mod-quiz-edit table#categoryquestions{
- width:100%;
- overflow:hidden;
+ width: 100%;
+ overflow: hidden;
+ table-layout: fixed;
}
#mod-quiz-edit table#categoryquestions td,#mod-quiz-edit table#categoryquestions th{
@@ -5009,10 +5014,27 @@ css id's of question bank*/
white-space:nowrap;
}
-#mod-quiz-edit table#categoryquestions .iconsmall{
- padding-left:5px;
+#categoryquestions .iconcol {
+ width: 15px;
+ text-align: center;
}
+#categoryquestions .checkbox {
+ width: 19px;
+ text-align: center;
+}
+
+#categoryquestions .qtype {
+ text-align: center;
+}
+
+#mod-quiz-edit #categoryquestions .qtype {
+ width: 24px;
+}
+
+#categoryquestions .questiontext p {
+ margin: 0;
+}
#mod-quiz-edit .categoryinfo{
padding:0.3em;
}