From c75cc0b3c8b33911e23271c1c0b2de42ce8d2df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Perales?= Date: Mon, 16 Dec 2013 12:02:24 -0500 Subject: [PATCH] Admin reports: export to excel BT#7017 --- main/mySpace/myspace.lib.php | 56 +++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 14 deletions(-) diff --git a/main/mySpace/myspace.lib.php b/main/mySpace/myspace.lib.php index e54f3a5b4f..e09ecf82da 100644 --- a/main/mySpace/myspace.lib.php +++ b/main/mySpace/myspace.lib.php @@ -317,11 +317,20 @@ class MySpace { $action_links = ''; // jqgrid will use this URL to do the selects $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_session_lp_progress&session_id=' . intval($sessionId); - $table = Display::grid_js('lps', $url, $columns, $column_model, $extra_params, array(), $action_links, true); - - - $return = ''; - $return .= Display::grid_html('lps'); + $tableId = 'lpProgress'; + $table = Display::grid_js($tableId, $url, $columns, $column_model, $extra_params, array(), $action_links, true); + + $return = ''; + $return .= Display::grid_html($tableId); return $return; } /** @@ -372,11 +381,21 @@ class MySpace { $action_links = ''; // jqgrid will use this URL to do the selects $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_exercise_progress&session_id=' . intval($sessionId); - $table = Display::grid_js('lps', $url, $columns, $column_model, $extra_params, array(), $action_links, true); - - $return = ''; - $return .= Display::grid_html('lps'); + $tableId = 'exerciseProgressOverview'; + $table = Display::grid_js($tableId, $url, $columns, $column_model, $extra_params, array(), $action_links, true); + + $return = ''; + $return .= Display::grid_html($tableId); return $return; } /** @@ -486,11 +505,20 @@ class MySpace { $action_links = ''; // jqgrid will use this URL to do the selects $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_session_progress&session_id=' . intval($sessionId); - $table = Display::grid_js('lps', $url, $columns, $column_model, $extra_params, array(), $action_links, true); - - - $return = ''; - $return .= Display::grid_html('lps'); + $tableId = 'progressOverview'; + $table = Display::grid_js($tableId, $url, $columns, $column_model, $extra_params, array(), $action_links, true); + + $return = ''; + $return .= Display::grid_html($tableId); return $return; } /**