echo "\t<tr>\t\n\t\t\t\t\t\t\t<td colspan='6'>\n\t\t\t\t\t\t\t\t" . get_lang('NoExercise') . "\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t ";
        }
        ?>
					
					</table>

	<!-- line about other tools -->
			<table class="data_table">
	<tr>
		<td>
			<?php 
        $csv_content[] = array();
        $nb_assignments = Tracking::count_student_assignments($a_infosUser['user_id'], $a_infosCours['code']);
        $messages = Tracking::count_student_messages($a_infosUser['user_id'], $a_infosCours['code']);
        $links = Tracking::count_student_visited_links($a_infosUser['user_id'], $a_infosCours['code']);
        $documents = Tracking::count_student_downloaded_documents($a_infosUser['user_id'], $a_infosCours['code']);
        $chat_last_connection = Tracking::chat_last_connection($a_infosUser['user_id'], $a_infosCours['code']);
        $csv_content[] = array(get_lang('Student_publication'), $nb_assignments);
        $csv_content[] = array(get_lang('Messages'), $messages);
        $csv_content[] = array(get_lang('LinksDetails'), $links);
        $csv_content[] = array(get_lang('DocumentsDetails'), $documents);
        $csv_content[] = array(get_lang('ChatLastConnection'), $chat_last_connection);
        ?>
				<tr>
					<th colspan="2">
						<?php 
        echo get_lang('OtherTools');
        ?>
					</th>
				</tr>
				<tr><!-- assignments -->
Beispiel #2
0
                        $table->setRowAttributes($row, $class, true);
                        $column++;
                        $row++;
                    }
                }
                echo $table->toHtml();
            }
        }
        // line about other tools
        echo '<table class="data_table">';
        $csv_content[] = array();
        $nb_assignments = Tracking::count_student_assignments($student_id, $course_code, $sessionId);
        $messages = Tracking::count_student_messages($student_id, $course_code, $sessionId);
        $links = Tracking::count_student_visited_links($student_id, $info_course['real_id'], $sessionId);
        $chat_last_connection = Tracking::chat_last_connection($student_id, $info_course['real_id'], $sessionId);
        $documents = Tracking::count_student_downloaded_documents($student_id, $info_course['real_id'], $sessionId);
        $uploaded_documents = Tracking::count_student_uploaded_documents($student_id, $course_code, $sessionId);
        $csv_content[] = array(get_lang('OtherTools'));
        $csv_content[] = array(get_lang('Student_publication'), $nb_assignments);
        $csv_content[] = array(get_lang('Messages'), $messages);
        $csv_content[] = array(get_lang('LinksDetails'), $links);
        $csv_content[] = array(get_lang('DocumentsDetails'), $documents);
        $csv_content[] = array(get_lang('UploadedDocuments'), $uploaded_documents);
        $csv_content[] = array(get_lang('ChatLastConnection'), $chat_last_connection);
        ?>
        <tr>
            <th colspan="2"><?php 
        echo get_lang('OtherTools');
        ?>
</th>
        </tr>
                        $table->setRowAttributes($row, $class, true);
                        $column++;
                        $row++;
                    }
                }
                echo $table->toHtml();
            }
        }
        // line about other tools
        echo '<table class="data_table">';
        $csv_content[] = array();
        $nb_assignments = Tracking::count_student_assignments($student_id, $courseId, $session_id);
        $messages = Tracking::count_student_messages($student_id, $courseId, $session_id);
        $links = Tracking::count_student_visited_links($student_id, $courseId, $session_id);
        $chat_last_connection = Tracking::chat_last_connection($student_id, $courseId, $session_id);
        $documents = Tracking::count_student_downloaded_documents($student_id, $courseId, $session_id);
        $uploaded_documents = Tracking::count_student_uploaded_documents($student_id, $courseId, $session_id);
        $csv_content[] = array(get_lang('Student_publication'), $nb_assignments);
        $csv_content[] = array(get_lang('Messages'), $messages);
        $csv_content[] = array(get_lang('LinksDetails'), $links);
        $csv_content[] = array(get_lang('DocumentsDetails'), $documents);
        $csv_content[] = array(get_lang('UploadedDocuments'), $uploaded_documents);
        $csv_content[] = array(get_lang('ChatLastConnection'), $chat_last_connection);
        ?>
		<tr>
			<th colspan="2"><?php 
        echo get_lang('OtherTools');
        ?>
</th>
		</tr>
		<tr><!-- assignments -->