Added missing menu items, User access report by session refs BT#7013

1.9.x
César Perales 11 years ago
parent a9371944f4
commit fc9bf1a84c
  1. 5
      main/mySpace/index.php
  2. 5
      main/mySpace/myspace.lib.php

@ -158,7 +158,7 @@ echo '<a href="javascript: void(0);" onclick="javascript: window.print()">'.
Display::return_icon('printer.png', get_lang('Print'),'',ICON_SIZE_MEDIUM).'</a>';
echo '</span>';
if (!empty($session_id)) {
if (!empty($session_id) && $display != 'accessoverview') {
echo '<a href="index.php">'.Display::return_icon('back.png', get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>';
if (!api_is_platform_admin()) {
if (api_get_setting('add_users_by_coach') == 'true') {
@ -182,7 +182,7 @@ if (!empty($session_id)) {
// Actions menu
$nb_menu_items = count($menu_items);
if (empty($session_id)) {
if (empty($session_id) || $display == 'accessoverview') {
if ($nb_menu_items > 1) {
foreach ($menu_items as $key => $item) {
echo $item;
@ -193,6 +193,7 @@ if (empty($session_id)) {
$sessionFilter = new FormValidator('course_filter', 'get', '', '', array('class'=> 'form-search'), false);
$url = api_get_path(WEB_AJAX_PATH).'session.ajax.php?a=search_session';
$sessionList = array();
$sessionId = isset($_GET['session_id']) ? $_GET['session_id'] : null;
if (!empty($sessionId)) {
$sessionList = array();
$sessionInfo = SessionManager::fetch($sessionId);

@ -326,11 +326,6 @@ class MySpace {
$track_e_login = Database :: get_main_table(TABLE_STATISTIC_TRACK_E_LOGIN);
$track_e_course_access = Database :: get_main_table(TABLE_STATISTIC_TRACK_E_COURSE_ACCESS);
/*$access_url_id = api_get_current_access_url_id();
if ($_configuration['multiple_access_urls']) {
$condition_multi_url = ", $tbl_url_rel_user as url_user WHERE user.user_id=url_user.user_id AND access_url_id='$access_url_id'";
}*/
global $export_csv;
if ($export_csv)
{

Loading…
Cancel
Save