From 6e165ceb7f7f6f8a1eb6a613cfa50f3cd20d9d62 Mon Sep 17 00:00:00 2001 From: Isaac Flores Date: Tue, 23 Dec 2008 22:32:29 +0100 Subject: [PATCH] [svn r17442] style changes - i added links interbreadcrumb - (see FS#3396) --- main/gradebook/gradebook.php | 17 ++++++++++++++--- main/gradebook/gradebook_edit_all.php | 11 +++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/main/gradebook/gradebook.php b/main/gradebook/gradebook.php index 3c7b836c06..8ee6de70e0 100644 --- a/main/gradebook/gradebook.php +++ b/main/gradebook/gradebook.php @@ -28,7 +28,7 @@ $language_file= 'gradebook'; $cidReset= true; $_in_course = false; //make sure the destination for scripts is index.php instead of gradebook.php -require_once ('../inc/global.inc.php'); +require_once '../inc/global.inc.php'; $_SESSION['gradebook_dest'] = 'gradebook.php'; $this_section = SECTION_MYGRADEBOOK; require_once ('lib/be.inc.php'); @@ -401,8 +401,19 @@ if (!isset($_GET['exportpdf']) and !isset($_GET['export_certificate'])) { 'name' => get_lang('Gradebook') ); Display :: display_header(get_lang('SearchResults')); - } else{ - Display :: display_header(get_lang('Gradebook')); + } else { + $interbreadcrumb[]= array ( + 'url' => $_SESSION['gradebook_dest'], + 'name' => get_lang('Gradebook') + ); + + if ((isset($_GET['selectcat']) && $_GET['selectcat']>0)) { + $interbreadcrumb[]= array ( + 'url' => $_SESSION['gradebook_dest'].'?selectcat=0', + 'name' => get_lang('Details') + ); + } + Display :: display_header(''); } } diff --git a/main/gradebook/gradebook_edit_all.php b/main/gradebook/gradebook_edit_all.php index a59a7e8ccf..17c5bff1dd 100755 --- a/main/gradebook/gradebook_edit_all.php +++ b/main/gradebook/gradebook_edit_all.php @@ -46,23 +46,23 @@ if (!api_is_allowed_to_create_course()) { if (!isset($_GET['exportpdf']) and !isset($_GET['export_certificate'])) { if (isset ($_GET['studentoverview'])) { $interbreadcrumb[]= array ( - 'url' => 'gradebook.php?selectcat=' . Security::remove_XSS($_GET['selectcat']), + 'url' => $_SESSION['gradebook_dest'].'?selectcat=' . Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('Gradebook') ); Display :: display_header(get_lang('FlatView')); } elseif (isset ($_GET['search'])) { $interbreadcrumb[]= array ( - 'url' => 'gradebook.php?selectcat=' . Security::remove_XSS($_GET['selectcat']), + 'url' => $_SESSION['gradebook_dest'].'?selectcat=' . Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('Gradebook') ); Display :: display_header(get_lang('SearchResults')); } else { $interbreadcrumb[]= array ( - 'url' => 'index.php?', + 'url' => $_SESSION['gradebook_dest'].'?', 'name' => get_lang('Gradebook')); $interbreadcrumb[]= array ( - 'url' => 'index.php?&selectcat='.Security::remove_XSS($_GET['selectcat']), + 'url' => $_SESSION['gradebook_dest'].'?&selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('Details')); Display :: display_header(''); @@ -162,8 +162,7 @@ if ($my_api_cidreq=='') { $my_api_cidreq='cidReq='.$my_category['course_code']; } ?> -<< - +<<