mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Some small robustness things, and a new style for quiz feedback text
This commit is contained in:
parent
1079c8a872
commit
c897eac5e4
11 changed files with 25 additions and 3 deletions
|
@ -654,7 +654,7 @@ function displaydir ($wdir) {
|
||||||
|
|
||||||
echo "</FORM>";
|
echo "</FORM>";
|
||||||
echo "<TD ALIGN=center>";
|
echo "<TD ALIGN=center>";
|
||||||
if (($USER->fileop == "move") && $USER->filesource <> $wdir) {
|
if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) {
|
||||||
echo "<FORM ACTION=index.php METHOD=get>";
|
echo "<FORM ACTION=index.php METHOD=get>";
|
||||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
|
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
|
||||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
|
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
|
||||||
|
|
|
@ -27,7 +27,7 @@ function mimeinfo($element, $filename) {
|
||||||
$result = $mimeinfo[strtolower($match[1])][$element];
|
$result = $mimeinfo[strtolower($match[1])][$element];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result) {
|
if (!empty($result)) {
|
||||||
return $result;
|
return $result;
|
||||||
} else {
|
} else {
|
||||||
return $mimeinfo["xxx"][$element]; // By default
|
return $mimeinfo["xxx"][$element]; // By default
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
if ($course->category) {
|
if ($course->category) {
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||||
|
} else {
|
||||||
|
$navigation = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
$strchoice = get_string("modulename", "choice");
|
$strchoice = get_string("modulename", "choice");
|
||||||
|
|
|
@ -57,6 +57,8 @@
|
||||||
|
|
||||||
if ($course->category) {
|
if ($course->category) {
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||||
|
} else {
|
||||||
|
$navigation = "";
|
||||||
}
|
}
|
||||||
print_header("$course->shortname: $choice->name", "$course->fullname",
|
print_header("$course->shortname: $choice->name", "$course->fullname",
|
||||||
"$navigation <A HREF=index.php?id=$course->id>$strchoices</A> -> $choice->name", "", "", true,
|
"$navigation <A HREF=index.php?id=$course->id>$strchoices</A> -> $choice->name", "", "", true,
|
||||||
|
|
|
@ -310,7 +310,7 @@ function quiz_get_attempt_responses($attempt) {
|
||||||
function quiz_print_comment($text) {
|
function quiz_print_comment($text) {
|
||||||
global $THEME;
|
global $THEME;
|
||||||
|
|
||||||
echo "<FONT COLOR=\"$THEME->cellheading2\">".text_to_html($text, true, false)."</FONT>";
|
echo "<SPAN CLASS=feedbacktext>".text_to_html($text, true, false)."</SPAN>";
|
||||||
}
|
}
|
||||||
|
|
||||||
function quiz_print_correctanswer($text) {
|
function quiz_print_correctanswer($text) {
|
||||||
|
|
|
@ -187,3 +187,6 @@ form {
|
||||||
.generalboxcontent {
|
.generalboxcontent {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedbacktext {
|
||||||
|
color: <?PHP echo $THEME->cellheading2?>;
|
||||||
|
}
|
||||||
|
|
|
@ -187,3 +187,6 @@ form {
|
||||||
.generalboxcontent {
|
.generalboxcontent {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedbacktext {
|
||||||
|
color: <?PHP echo $THEME->cellheading2?>;
|
||||||
|
}
|
||||||
|
|
|
@ -187,3 +187,6 @@ form {
|
||||||
.generalboxcontent {
|
.generalboxcontent {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedbacktext {
|
||||||
|
color: <?PHP echo $THEME->cellheading2?>;
|
||||||
|
}
|
||||||
|
|
|
@ -187,3 +187,6 @@ form {
|
||||||
.generalboxcontent {
|
.generalboxcontent {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedbacktext {
|
||||||
|
color: <?PHP echo $THEME->cellheading2?>;
|
||||||
|
}
|
||||||
|
|
|
@ -187,3 +187,6 @@ form {
|
||||||
.generalboxcontent {
|
.generalboxcontent {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedbacktext {
|
||||||
|
color: <?PHP echo $THEME->cellheading2?>;
|
||||||
|
}
|
||||||
|
|
|
@ -187,3 +187,6 @@ form {
|
||||||
.generalboxcontent {
|
.generalboxcontent {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedbacktext {
|
||||||
|
color: <?PHP echo $THEME->cellheading2?>;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue