|
|
|
@ -962,21 +962,27 @@ if (api_get_setting('allow_terms_conditions') === 'true') { |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$nb_assignments = Tracking::count_student_assignments($student_id, $course_code, $sessionId); |
|
|
|
$details = false; |
|
|
|
$messages = Tracking::count_student_messages($student_id, $course_code, $sessionId); |
|
|
|
|
|
|
|
$links = Tracking::count_student_visited_links($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
if(!empty($courseInfo)) { |
|
|
|
$chat_last_connection = Tracking::chat_last_connection($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
$nb_assignments = Tracking::count_student_assignments($student_id, $course_code, $sessionId); |
|
|
|
$documents = Tracking::count_student_downloaded_documents($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
$messages = Tracking::count_student_messages($student_id, $course_code, $sessionId); |
|
|
|
$uploaded_documents = Tracking::count_student_uploaded_documents($student_id, $course_code, $sessionId); |
|
|
|
$links = Tracking::count_student_visited_links($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
|
|
|
|
$chat_last_connection = Tracking::chat_last_connection($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
$userInfo['tools'] = [ |
|
|
|
$documents = Tracking::count_student_downloaded_documents($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
'tasks' => $nb_assignments, |
|
|
|
$uploaded_documents = Tracking::count_student_uploaded_documents($student_id, $course_code, $sessionId); |
|
|
|
'messages' => $messages, |
|
|
|
|
|
|
|
'links' => $links, |
|
|
|
$userInfo['tools'] = [ |
|
|
|
'chat_connection' => $chat_last_connection, |
|
|
|
'tasks' => $nb_assignments, |
|
|
|
'documents' => $documents, |
|
|
|
'messages' => $messages, |
|
|
|
'upload_documents' => $uploaded_documents, |
|
|
|
'links' => $links, |
|
|
|
]; |
|
|
|
'chat_connection' => $chat_last_connection, |
|
|
|
|
|
|
|
'documents' => $documents, |
|
|
|
|
|
|
|
'upload_documents' => $uploaded_documents, |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$details = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$tpl = new Template('', |
|
|
|
$tpl = new Template('', |
|
|
|
false, |
|
|
|
false, |
|
|
|
@ -986,6 +992,7 @@ $tpl = new Template('', |
|
|
|
false, |
|
|
|
false, |
|
|
|
false); |
|
|
|
false); |
|
|
|
$tpl->assign('user', $userInfo); |
|
|
|
$tpl->assign('user', $userInfo); |
|
|
|
|
|
|
|
$tpl->assign('details', $details); |
|
|
|
$templateName = $tpl->get_template('my_space/user_details.tpl'); |
|
|
|
$templateName = $tpl->get_template('my_space/user_details.tpl'); |
|
|
|
$content = $tpl->fetch($templateName); |
|
|
|
$content = $tpl->fetch($templateName); |
|
|
|
|
|
|
|
|
|
|
|
|