Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/gradebook/personal_stats.php

33 lines
742 B

<?php
/* See license terms in /license.txt */
require_once '../inc/global.inc.php';
$categoryId = isset($_GET['selectcat']) ? intval($_GET['selectcat']) : false;
if (empty($categoryId)) {
api_not_allowed(false);
}
$userId = api_get_user_id();
$cats = Category::load($categoryId);
if (isset($cats[0])) {
$cat = $cats[0];
}
$allcat = $cats[0]->get_subcategories($userId, api_get_course_id(), api_get_session_id());
$alleval = $cats[0]->get_evaluations($userId);
$alllink = $cats[0]->get_links($userId);
$gradebooktable = new GradebookTable(
$cat,
$allcat,
$alleval,
$alllink,
array(),
false
);
$gradebooktable->userId = $userId;
$table = $gradebooktable->return_table();
echo $gradebooktable->getGraph();