Remove require

1.10.x
Julio Montoya 9 years ago
parent ef2493a7b0
commit a9d9df7654
  1. 6
      main/group/import.php
  2. 5
      main/mySpace/course.php
  3. 2
      main/mySpace/session.php
  4. 1
      main/mySpace/student.php
  5. 23
      main/mySpace/teachers.php
  6. 2
      user_portal.php

@ -13,12 +13,6 @@ if (!api_is_allowed_to_edit(false, true)) {
}
$nameTools = get_lang('Import');
/* Libraries */
include_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';
include_once api_get_path(LIBRARY_PATH).'export.lib.inc.php';
$interbreadcrumb[] = array('url' => 'group.php', 'name' => get_lang('Groups'));
Display::display_header($nameTools, 'Group');

@ -4,15 +4,12 @@
* Courses reporting
* @package chamilo.reporting
*/
/**
* Code
*/
ob_start();
$nameTools = 'Cours';
$cidReset = true;
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'export.lib.inc.php';
$this_section = SECTION_TRACKING;

@ -9,7 +9,7 @@
ob_start();
$cidReset = true;
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'export.lib.inc.php';
api_block_anonymous_users();
$this_section = SECTION_TRACKING;

@ -7,7 +7,6 @@
$cidReset = true;
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'export.lib.inc.php';
$nameTools = get_lang('Students');

@ -4,17 +4,17 @@
* Teacher report
* @package chamilo.reporting
*/
/**
* Code
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'export.lib.inc.php';
$export_csv = isset($_GET['export']) && $_GET['export'] == 'csv' ? true : false;
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$active = isset($_GET['active']) ? intval($_GET['active']) : 1;
$sleepingDays = isset($_GET['sleeping_days']) ? intval($_GET['sleeping_days']) : null;
$nameTools = get_lang('Teachers');
api_block_anonymous_users();
@ -178,7 +178,7 @@ if ($export_csv) {
}
$sort_by_first_name = api_sort_by_first_name();
$actions .= '<div class="actions">';
$actions = '<div class="actions">';
if (api_is_drh()) {
$menu_items = array(
@ -197,9 +197,16 @@ if (api_is_drh()) {
}
}
$actions .= '<span style="float:right">';
$actions .= Display::url(Display::return_icon('printer.png', get_lang('Print'), array(), ICON_SIZE_MEDIUM), 'javascript: void(0);', array('onclick'=>'javascript: window.print();'));
$actions .= Display::url(Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), array(), ICON_SIZE_MEDIUM), api_get_self().'?export=csv&keyword='.$keyword);
$actions .= '&nbsp;<span style="float:right">';
$actions .= Display::url(
Display::return_icon('printer.png', get_lang('Print'), array(), ICON_SIZE_MEDIUM),
'javascript: void(0);',
array('onclick'=>'javascript: window.print();')
);
$actions .= Display::url(
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), array(), ICON_SIZE_MEDIUM),
api_get_self().'?export=csv&keyword='.$keyword
);
$actions .= '</span>';
$actions .= '</div>';

@ -36,8 +36,6 @@ $userId = api_get_user_id();
/* Constants and CONFIGURATION parameters */
$load_dirs = api_get_setting('show_documents_preview');
$displayMyCourseViewBySessionLink = api_get_setting('my_courses_view_by_session') === 'true';
$nameTools = get_lang('MyCourses');
/*

Loading…
Cancel
Save