Exemple #1
0
     // show all : number of 1 is equal to or bigger than number of categories
     // show none : number of 0 is equal to or bigger than number of categories
     echo "<tr>\n                    <td>\n                    [<a href='" . api_get_self() . "?uInfo=" . Security::remove_XSS($uInfo) . "&view=1111111'>" . get_lang('ShowAll') . "</a>]\n                    [<a href='" . api_get_self() . "?uInfo=" . Security::remove_XSS($uInfo) . "&view=0000000'>" . get_lang('ShowNone') . "</a>]" . "</td>\n                </tr>\n            ";
     if (!isset($view)) {
         $view = '0000000';
     }
     //Logins
     TrackingUserLog::display_login_tracking_info($view, $uInfo, $courseId);
     //Exercise results
     TrackingUserLog::display_exercise_tracking_info($view, $uInfo, $courseId);
     //Student publications uploaded
     TrackingUserLog::display_student_publications_tracking_info($view, $uInfo, $courseId);
     //Links usage
     TrackingUserLog::display_links_tracking_info($view, $uInfo, $courseId);
     //Documents downloaded
     TrackingUserLog::display_document_tracking_info($view, $uInfo, $courseId);
 } else {
     echo get_lang('ErrorUserNotInGroup');
 }
 /*
  *		Scorm contents and Learning Path
  */
 if (substr($view, 5, 1) == '1') {
     $new_view = substr_replace($view, '0', 5, 1);
     echo "<tr>\n                        <td valign='top'>\n                        <font     color='#0000FF'>-&nbsp;&nbsp;&nbsp;</font><b>" . get_lang('ScormAccess') . "</b>&nbsp;&nbsp;&nbsp;[<a href='" . api_get_self() . "?view=" . Security::remove_XSS($new_view) . "&uInfo=" . Security::remove_XSS($uInfo) . "'>" . get_lang('Close') . "</a>]&nbsp;&nbsp;&nbsp;[<a href='userLogCSV.php?" . api_get_cidreq() . "&uInfo=" . Security::remove_XSS($_GET['uInfo']) . "&view=000001'>" . get_lang('ExportAsCSV') . "</a>]\n                        </td>\n                </tr>";
     $sql = "SELECT id, name FROM {$tbl_learnpath_main}";
     $result = Database::query($sql);
     $ar = Database::fetch_array($result);
     echo "<tr><td style='padding-left : 40px;padding-right : 40px;'>";
     echo "<table cellpadding='2' cellspacing='1' border='0' align='center'><tr>\n                                    <td class='secLine'>\n                                    &nbsp;" . get_lang('ScormContentColumn') . "&nbsp;\n                                    </td>\n            </tr>";
     if (is_array($ar)) {
Exemple #2
0
     // show all : number of 1 is equal to or bigger than number of categories
     // show none : number of 0 is equal to or bigger than number of categories
     echo "<tr>\n                    <td>\n                    [<a href='" . api_get_self() . "?uInfo=" . Security::remove_XSS($uInfo) . "&view=1111111'>" . get_lang('ShowAll') . "</a>]\n                    [<a href='" . api_get_self() . "?uInfo=" . Security::remove_XSS($uInfo) . "&view=0000000'>" . get_lang('ShowNone') . "</a>]" . "</td>\n                </tr>\n            ";
     if (!isset($view)) {
         $view = '0000000';
     }
     //Logins
     TrackingUserLog::display_login_tracking_info($view, $uInfo, $courseId);
     //Exercise results
     TrackingUserLog::display_exercise_tracking_info($view, $uInfo, $_cid);
     //Student publications uploaded
     TrackingUserLog::display_student_publications_tracking_info($view, $uInfo, $courseId);
     //Links usage
     TrackingUserLog::display_links_tracking_info($view, $uInfo, $_cid);
     //Documents downloaded
     TrackingUserLog::display_document_tracking_info($view, $uInfo, $_cid);
 } else {
     echo get_lang('ErrorUserNotInGroup');
 }
 /*
  *		Scorm contents and Learning Path
  */
 if (substr($view, 5, 1) == '1') {
     $new_view = substr_replace($view, '0', 5, 1);
     echo "<tr>\n                        <td valign='top'>\n                        <font     color='#0000FF'>-&nbsp;&nbsp;&nbsp;</font><b>" . get_lang('ScormAccess') . "</b>&nbsp;&nbsp;&nbsp;[<a href='" . api_get_self() . "?view=" . Security::remove_XSS($new_view) . "&uInfo=" . Security::remove_XSS($uInfo) . "'>" . get_lang('Close') . "</a>]&nbsp;&nbsp;&nbsp;[<a href='userLogCSV.php?" . api_get_cidreq() . "&uInfo=" . Security::remove_XSS($_GET['uInfo']) . "&view=000001'>" . get_lang('ExportAsCSV') . "</a>]\n                        </td>\n                </tr>";
     $sql = "SELECT id, name FROM {$tbl_learnpath_main}";
     $result = Database::query($sql);
     $ar = Database::fetch_array($result);
     echo "<tr><td style='padding-left : 40px;padding-right : 40px;'>";
     echo "<table cellpadding='2' cellspacing='1' border='0' align='center'><tr>\n                                    <td class='secLine'>\n                                    &nbsp;" . get_lang('ScormContentColumn') . "&nbsp;\n                                    </td>\n            </tr>";
     if (is_array($ar)) {