MDL-12572 MDL-13427 New HTML cleaning code

This commit is contained in:
pichetp 2008-03-11 19:20:03 +00:00
parent 55963a3a29
commit 093c15be54

View File

@ -237,7 +237,7 @@ class quiz_report extends quiz_default_report {
$this->Export_CSV($questions, $filename);
break;
case "HTML":
// $this->Export_HTML($questions, $filename);
$this->Export_HTML($questions, $filename);
break;
}
}
@ -364,9 +364,6 @@ class quiz_report extends quiz_default_report {
$table->add_data(array('', '', $response->text, $response->credit, $response->rcount, $response->rpercent, '', '', '', ''));
}
}
if( $download == "HTML") {
$this->Export_HTML($questions, $filename,$table);
}
print_heading_with_help(get_string("analysistitle", "quiz_analysis"),"itemanalysis", "quiz");
echo '<div id="tablecontainer">';
@ -678,7 +675,7 @@ class quiz_report extends quiz_default_report {
}
exit;
}
function Export_HTML(&$questions, $filename,$table) {
function Export_HTML(&$questions, $filename) {
$headers = array();
$headers[] = '<span style ="color:blue ; font-weight : bold;">'.get_string('qidtitle','quiz_analysis').'</span>';
$headers[] = '<span style ="color:blue ; font-weight : bold;">'.get_string('qtypetitle','quiz_analysis').'</span>';