mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Minor formatting tweaks
This commit is contained in:
parent
51feb9d56c
commit
77775bff99
3 changed files with 37 additions and 11 deletions
|
@ -95,7 +95,7 @@ function print_side_block($heading="", $list=NULL, $footer="", $icons=NULL) {
|
||||||
} else {
|
} else {
|
||||||
echo "";
|
echo "";
|
||||||
}
|
}
|
||||||
echo "</TD>\n<TD WIDTH=100%>";
|
echo "</TD>\n<TD WIDTH=100% VALIGN=top>";
|
||||||
echo "<P><FONT SIZE=2>$string</FONT></P>";
|
echo "<P><FONT SIZE=2>$string</FONT></P>";
|
||||||
echo "</TD></TR>\n";
|
echo "</TD></TR>\n";
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,16 @@
|
||||||
|
|
||||||
$timenow = time();
|
$timenow = time();
|
||||||
|
|
||||||
$table->head = array ("Week", "Question", "Answer");
|
if ($course->format == "weeks") {
|
||||||
$table->align = array ("CENTER", "LEFT", "CENTER");
|
$table->head = array ("Week", "Question", "Answer");
|
||||||
|
$table->align = array ("CENTER", "LEFT", "LEFT");
|
||||||
|
} else if ($course->format == "topics") {
|
||||||
|
$table->head = array ("Topic", "Question", "Answer");
|
||||||
|
$table->align = array ("CENTER", "LEFT", "LEFT");
|
||||||
|
} else {
|
||||||
|
$table->head = array ("Question", "Answer");
|
||||||
|
$table->align = array ("LEFT", "LEFT");
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($choices as $choice) {
|
foreach ($choices as $choice) {
|
||||||
$answer = $answers[$choice->id];
|
$answer = $answers[$choice->id];
|
||||||
|
@ -49,9 +57,14 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[] = array ("<P>$choice->section</P>",
|
if ($course->format == "weeks" || $course->format == "topics") {
|
||||||
"<P><A HREF=\"view.php?id=$choice->coursemodule\">$choice->name</A></P>",
|
$table->data[] = array ("$choice->section",
|
||||||
"<P>$aa</P>");
|
"<A HREF=\"view.php?id=$choice->coursemodule\">$choice->name</A>",
|
||||||
|
"$aa");
|
||||||
|
} else {
|
||||||
|
$table->data[] = array ("<A HREF=\"view.php?id=$choice->coursemodule\">$choice->name</A>",
|
||||||
|
"$aa");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print_table($table);
|
print_table($table);
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,16 @@
|
||||||
notice("There are no surveys.", "../../course/view.php?id=$course->id");
|
notice("There are no surveys.", "../../course/view.php?id=$course->id");
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->head = array ("Week", "Name", "Status");
|
if ($course->format == "weeks") {
|
||||||
$table->align = array ("CENTER", "LEFT", "LEFT");
|
$table->head = array ("Week", "Name", "Status");
|
||||||
|
$table->align = array ("CENTER", "LEFT", "LEFT");
|
||||||
|
} else if ($course->format == "topics") {
|
||||||
|
$table->head = array ("Topic", "Name", "Status");
|
||||||
|
$table->align = array ("CENTER", "LEFT", "LEFT");
|
||||||
|
} else {
|
||||||
|
$table->head = array ("Name", "Status");
|
||||||
|
$table->align = array ("LEFT", "LEFT");
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($surveys as $survey) {
|
foreach ($surveys as $survey) {
|
||||||
if (survey_already_done($survey->id, $USER->id)) {
|
if (survey_already_done($survey->id, $USER->id)) {
|
||||||
|
@ -30,9 +38,14 @@
|
||||||
} else {
|
} else {
|
||||||
$ss = "<A HREF=\"view.php?id=$survey->coursemodule\">Not done yet</A>";
|
$ss = "<A HREF=\"view.php?id=$survey->coursemodule\">Not done yet</A>";
|
||||||
}
|
}
|
||||||
$table->data[] = array ("$survey->section",
|
if ($course->format == "weeks" or $course->format == "topics") {
|
||||||
"<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>",
|
$table->data[] = array ("$survey->section",
|
||||||
"$ss");
|
"<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>",
|
||||||
|
"$ss");
|
||||||
|
} else {
|
||||||
|
$table->data[] = array ("<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>",
|
||||||
|
"$ss");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_table($table);
|
print_table($table);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue