Add api_get_cidreq

ofaj
jmontoya 9 years ago
parent 7aa819cf0e
commit 7c169df1d2
  1. 4
      main/gradebook/certificate_report.php
  2. 12
      main/gradebook/gradebook.php
  3. 2
      main/gradebook/gradebook_add_cat.php

@ -1,5 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* List all certificates filtered by session/course and month/year * List all certificates filtered by session/course and month/year
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com> * @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
@ -16,7 +17,7 @@ $this_section = SECTION_TRACKING;
api_block_anonymous_users(); api_block_anonymous_users();
$interbreadcrumb[] = array( $interbreadcrumb[] = array(
"url" => api_get_path(WEB_CODE_PATH) . "mySpace/index.php", "url" => api_get_path(WEB_CODE_PATH) . "mySpace/index.php?".api_get_cidreq(),
"name" => get_lang("MySpace") "name" => get_lang("MySpace")
); );
@ -27,7 +28,6 @@ $selectedYear = isset($_POST['year']) && !empty($_POST['year']) ? trim($_POST['y
$selectedStudent = isset($_POST['student']) && !empty($_POST['student']) ? intval($_POST['student']) : 0; $selectedStudent = isset($_POST['student']) && !empty($_POST['student']) ? intval($_POST['student']) : 0;
$userId = api_get_user_id(); $userId = api_get_user_id();
$sessions = $courses = $months = $students = [0 => get_lang('Select')]; $sessions = $courses = $months = $students = [0 => get_lang('Select')];
if (api_is_student_boss()) { if (api_is_student_boss()) {

@ -370,12 +370,12 @@ if (isset ($_POST['submit']) && isset ($_POST['keyword'])) {
. '&search='.Security::remove_XSS($_POST['keyword'])); . '&search='.Security::remove_XSS($_POST['keyword']));
exit; exit;
} }
// DISPLAY HEADERS AND MESSAGES -
if (!isset($_GET['exportpdf']) and !isset($_GET['export_certificate'])) { // DISPLAY HEADERS AND MESSAGES -
if (!isset($_GET['exportpdf']) && !isset($_GET['export_certificate'])) {
if (isset ($_GET['studentoverview'])) { if (isset ($_GET['studentoverview'])) {
$interbreadcrumb[]= array ( $interbreadcrumb[]= array (
'url' => $_SESSION['gradebook_dest'].'?selectcat=' . Security::remove_XSS($_GET['selectcat']), 'url' => $_SESSION['gradebook_dest'].'?selectcat=' . Security::remove_XSS($_GET['selectcat'].'&'.api_get_cidreq()),
'name' => get_lang('ToolGradebook') 'name' => get_lang('ToolGradebook')
); );
Display :: display_header(get_lang('FlatView')); Display :: display_header(get_lang('FlatView'));
@ -401,13 +401,13 @@ if (!isset($_GET['exportpdf']) and !isset($_GET['export_certificate'])) {
} }
} }
if (isset ($_GET['categorymoved'])) { if (isset($_GET['categorymoved'])) {
Display :: display_confirmation_message(get_lang('CategoryMoved'),false); Display :: display_confirmation_message(get_lang('CategoryMoved'),false);
} }
if (isset ($_GET['evaluationmoved'])) { if (isset($_GET['evaluationmoved'])) {
Display :: display_confirmation_message(get_lang('EvaluationMoved'),false); Display :: display_confirmation_message(get_lang('EvaluationMoved'),false);
} }
if (isset ($_GET['linkmoved'])) { if (isset($_GET['linkmoved'])) {
Display :: display_confirmation_message(get_lang('LinkMoved'),false); Display :: display_confirmation_message(get_lang('LinkMoved'),false);
} }
if (isset ($_GET['addcat'])) { if (isset ($_GET['addcat'])) {

@ -99,7 +99,7 @@ if (!$_in_course) {
'name' => get_lang('Gradebook') 'name' => get_lang('Gradebook')
); );
} }
$interbreadcrumb[]= array( 'url' =>'index.php','name' => get_lang('ToolGradebook')); $interbreadcrumb[] = array('url' => 'index.php?'.api_get_cidreq(), 'name' => get_lang('ToolGradebook'));
Display :: display_header(get_lang('NewCategory')); Display :: display_header(get_lang('NewCategory'));
$display_form = true; $display_form = true;

Loading…
Cancel
Save