Skip to content

Commit

Permalink
Fix for bug 4019 and some other XHTML issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Sep 17, 2005
1 parent d00c2e2 commit 9111a76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lang/en/help/quiz/itemanalysis.html
Expand Up @@ -7,9 +7,9 @@
<p><b>Facility Index (% Correct)</b></p>
<p>This is a measure of how easy or difficult is a question for quiz-takers.
It is calculated as:
<br>
<br />
FI = (X<sub>average</sub>) / X<sub>max</sub>
<br>
<br />

where X<sub>average</sub> is the mean credit obtained by all users attempting the item, <br>
and X<sub>max</sub> is the maximum credit achievable for that item.<br>
Expand Down
2 changes: 1 addition & 1 deletion lang/en/quiz_analysis.php
Expand Up @@ -21,7 +21,7 @@
$string['rfractiontitle'] = 'partial<br />credit';
$string['rcounttitle'] = 'R.<br />Counts';
$string['rpercenttitle'] = 'R.%%';
$string['facilitytitle'] = '%% Correct<br>Facility';
$string['facilitytitle'] = '%% Correct<br />Facility';
$string['stddevtitle'] = 'SD';
$string['dicsindextitle'] = 'Disc.<br />Index';
$string['disccoefftitle'] = 'Disc.<br />Coeff.';
Expand Down
5 changes: 3 additions & 2 deletions mod/quiz/report/analysis/report.php
Expand Up @@ -252,7 +252,7 @@ function display($quiz, $cm, $course) { /// This function just displays the

$table->define_columns($tablecolumns);
$table->define_headers($tableheaders);
$table->define_baseurl($CFG->wwwroot.'/mod/quiz/report.php?q='.$quiz->id.'&mode=analysis');
$table->define_baseurl($CFG->wwwroot.'/mod/quiz/report.php?q='.$quiz->id.'&amp;mode=analysis');

$table->sortable(true);
$table->collapsible(true);
Expand Down Expand Up @@ -352,7 +352,7 @@ function display($quiz, $cm, $course) { /// This function just displays the
$dc = format_float($q['disc_coeff'],2);

$response = array_shift($responses);
$table->add_data(array($qnumber."\n<br>".$qicon."\n ".$qreview, $qquestion, $response->text, $response->credit, $response->rcount, $response->rpercent, $facility, $qsd, $di, $dc));
$table->add_data(array($qnumber."\n<br />".$qicon."\n ".$qreview, $qquestion, $response->text, $response->credit, $response->rcount, $response->rpercent, $facility, $qsd, $di, $dc));
foreach($responses as $response) {
$table->add_data(array('', '', $response->text, $response->credit, $response->rcount, $response->rpercent, '', '', '', ''));
}
Expand All @@ -365,6 +365,7 @@ function display($quiz, $cm, $course) { /// This function just displays the

echo '<div id="tablecontainer">';
$table->print_html();
echo '</div>';

$this->print_options_form($quiz, $cm, $attemptselection, $lowmarklimit, $pagesize);
return true;
Expand Down

0 comments on commit 9111a76

Please sign in to comment.