|
By dservos:
CONTRIB-497
Cleaned up some of the code for report/visual and the flex based application for viewing the visualizations.
Improved the UI of the visualization.
Added documentation to both the php and actionscript 3 (flex) code.
Removed some unneeded files.
TODO:
*Add more visualizations.
*Add printer firendly version.
*Make flex appplications settings less hardcoded and loaded from moodle.
*Load lang files from moodle to flex for full language support.
*Add a settings page for the report.
|
| 1 |
<?php |
<?php |
| 2 |
|
/////////////////////////////////////////////////////////////////////////// |
| 3 |
|
// // |
| 4 |
|
// NOTICE OF COPYRIGHT // |
| 5 |
|
// // |
| 6 |
|
// Moodle - Modular Object-Oriented Dynamic Learning Environment // |
| 7 |
|
// http://moodle.org // |
| 8 |
|
// // |
| 9 |
|
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // |
| 10 |
|
// // |
| 11 |
|
// This program is free software; you can redistribute it and/or modify // |
| 12 |
|
// it under the terms of the GNU General Public License as published by // |
| 13 |
|
// the Free Software Foundation; either version 2 of the License, or // |
| 14 |
|
// (at your option) any later version. // |
| 15 |
|
// // |
| 16 |
|
// This program is distributed in the hope that it will be useful, // |
| 17 |
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of // |
| 18 |
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // |
| 19 |
|
// GNU General Public License for more details: // |
| 20 |
|
// // |
| 21 |
|
// http://www.gnu.org/copyleft/gpl.html // |
| 22 |
|
// // |
| 23 |
|
/////////////////////////////////////////////////////////////////////////// |
| 24 |
|
|
| 25 |
|
/** |
| 26 |
|
* Index page for the visual grade book report. |
| 27 |
|
*/ |
| 28 |
|
|
| 29 |
require_once '../../../config.php'; |
require_once '../../../config.php'; |
| 30 |
require_once $CFG->libdir.'/gradelib.php'; |
require_once $CFG->libdir.'/gradelib.php'; |
| 31 |
require_once $CFG->dirroot.'/grade/lib.php'; |
require_once $CFG->dirroot.'/grade/lib.php'; |
| 64 |
/// Print the plugin selector at the top |
/// Print the plugin selector at the top |
| 65 |
print_grade_plugin_selector($courseid, 'report', 'stats'); |
print_grade_plugin_selector($courseid, 'report', 'stats'); |
| 66 |
|
|
| 67 |
// Add tabs |
// /Add tabs |
| 68 |
$currenttab = 'visualreport'; |
$currenttab = 'visualreport'; |
| 69 |
require('tabs.php'); |
require('tabs.php'); |
| 70 |
|
|
| 71 |
|
/// Call on flex.php for html to load the flex application. |
| 72 |
|
/// TODO: have the adapt_data() function in lib.php do this. |
| 73 |
require('flex.php'); |
require('flex.php'); |
| 74 |
|
|
| 75 |
/// Print footer |
/// Print footer |