place holder ofr reporting tool

skala
Arnaud Ligot 14 years ago
parent d6a3679fe8
commit 18d4482df4
  1. 9
      main/inc/banner.inc.php
  2. 9
      main/inc/lib/banner.lib.php
  3. 1
      main/inc/lib/main_api.lib.php
  4. 36
      main/reports/index.php

@ -263,6 +263,15 @@ if ($_user['user_id'] && !api_is_anonymous()) {
$menu_navigation['dashboard'] = $possible_tabs['dashboard'];
}
// Reports
if (/*api_get_setting('show_tabs', 'reports') == 'true'*/ true) { // FIXME add settings (need upgrade script)
if (api_is_platform_admin() || api_is_drh() || api_is_session_admin()) {
$navigation['reports'] = $possible_tabs['reports'];
}
} else{
$menu_navigation['reports'] = $possible_tabs['reports'];
}
// Administration
if (api_is_platform_admin(true)) {
if (api_get_setting('show_tabs', 'platform_administration') == 'true') {

@ -75,6 +75,13 @@ function get_tabs() {
$navigation['dashboard']['title'] = get_lang('Dashboard');
}
// Reports
if (api_is_platform_admin() || api_is_drh() || api_is_session_admin()) {
$navigation['reports']['url'] = api_get_path(WEB_CODE_PATH).'reports/index.php';
$navigation['reports']['title'] = get_lang('Reports');
}
// Platform administration
if (api_is_platform_admin(true)) {
//$navigation['platform_admin']['url'] = $rootAdminWeb;
@ -83,4 +90,4 @@ function get_tabs() {
}
return $navigation;
}
?>
?>

@ -113,6 +113,7 @@ define('SECTION_MYGRADEBOOK', 'mygradebook');
define('SECTION_TRACKING','session_my_space');
define('SECTION_SOCIAL', 'social');
define('SECTION_DASHBOARD', 'dashboard');
define('SECTION_REPORTS', 'reports');
// CONSTANT name for local authentication source
define('PLATFORM_AUTH_SOURCE', 'platform');

@ -0,0 +1,36 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Reports
* @author Arnaud Ligot <arnaud@cblue.be>
* @copyrights CBLUE SPRL 2011
* @package chamilo.reports
*/
// name of the language file that needs to be included
$language_file = array ('index', 'tracking', 'userInfo', 'admin', 'gradebook'); // FIXME
$cidReset = true;
// including files
require_once '../inc/global.inc.php';
require_once 'reports.lib.php';
// protect script
api_block_anonymous_users();
// defining constants
// current section
$this_section = SECTION_REPORTS;
// setting the name of the tool
$tool_name=get_lang('Reports');
// Displaying the header
Display::display_header($tool_name);
// Footer
Display::display_footer();
?>
Loading…
Cancel
Save