mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-12572 MDL-13427 New HTML cleaning code
This commit is contained in:
parent
55963a3a29
commit
093c15be54
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user