|
By dservos:
CONTRIB-497
* Added flare libbary to repo as it is needed to build the flash front end. Lib is located at /grade/report/visual/flare_visualization/flare/. For more information see http://flare.prefuse.org/
* Added more visualizations.
* Added settings/preferences page for the report.
* Added printable version.
* Added more documentation.
* Added README.txt
* Cleaned up code.
* Fixed a bunch of small bugs.
|
| 50 |
/// get tracking object |
/// get tracking object |
| 51 |
$gpr = new grade_plugin_return(array('type'=>'report', 'plugin'=>'visual', 'courseid'=>$courseid)); |
$gpr = new grade_plugin_return(array('type'=>'report', 'plugin'=>'visual', 'courseid'=>$courseid)); |
| 52 |
|
|
| 53 |
|
/// get the visual report object. |
| 54 |
$report = new grade_report_visual($courseid, $gpr, $context, $visid); |
$report = new grade_report_visual($courseid, $gpr, $context, $visid); |
| 55 |
|
|
| 56 |
|
/// make sure the user is allowed to view the selected visualization. |
| 57 |
|
require_capability(grade_report_visual::get_visualization($report->visid, $context)->capability, $context); |
| 58 |
|
|
| 59 |
/// last selected report session tracking |
/// last selected report session tracking |
| 60 |
if (!isset($USER->grade_last_report)) { |
if (!isset($USER->grade_last_report)) { |
| 61 |
$USER->grade_last_report = array(); |
$USER->grade_last_report = array(); |
| 67 |
$reportname = get_string('modulename', 'gradereport_visual'); |
$reportname = get_string('modulename', 'gradereport_visual'); |
| 68 |
$navigation = grade_build_nav(__FILE__, $reportname, $courseid); |
$navigation = grade_build_nav(__FILE__, $reportname, $courseid); |
| 69 |
|
|
|
//grade_regrade_final_grades($courseid); |
|
|
|
|
| 70 |
/// Print header |
/// Print header |
| 71 |
print_header_simple($strgrades.': '.$reportname, ': '.$strgrades, $navigation, '', '', true, null, navmenu($course), false, null); |
print_header_simple($strgrades.': '.$reportname, ': '.$strgrades, $navigation, '', '', true, null, navmenu($course), false, null); |
| 72 |
|
|
| 77 |
$currenttab = 'visualreport'; |
$currenttab = 'visualreport'; |
| 78 |
require('tabs.php'); |
require('tabs.php'); |
| 79 |
|
|
| 80 |
|
/// Make and output the html for the report. |
| 81 |
$report->visualization_selector(); |
$report->visualization_selector(); |
| 82 |
$report->adapt_html(); |
$report->adapt_html(); |
| 83 |
|
|
|
//echo session_id() . '<br/>'; |
|
|
//echo $SESSION->session_test; |
|
|
|
|
| 84 |
/// Print footer |
/// Print footer |
| 85 |
print_footer($course); |
print_footer($course); |
| 86 |
?> |
?> |