[moodle] / contrib / plugins / grade / report / visual / tabs.php Repository:

View of /contrib/plugins/grade/report/visual/tabs.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (annotate)
Tue Jul 1 15:30:01 2008 WST (16 months, 3 weeks ago) by dservos
Branch: MAIN
CONTRIB-497
Start of the grade/report/visual plug-in for displaying charts and graphs using flare as part of the GSoC animated grade statistics report project.

Currently only one visualization has been added and it is still in a rough state.

The code for the swf can be found in the flare_visualization dir.

Lots more work ahead to get the plug-in 100%.
<?php

$row = $tabs = array();
    $tabcontext = get_context_instance(CONTEXT_COURSE, $COURSE->id);
    $row[] = new tabobject('visualreport',
                           $CFG->wwwroot.'/grade/report/visual/index.php?id='.$courseid,
                           get_string('modulename', 'gradereport_visual'));
    
    if (has_capability('moodle/grade:manage',$tabcontext ) ||
        has_capability('moodle/grade:edit', $tabcontext) ||
        has_capability('gradereport/visual:view', $tabcontext)) {
        $row[] = new tabobject('preferences',
                               $CFG->wwwroot.'/grade/report/visual/preferences.php?id='.$courseid,
                               get_string('myreportpreferences', 'grades'));
    }

    $tabs[] = $row;
    echo '<div class="gradedisplay">';
    print_tabs($tabs, $currenttab);
    echo '</div>';
?>

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7