Update get_lang calls using full string.

pull/3016/head
Julio Montoya 6 years ago
parent 5182ff7b07
commit 9ba611f951
  1. 20
      main/gradebook/lib/be/category.class.php
  2. 2
      main/inc/ajax/events.ajax.php
  3. 12
      main/mySpace/access_details.php
  4. 30
      main/mySpace/access_details_session.php
  5. 32
      main/mySpace/admin.php
  6. 2
      main/mySpace/admin_view.php
  7. 65
      main/mySpace/coaches.php
  8. 24
      main/mySpace/company_reports.php
  9. 24
      main/mySpace/company_reports_resumed.php
  10. 44
      main/mySpace/course.php
  11. 38
      main/mySpace/current_courses.php
  12. 28
      main/mySpace/exercise_category_report.php
  13. 58
      main/mySpace/index.php
  14. 18
      main/mySpace/lp_tracking.php
  15. 206
      main/mySpace/myStudents.php
  16. 15
      main/mySpace/progression.php
  17. 28
      main/mySpace/session.php
  18. 56
      main/mySpace/student.php
  19. 2
      main/mySpace/survey_report.php
  20. 50
      main/mySpace/teachers.php
  21. 28
      main/mySpace/user_edit.php
  22. 35
      main/mySpace/user_import.php
  23. 60
      main/mySpace/users.php
  24. 24
      main/mySpace/works_in_session_report.php
  25. 2
      main/upload/upload_ppt.php

@ -805,7 +805,7 @@ class Category implements GradebookItem
$res = Database::query($sql);
$option = Database::fetch_array($res, 'ASSOC');
if ($option['num'] >= 1) {
return '&nbsp;&nbsp;<span class="resource-deleted">(&nbsp;'.get_lang('ResourceDeleted').'&nbsp;)</span>';
return '&nbsp;&nbsp;<span class="resource-deleted">(&nbsp;'.get_lang('The resource has been deleted').'&nbsp;)</span>';
} else {
return false;
}
@ -1414,7 +1414,7 @@ class Category implements GradebookItem
$targets = [];
$level = 0;
$root = [0, get_lang('RootCat'), $level];
$root = [0, get_lang('Main folder'), $level];
$targets[] = $root;
if (isset($this->course_code) && !empty($this->course_code)) {
@ -1475,7 +1475,7 @@ class Category implements GradebookItem
{
$targets = [];
$level = 0;
$root = [0, get_lang('RootCat'), $level];
$root = [0, get_lang('Main folder'), $level];
$targets[] = $root;
// course or platform admin
@ -2166,7 +2166,7 @@ class Category implements GradebookItem
if ($userHasSkills) {
return [
'badge_link' => Display::toolbarButton(
get_lang('ExportBadges'),
get_lang('Export badges'),
api_get_path(WEB_CODE_PATH)."gradebook/get_badges.php?user=$user_id",
'external-link'
),
@ -2225,7 +2225,7 @@ class Category implements GradebookItem
if (!empty($fileWasGenerated)) {
$url = api_get_path(WEB_PATH).'certificates/index.php?id='.$my_certificate['id'].'&user_id='.$user_id;
$certificates = Display::toolbarButton(
get_lang('DisplayCertificate'),
get_lang('Display certificate'),
$url,
'eye',
'primary',
@ -2235,7 +2235,7 @@ class Category implements GradebookItem
$exportToPDF = Display::url(
Display::return_icon(
'pdf.png',
get_lang('ExportToPDF'),
get_lang('Export to PDF'),
[],
ICON_SIZE_MEDIUM
),
@ -2257,7 +2257,7 @@ class Category implements GradebookItem
if ($skillToolEnabled && $userHasSkills) {
$html['badge_link'] = Display::toolbarButton(
get_lang('ExportBadges'),
get_lang('Export badges'),
api_get_path(WEB_CODE_PATH)."gradebook/get_badges.php?user=$user_id",
'external-link'
);
@ -2539,7 +2539,7 @@ class Category implements GradebookItem
}
$downloadLink = Display::toolbarButton(
get_lang('DownloadCertificatePdf'),
get_lang('Download certificate in PDF'),
$certificate['pdf_url'],
'file-pdf-o'
);
@ -2548,7 +2548,7 @@ class Category implements GradebookItem
return "
<div class='panel panel-default'>
<div class='panel-body'>
<h3 class='text-center'>".get_lang('NowDownloadYourCertificateClickHere')."</h3>
<h3 class='text-center'>".get_lang('You can now download your certificate by clicking here')."</h3>
<div class='text-center'>$downloadLink $viewLink</div>
</div>
</div>
@ -2627,7 +2627,7 @@ class Category implements GradebookItem
{
$cat = new Category();
$cat->set_id(0);
$cat->set_name(get_lang('RootCat'));
$cat->set_name(get_lang('Main folder'));
$cat->set_description(null);
$cat->set_user_id(0);
$cat->set_course_code(null);

@ -1,5 +1,7 @@
<?php
/* For licensing terms, see /license.txt */
// @deprecated
require_once __DIR__.'/../global.inc.php';
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;

@ -59,8 +59,8 @@ $form->addElement(
);
$form->addElement('hidden', 'student', $user_id);
$form->addElement('hidden', 'course', $course_code);
$form->addRule('from', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('to', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('from', get_lang('Required field'), 'required');
$form->addRule('to', get_lang('Required field'), 'required');
$group = [
$form->createElement(
'label',
@ -103,7 +103,7 @@ function loadGraph() {
$('#cev_cont_stats').html(db.stats);
$('#graph' ).html(db.graph_result);
} else {
$('#messages').text('".get_lang('NoDataAvailable')."');
$('#messages').text('".get_lang('No data available')."');
$('#messages').addClass('warning-message');
$('#cev_cont_stats').html('');
$('#graph').empty();
@ -129,7 +129,7 @@ $(function() {
});
</script>';
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('AccessDetails')];
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('Access details')];
Display::display_header('');
$userInfo = api_get_user_info($user_id);
@ -137,7 +137,7 @@ $result_to_print = '';
$sql_result = MySpace::get_connections_to_course($user_id, $courseInfo);
$result_to_print = convert_to_string($sql_result);
echo Display::page_header(get_lang('DetailsStudentInCourse'));
echo Display::page_header(get_lang('Learner details in course'));
echo Display::page_subheader(
get_lang('User').': '.$userInfo['complete_name'].' - '.get_lang('Course').': '.$courseInfo['title'].' ('.$course_code.')'
);
@ -164,7 +164,7 @@ $form->display();
$foo_stats .= '<strong>'.get_lang('Quantity').' : </strong>'.$rst['times'].'<br />';
echo $foo_stats;
} else {
echo Display::return_message(get_lang('NoDataAvailable'), 'warning');
echo Display::return_message(get_lang('No data available'), 'warning');
}
?>
</div>

@ -77,11 +77,11 @@ $form = new FormValidator(
$form->addElement('text', 'from', get_lang('From'));
$form->addElement('text', 'to', get_lang('Until'));
$form->addElement('hidden', 'user_id', $userId);
$form->addRule('from', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('from', get_lang('ThisFieldIsRequired').' dd/mm/yyyy', 'callback', 'validateDate');
$form->addRule('to', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('to', get_lang('ThisFieldIsRequired').' dd/mm/yyyy', 'callback', 'validateDate');
$form->addButtonSearch(get_lang('GenerateReport'));
$form->addRule('from', get_lang('Required field'), 'required');
$form->addRule('from', get_lang('Required field').' dd/mm/yyyy', 'callback', 'validateDate');
$form->addRule('to', get_lang('Required field'), 'required');
$form->addRule('to', get_lang('Required field').' dd/mm/yyyy', 'callback', 'validateDate');
$form->addButtonSearch(get_lang('Generate report'));
/**
* @param string $value
@ -222,9 +222,9 @@ if ($form->validate()) {
$table = new HTML_Table(['class' => 'data_table']);
$headers = [
get_lang('MinStartDate'),
get_lang('MaxEndDate'),
get_lang('TotalDuration'),
get_lang('First connection'),
get_lang('Last connection'),
get_lang('Total time spent'),
];
$row = 0;
$column = 0;
@ -240,7 +240,7 @@ if ($form->validate()) {
$table->setRowAttributes($row, ['style' => 'font-weight:bold']);
$table->setCellContents($row, $column++, api_format_time($totalDuration, 'js'));
$totalTable = Display::page_subheader3(sprintf(get_lang('ExtractionFromX'), api_get_local_time()));
$totalTable = Display::page_subheader3(sprintf(get_lang('Extraction from %s'), api_get_local_time()));
$totalTable .= $table->toHtml();
$courseSessionTable = '';
@ -250,8 +250,8 @@ if ($form->validate()) {
$courseSessionTable .= Display::page_subheader3($data['name'][$courseId]);
$table = new HTML_Table(['class' => 'data_table']);
$headers = [
get_lang('StartDate'),
get_lang('EndDate'),
get_lang('Start Date'),
get_lang('End Date'),
get_lang('Duration'),
];
$row = 0;
@ -280,7 +280,7 @@ if ($form->validate()) {
$table = new HTML_Table(['class' => 'data_table']);
$headers = [
get_lang('Course'),
get_lang('TotalDuration'),
get_lang('Total time spent'),
];
$row = 0;
$column = 0;
@ -298,7 +298,7 @@ if ($form->validate()) {
$totalCourseSessionTable = $table->toHtml();
$tpl = new Template('', false, false, false, true, false, false);
$tpl->assign('title', get_lang('RealisationCertificate'));
$tpl->assign('title', get_lang('Certificate of achievement'));
$tpl->assign('student', $userInfo['complete_name']);
$tpl->assign('table_progress', $totalTable.$totalCourseSessionTable.'<pagebreak>'.$courseSessionTable);
@ -333,11 +333,11 @@ if ($form->validate()) {
exit;
}
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('AccessDetails')];
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('Access details')];
Display::display_header('');
$userInfo = api_get_user_info($userId);
echo Display::page_header(get_lang('DetailsStudentInCourse'));
echo Display::page_header(get_lang('Learner details in course'));
echo Display::page_subheader(
get_lang('User').': '.$userInfo['complete_name']
);

@ -1,10 +1,10 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Special reporting page for admins.
*
* @package chamilo.reporting
* Special reporting page for admins. *
*/
ob_start();
$cidReset = true;
@ -15,7 +15,7 @@ $this_section = SECTION_TRACKING;
$nameTools = get_lang('Administrators');
api_block_anonymous_users();
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('MySpace')];
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('Reporting')];
Display :: display_header($nameTools);
api_display_tool_title($nameTools);
@ -39,19 +39,19 @@ $sql = "SELECT user.user_id,lastname,firstname,email
$result_admins = Database::query($sql);
if (api_is_western_name_order()) {
echo '<table class="data_table"><tr><th>'.get_lang('FirstName').'</th><th>'.get_lang('LastName').'</th><th>'.get_lang('Email').'</th></tr>';
echo '<table class="data_table"><tr><th>'.get_lang('First name').'</th><th>'.get_lang('Last name').'</th><th>'.get_lang('e-mail').'</th></tr>';
} else {
echo '<table class="data_table"><tr><th>'.get_lang('LastName').'</th><th>'.get_lang('FirstName').'</th><th>'.get_lang('Email').'</th></tr>';
echo '<table class="data_table"><tr><th>'.get_lang('Last name').'</th><th>'.get_lang('First name').'</th><th>'.get_lang('e-mail').'</th></tr>';
}
if (api_is_western_name_order(PERSON_NAME_DATA_EXPORT)) {
$header[] = get_lang('FirstName', '');
$header[] = get_lang('LastName', '');
$header[] = get_lang('First name');
$header[] = get_lang('Last name');
} else {
$header[] = get_lang('LastName', '');
$header[] = get_lang('FirstName', '');
$header[] = get_lang('Last name');
$header[] = get_lang('First name');
}
$header[] = get_lang('Email', '');
$header[] = get_lang('e-mail');
if (Database::num_rows($result_admins) > 0) {
while ($admins = Database::fetch_array($result_admins)) {
@ -64,9 +64,9 @@ if (Database::num_rows($result_admins) > 0) {
$css_class = "row_odd";
if ($i % 20 == 0 && $i != 0) {
if (api_is_western_name_order()) {
echo '<tr><th>'.get_lang('FirstName').'</th><th>'.get_lang('LastName').'</th><th>'.get_lang('Email').'</th></tr>';
echo '<tr><th>'.get_lang('First name').'</th><th>'.get_lang('Last name').'</th><th>'.get_lang('e-mail').'</th></tr>';
} else {
echo '<tr><th>'.get_lang('LastName').'</th><th>'.get_lang('FirstName').'</th><th>'.get_lang('Email').'</th></tr>';
echo '<tr><th>'.get_lang('Last name').'</th><th>'.get_lang('First name').'</th><th>'.get_lang('e-mail').'</th></tr>';
}
}
} else {
@ -92,7 +92,7 @@ if (Database::num_rows($result_admins) > 0) {
}
} else {
// No results
echo '<tr><td colspan="3">'.get_lang('NoResults').'</td></tr>';
echo '<tr><td colspan="3">'.get_lang('No results found').'</td></tr>';
}
echo '</table>';
@ -103,8 +103,8 @@ if (isset($_POST['export'])) {
echo "
<br /><br />
<form method='post' action='admin.php'>
<button type='submit' class='save' name='export' value='".get_lang('ExportExcel')."'>
".get_lang('ExportExcel')."
<button type='submit' class='save' name='export' value='".get_lang('Excel export')."'>
".get_lang('Excel export')."
</button>
<form>
";

@ -15,7 +15,7 @@ $htmlHeadXtra[] = api_get_jqgrid_js();
$this_section = SECTION_TRACKING;
$csv_content = [];
$nameTools = get_lang('MySpace');
$nameTools = get_lang('Reporting');
$allowToTrack = api_is_platform_admin(true, true);
if (!$allowToTrack) {

@ -1,9 +1,8 @@
<?php
/* For licensing terms, see /license.txt */
/*
/**
* Coaches reporting
* @package chamilo.reporting
*/
ob_start();
@ -13,13 +12,13 @@ require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_TRACKING;
$nameTools = get_lang('Tutors');
$nameTools = get_lang('Coaches');
api_block_anonymous_users();
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('MySpace')];
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('Reporting')];
if (isset($_GET["id_student"])) {
$interbreadcrumb[] = ["url" => "student.php", "name" => get_lang('Students')];
$interbreadcrumb[] = ["url" => "student.php", "name" => get_lang('Learners')];
}
Display :: display_header($nameTools);
@ -81,31 +80,31 @@ $result_coachs = Database::query($sql_coachs);
if (api_is_western_name_order()) {
echo '<table class="data_table">
<tr>
<th>'.get_lang('FirstName').'</th>
<th>'.get_lang('LastName').'</th>
<th>'.get_lang('ConnectionTime').'</th>
<th>'.get_lang('AdminCourses').'</th>
<th>'.get_lang('Students').'</th>
<th>'.get_lang('First name').'</th>
<th>'.get_lang('Last name').'</th>
<th>'.get_lang('Connection time').'</th>
<th>'.get_lang('Courses').'</th>
<th>'.get_lang('Learners').'</th>
</tr>';
} else {
echo '<table class="data_table">
<tr>
<th>'.get_lang('LastName').'</th>
<th>'.get_lang('FirstName').'</th>
<th>'.get_lang('ConnectionTime').'</th>
<th>'.get_lang('AdminCourses').'</th>
<th>'.get_lang('Students').'</th>
<th>'.get_lang('Last name').'</th>
<th>'.get_lang('First name').'</th>
<th>'.get_lang('Connection time').'</th>
<th>'.get_lang('Courses').'</th>
<th>'.get_lang('Learners').'</th>
</tr>';
}
if (api_is_western_name_order(PERSON_NAME_DATA_EXPORT)) {
$header[] = get_lang('FirstName', '');
$header[] = get_lang('LastName', '');
$header[] = get_lang('First name');
$header[] = get_lang('Last name');
} else {
$header[] = get_lang('LastName', '');
$header[] = get_lang('FirstName', '');
$header[] = get_lang('Last name');
$header[] = get_lang('First name');
}
$header[] = get_lang('ConnectionTime', '');
$header[] = get_lang('Connection time');
if (Database::num_rows($result_coachs) > 0) {
while ($coachs = Database::fetch_array($result_coachs)) {
@ -148,19 +147,19 @@ if (Database::num_rows($result_coachs) > 0) {
if ($i % 20 == 0 && $i != 0) {
if (api_is_western_name_order()) {
echo '<tr>
<th>'.get_lang('FirstName').'</th>
<th>'.get_lang('LastName').'</th>
<th>'.get_lang('ConnectionTime').'</th>
<th>'.get_lang('AdminCourses').'</th>
<th>'.get_lang('Students').'</th>
<th>'.get_lang('First name').'</th>
<th>'.get_lang('Last name').'</th>
<th>'.get_lang('Connection time').'</th>
<th>'.get_lang('Courses').'</th>
<th>'.get_lang('Learners').'</th>
</tr>';
} else {
echo '<tr>
<th>'.get_lang('LastName').'</th>
<th>'.get_lang('FirstName').'</th>
<th>'.get_lang('ConnectionTime').'</th>
<th>'.get_lang('AdminCourses').'</th>
<th>'.get_lang('Students').'</th>
<th>'.get_lang('Last name').'</th>
<th>'.get_lang('First name').'</th>
<th>'.get_lang('Connection time').'</th>
<th>'.get_lang('Courses').'</th>
<th>'.get_lang('Learners').'</th>
</tr>';
}
}
@ -209,7 +208,7 @@ if (Database::num_rows($result_coachs) > 0) {
}
} else {
// No results
echo '<tr><td colspan="5">'.get_lang("NoResult").'</td></tr>';
echo '<tr><td colspan="5">'.get_lang("There is no result yet").'</td></tr>';
}
echo '</table>';
@ -221,8 +220,8 @@ echo "<br /><br />";
echo "
<br /><br />
<form method='post' action='coaches.php'>
<button type='submit' class='save' name='export' value='".get_lang('ExportExcel')."'>
".get_lang('ExportExcel')."
<button type='submit' class='save' name='export' value='".get_lang('Excel export')."'>
".get_lang('Excel export')."
</button>
<form>
";

@ -14,7 +14,7 @@ if ($userNotAllowed) {
api_not_allowed(true);
}
$interbreadcrumb[] = ['url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('MySpace')];
$interbreadcrumb[] = ['url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('Reporting')];
$tool_name = get_lang('Report');
$this_section = SECTION_TRACKING;
@ -31,11 +31,11 @@ $extra_fields = UserManager::get_extra_fields(0, 100, null, null, true, true);
$columns = [
get_lang('Course'),
get_lang('User'),
get_lang('Email'),
get_lang('ManHours'),
get_lang('CertificateGenerated'),
get_lang('LearnpathsDone'),
get_lang('CourseAdvance'),
get_lang('e-mail'),
get_lang('Man hours'),
get_lang('Generated certificate'),
get_lang('Completed learning paths'),
get_lang('Course progress'),
];
//Column config
@ -99,21 +99,21 @@ $actions = null;
if (api_is_student_boss()) {
$actions .= Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH)."auth/my_progress.php"
);
$actions .= Display::url(
Display::return_icon('user.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH)."mySpace/student.php"
);
$actions .= Display::url(
Display::return_icon("statistics.png", get_lang("CompanyReport"), [], ICON_SIZE_MEDIUM),
Display::return_icon("statistics.png", get_lang("Corporate report"), [], ICON_SIZE_MEDIUM),
"#"
);
$actions .= Display::url(
Display::return_icon(
"certificate_list.png",
get_lang("GradebookSeeListOfStudentsCertificates"),
get_lang("GradebookSeeListOfLearnersCertificates"),
[],
ICON_SIZE_MEDIUM
),
@ -127,14 +127,14 @@ if (!empty($actions)) {
$content .= $actions;
}
$content .= Display::url(
get_lang("CompanyReportResumed"),
get_lang("Corporate reportResumed"),
api_get_path(WEB_CODE_PATH)."mySpace/company_reports_resumed.php",
[
'class' => 'btn btn-success',
]
);
$content .= '</div>';
$content .= '<h1 class="page-header">'.get_lang('CompanyReport').'</h1>';
$content .= '<h1 class="page-header">'.get_lang('Corporate report').'</h1>';
$content .= Display::grid_html('user_course_report');
$tpl = new Template($tool_name);

@ -15,7 +15,7 @@ if ($userNotAllowed) {
api_not_allowed(true);
}
$interbreadcrumb[] = ['url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('MySpace')];
$interbreadcrumb[] = ['url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('Reporting')];
$tool_name = get_lang('Report');
$this_section = SECTION_TRACKING;
@ -30,11 +30,11 @@ $extra_fields = UserManager::get_extra_fields(0, 100, null, null, true, true);
// The order is important you need to check the the $column variable in the model.ajax.php file.
$columns = [
get_lang('Company'),
get_lang('TrainingHoursAccumulated'),
get_lang('CountOfSubscriptions'),
get_lang('CountOfUsers'),
get_lang('AverageHoursPerStudent'),
get_lang('CountCertificates'),
get_lang('Hours of accumulated training'),
get_lang('Subscriptions count'),
get_lang('Users count'),
get_lang('Avg hours/student'),
get_lang('Certificates count'),
];
// Column config.
@ -87,21 +87,21 @@ $actions = null;
if (api_is_student_boss()) {
$actions .= Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH)."auth/my_progress.php"
);
$actions .= Display::url(
Display::return_icon('user.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH)."mySpace/student.php"
);
$actions .= Display::url(
Display::return_icon("statistics.png", get_lang("CompanyReport"), [], ICON_SIZE_MEDIUM),
Display::return_icon("statistics.png", get_lang("Corporate report"), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php"
);
$actions .= Display::url(
Display::return_icon(
"certificate_list.png",
get_lang("GradebookSeeListOfStudentsCertificates"),
get_lang("GradebookSeeListOfLearnersCertificates"),
[],
ICON_SIZE_MEDIUM
),
@ -117,7 +117,7 @@ if (!empty($actions)) {
if (!api_is_student_boss()) {
$content .= Display::url(
get_lang("CompanyReport"),
get_lang("Corporate report"),
api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php",
[
'class' => 'btn btn-success',
@ -126,7 +126,7 @@ if (!api_is_student_boss()) {
}
$content .= '</div>';
$content .= '<h1 class="page-header">'.get_lang('CompanyReportResumed').'</h1>';
$content .= '<h1 class="page-header">'.get_lang('Corporate reportResumed').'</h1>';
$content .= Display::grid_html('user_course_report');
$tpl = new Template($tool_name);

@ -22,18 +22,18 @@ if (!$allowToTrack) {
api_not_allowed(true);
}
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('MySpace')];
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('Reporting')];
if (isset($_GET["id_session"]) && $_GET["id_session"] != "") {
$interbreadcrumb[] = ["url" => "session.php", "name" => get_lang('Sessions')];
$interbreadcrumb[] = ["url" => "session.php", "name" => get_lang('Course sessions')];
}
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] == "coach") {
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Tutors')];
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Coaches')];
}
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] == "student") {
$interbreadcrumb[] = ["url" => "student.php", "name" => get_lang('Students')];
$interbreadcrumb[] = ["url" => "student.php", "name" => get_lang('Learners')];
}
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"])) {
@ -71,15 +71,15 @@ if (api_is_platform_admin(true, true)) {
if (isset($_GET['user_id'])) {
$user_id = intval($_GET['user_id']);
$user_info = api_get_user_info($user_id);
$title = get_lang('AssignedCoursesTo').' '.api_get_person_name($user_info['firstname'], $user_info['lastname']);
$title = get_lang('Courses assigned to').' '.api_get_person_name($user_info['firstname'], $user_info['lastname']);
$courses = CourseManager::get_course_list_of_user_as_course_admin($user_id);
} else {
$title = get_lang('YourCourseList');
$title = get_lang('Your courses');
$courses = CourseManager::get_courses_followed_by_drh(api_get_user_id());
}
} else {
$session_name = api_get_session_name($sessionId);
$title = $session_name.' : '.get_lang('CourseListInSession');
$title = $session_name.' : '.get_lang('Courses in this session');
$courses = Tracking::get_courses_list_from_session($sessionId);
}
@ -87,15 +87,15 @@ if (api_is_platform_admin(true, true)) {
if (!api_is_session_admin()) {
$menu_items[] = Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH)."auth/my_progress.php"
);
$menu_items[] = Display::url(
Display::return_icon('user.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
"index.php?view=drh_students&amp;display=yourstudents"
);
$menu_items[] = Display::url(
Display::return_icon('teacher.png', get_lang('Trainers'), [], ICON_SIZE_MEDIUM),
Display::return_icon('teacher.png', get_lang('Teachers'), [], ICON_SIZE_MEDIUM),
'teachers.php'
);
$menu_items[] = Display::url(
@ -103,12 +103,12 @@ if (api_is_platform_admin(true, true)) {
'#'
);
$menu_items[] = Display::url(
Display::return_icon('session.png', get_lang('Sessions'), [], ICON_SIZE_MEDIUM),
Display::return_icon('session.png', get_lang('Course sessions'), [], ICON_SIZE_MEDIUM),
'session.php'
);
if (api_can_login_as($user_id)) {
$link = '<a href="'.api_get_path(WEB_CODE_PATH).'admin/user_list.php?action=login_as&amp;user_id='.$user_id.'&amp;sec_token='.Security::get_existing_token().'">'.
Display::return_icon('login_as.png', get_lang('LoginAs'), null, ICON_SIZE_MEDIUM).'</a>&nbsp;&nbsp;';
Display::return_icon('login_as.png', get_lang('Login as'), null, ICON_SIZE_MEDIUM).'</a>&nbsp;&nbsp;';
$menu_items[] = $link;
}
}
@ -137,7 +137,7 @@ if (api_is_platform_admin(true, true)) {
if ($showImportIcon) {
echo "<div align=\"right\">";
echo '<a href="user_import.php?id_session='.$sessionId.'&action=export&amp;type=xml">'.
Display::return_icon('excel.gif', get_lang('ImportUserListXMLCSV')).'&nbsp;'.get_lang('ImportUserListXMLCSV').'</a>';
Display::return_icon('excel.gif', get_lang('Import users list')).'&nbsp;'.get_lang('Import users list').'</a>';
echo "</div><br />";
}
@ -314,7 +314,7 @@ function get_courses($from, $limit, $column, $direction)
$tematic_advance = $thematic->get_total_average_of_thematic_advances($courseCode, $sessionId);
$tematicAdvanceProgress = '-';
if (!empty($tematic_advance)) {
$tematicAdvanceProgress = '<a title="'.get_lang('GoToThematicAdvance').'" href="'.api_get_path(WEB_CODE_PATH).'course_progress/index.php?cidReq='.$courseCode.'&id_session='.$sessionId.'">'.
$tematicAdvanceProgress = '<a title="'.get_lang('Go to thematic advance').'" href="'.api_get_path(WEB_CODE_PATH).'course_progress/index.php?cidReq='.$courseCode.'&id_session='.$sessionId.'">'.
$tematic_advance.'%</a>';
}
@ -357,14 +357,14 @@ $table = new SortableTable(
10
);
$table->set_header(0, get_lang('CourseTitle'), false);
$table->set_header(1, get_lang('NbStudents'), false);
$table->set_header(2, get_lang('TimeSpentInTheCourse').Display::return_icon('info.png', get_lang('TimeOfActiveByTraining'), ['align' => 'absmiddle', 'hspace' => '3px']), false);
$table->set_header(3, get_lang('ThematicAdvance'), false);
$table->set_header(4, get_lang('AvgStudentsProgress').Display::return_icon('info.png', get_lang('AvgAllUsersInAllCourses'), ['align' => 'absmiddle', 'hspace' => '3px']), false);
$table->set_header(5, get_lang('AvgCourseScore').Display::return_icon('info.png', get_lang('AvgAllUsersInAllCourses'), ['align' => 'absmiddle', 'hspace' => '3px']), false);
$table->set_header(6, get_lang('AvgMessages'), false);
$table->set_header(7, get_lang('AvgAssignments'), false);
$table->set_header(0, get_lang('Course title'), false);
$table->set_header(1, get_lang('NbLearners'), false);
$table->set_header(2, get_lang('Time spent in the course').Display::return_icon('info.png', get_lang('Time in course'), ['align' => 'absmiddle', 'hspace' => '3px']), false);
$table->set_header(3, get_lang('Thematic advance'), false);
$table->set_header(4, get_lang('AvgLearnersProgress').Display::return_icon('info.png', get_lang('Average of all learners in all courses'), ['align' => 'absmiddle', 'hspace' => '3px']), false);
$table->set_header(5, get_lang('Average score in learning paths').Display::return_icon('info.png', get_lang('Average of all learners in all courses'), ['align' => 'absmiddle', 'hspace' => '3px']), false);
$table->set_header(6, get_lang('Messages per learner'), false);
$table->set_header(7, get_lang('Assignments'), false);
$table->set_header(8, get_lang('Attendances'), false);
$table->set_header(9, get_lang('Details'), false);

@ -192,23 +192,23 @@ if (!empty($my_courses)) {
}
$headers = [
get_lang('LearningPath'),
get_lang('Teachers'),
get_lang('Learning paths'),
get_lang('Trainers'),
get_lang('Courses'),
get_lang('NumberOfStudents'),
get_lang('NumberStudentsAccessingCourse'),
get_lang('PercentageStudentsAccessingCourse'),
get_lang('NumberStudentsCompleteAllActivities'),
get_lang('PercentageStudentsCompleteAllActivities'),
get_lang('AverageOfActivitiesCompletedPerStudent'),
get_lang('TotalTimeSpentInTheCourse'),
get_lang('AverageTimePerStudentInCourse'),
get_lang('NumberOfDocumentsInLearnpath'),
get_lang('NumberOfExercisesInLearnpath'),
get_lang('NumberOfLinksInLearnpath'),
get_lang('NumberOfForumsInLearnpath'),
get_lang('NumberOfAssignmentsInLearnpath'),
get_lang('NumberOfAnnouncementsInCourse'),
get_lang('Number of learners'),
get_lang('Number of learners accessing the course'),
get_lang('Percentage of learners accessing the course'),
get_lang('Number of learners who completed all activities (100% progress)'),
get_lang('Percentage of learners who completed all activities (100% progress)'),
get_lang('Average number of activities completed per learner'),
get_lang('Total time spent in the course'),
get_lang('Average time spent per learner in the course'),
get_lang('Number of documents in learning path'),
get_lang('Number of exercises in learning path'),
get_lang('Number of links in learning path'),
get_lang('Number of forums in learning path'),
get_lang('Number of assignments in learning path'),
get_lang('Number of announcements in course'),
];
if (isset($_GET['export'])) {
@ -220,8 +220,8 @@ if (isset($_GET['export'])) {
exit;
}
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('MySpace')];
Display::display_header(get_lang('CurrentCourses'));
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Reporting')];
Display::display_header(get_lang('Current courses'));
$table = new HTML_Table(['class' => 'data_table']);
$row = 0;
@ -245,7 +245,7 @@ foreach ($array as $row_table) {
echo '<div class="actions">';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace">'.Display::return_icon('back.png', get_lang('Back'), [], 32).'</a>';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/current_courses.php?export=1">'.Display::return_icon('export_excel.png', get_lang('CurrentCoursesReport'), [], 32).'</a> ';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/current_courses.php?export=1">'.Display::return_icon('export_excel.png', get_lang('Current coursesReport'), [], 32).'</a> ';
echo '</div>';
echo '<div style="overflow:auto;">';
echo $table->toHtml();

@ -13,7 +13,7 @@ $exportCSV = isset($_GET['export']) && $_GET['export'] === 'csv' ? true : false;
$this_section = SECTION_TRACKING;
$csv_content = [];
$nameTools = get_lang('MySpace');
$nameTools = get_lang('Reporting');
$is_platform_admin = api_is_platform_admin();
$is_drh = api_is_drh();
@ -40,7 +40,7 @@ $(function() {
</script>';
$form = new FormValidator('exercise', 'get');
$form->addDatePicker('start_date', get_lang('StartDate'));
$form->addDatePicker('start_date', get_lang('Start Date'));
if (empty($courseId)) {
$form->addSelectAjax(
'course_id',
@ -72,12 +72,12 @@ if (empty($courseId)) {
foreach ($exerciseList as $exercise) {
$options[$exercise['id']] = $exercise['title'];
}
$form->addSelect('exercise_id', get_lang('Exercises'), $options);
$form->addSelect('exercise_id', get_lang('Tests'), $options);
} else {
$form->addLabel(get_lang('Exercises'), Display::return_message(get_lang('NoExercises')));
$form->addLabel(get_lang('Tests'), Display::return_message(get_lang('NoTests')));
}
} else {
Display::addFlash(Display::return_message(get_lang('CourseDoesNotExist'), 'warning'));
Display::addFlash(Display::return_message(get_lang('This course doesn\'t exist'), 'warning'));
}
}
@ -102,9 +102,9 @@ if ($form->validate() && !empty($courseInfo)) {
$categoryList = TestCategory::getListOfCategoriesIDForTest($exerciseId, $courseId);
$columns = [
get_lang('FirstName'),
get_lang('LastName'),
get_lang('LoginName'),
get_lang('First name'),
get_lang('Last name'),
get_lang('Login'),
];
if (!empty($extraFields) && isset($extraFields['fields'])) {
@ -118,8 +118,8 @@ if ($form->validate() && !empty($courseInfo)) {
}
$columns[] = get_lang('Session');
$columns[] = get_lang('SessionStartDate');
$columns[] = get_lang('StartDate');
$columns[] = get_lang('SessionStart Date');
$columns[] = get_lang('Start Date');
$columns[] = get_lang('Score');
if (!empty($categoryList)) {
@ -127,7 +127,7 @@ if ($form->validate() && !empty($courseInfo)) {
$columns[] = $categoryInfo['title'];
}
}
$columns[] = get_lang('Actions');
$columns[] = get_lang('Detail');
$columnModel = [
['name' => 'firstname', 'index' => 'firstname', 'width' => '50', 'align' => 'left', 'search' => 'true'],
@ -221,7 +221,7 @@ if ($form->validate() && !empty($courseInfo)) {
// add username as title in lastname filed - ref 4226
function action_formatter(cellvalue, options, rowObject) {
// rowObject is firstname,lastname,login,... get the third word
var loginx = "'.api_htmlentities(sprintf(get_lang("LoginX"), ":::"), ENT_QUOTES).'";
var loginx = "'.api_htmlentities(sprintf(get_lang("Login: %s"), ":::"), ENT_QUOTES).'";
var tabLoginx = loginx.split(/:::/);
// tabLoginx[0] is before and tabLoginx[1] is after :::
// may be empty string but is defined
@ -266,7 +266,7 @@ if ($form->validate() && !empty($courseInfo)) {
jQuery("#'.$tableId.'").jqGrid("navButtonAdd","#'.$tableId.'_pager",{
caption: "",
title:"'.get_lang('ExportExcel').'",
title:"'.get_lang('Excel export').'",
onClickButton : function() {
jQuery("#'.$tableId.'").jqGrid(
"excelExport",{
@ -281,7 +281,7 @@ if ($form->validate() && !empty($courseInfo)) {
[
'url' => ' ',
'url_attributes' => ['id' => 'excel_export'],
'content' => Display::return_icon('export_excel.png', get_lang('ExportExcel')),
'content' => Display::return_icon('export_excel.png', get_lang('Excel export')),
],
];

@ -21,7 +21,7 @@ $htmlHeadXtra[] = '<script type="text/javascript" src="'.api_get_path(WEB_PUBLIC
$this_section = SECTION_TRACKING;
ob_start();
$nameTools = get_lang('MySpace');
$nameTools = get_lang('Reporting');
$export_csv = isset($_GET['export']) && $_GET['export'] === 'csv' ? true : false;
$display = isset($_GET['display']) ? Security::remove_XSS($_GET['display']) : null;
$csv_content = [];
@ -65,49 +65,49 @@ $calendarMenuAdded = false;
if ($is_platform_admin) {
if ($view == 'admin') {
$menu_items[] = Display::url(
Display::return_icon('teacher.png', get_lang('TeacherInterface'), [], ICON_SIZE_MEDIUM),
Display::return_icon('teacher.png', get_lang('Trainer View'), [], ICON_SIZE_MEDIUM),
api_get_self().'?view=teacher'
);
$menu_items[] = Display::url(
Display::return_icon('star_na.png', get_lang('AdminInterface'), [], ICON_SIZE_MEDIUM),
Display::return_icon('star_na.png', get_lang('Admin view'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'mySpace/admin_view.php'
);
$menu_items[] = Display::url(
Display::return_icon('quiz.png', get_lang('ExamTracking'), [], ICON_SIZE_MEDIUM),
Display::return_icon('quiz.png', get_lang('Exam tracking'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'tracking/exams.php'
);
$menu_items[] = Display::url(
Display::return_icon('statistics.png', get_lang('CurrentCoursesReport'), [], ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('Current courses report'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'mySpace/current_courses.php'
);
} else {
$menu_items[] = Display::url(
Display::return_icon(
'teacher_na.png',
get_lang('TeacherInterface'),
get_lang('Trainer View'),
[],
ICON_SIZE_MEDIUM
),
''
);
$menu_items[] = Display::url(
Display::return_icon('star.png', get_lang('AdminInterface'), [], ICON_SIZE_MEDIUM),
Display::return_icon('star.png', get_lang('Admin view'), [], ICON_SIZE_MEDIUM),
//api_get_path(WEB_CODE_PATH).'tracking/course_session_report.php?view=admin'
api_get_path(WEB_CODE_PATH).'mySpace/admin_view.php'
);
$menu_items[] = Display::url(
Display::return_icon('quiz.png', get_lang('ExamTracking'), [], ICON_SIZE_MEDIUM),
Display::return_icon('quiz.png', get_lang('Exam tracking'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'tracking/exams.php'
);
$menu_items[] = Display::url(
Display::return_icon('statistics.png', get_lang('CurrentCoursesReport'), [], ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('Current courses report'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'mySpace/current_courses.php'
);
if ($pluginCalendar) {
$lpCalendar = LearningCalendarPlugin::create();
$menu_items[] = Display::url(
Display::return_icon('agenda.png', $lpCalendar->get_lang('LearningCalendar'), [], ICON_SIZE_MEDIUM),
Display::return_icon('agenda.png', $lpCalendar->get_lang('Learning calendar'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_PLUGIN_PATH).'learning_calendar/start.php'
);
$calendarMenuAdded = true;
@ -118,11 +118,11 @@ if ($is_platform_admin) {
if ($is_drh) {
$view = 'drh';
$menu_items[] = Display::url(
Display::return_icon('user_na.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user_na.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
'#'
);
$menu_items[] = Display::url(
Display::return_icon('teacher.png', get_lang('Trainers'), [], ICON_SIZE_MEDIUM),
Display::return_icon('teacher.png', get_lang('Teachers'), [], ICON_SIZE_MEDIUM),
'teachers.php'
);
$menu_items[] = Display::url(
@ -130,15 +130,15 @@ if ($is_drh) {
'course.php'
);
$menu_items[] = Display::url(
Display::return_icon('session.png', get_lang('Sessions'), [], ICON_SIZE_MEDIUM),
Display::return_icon('session.png', get_lang('Course sessions'), [], ICON_SIZE_MEDIUM),
'session.php'
);
$menu_items[] = Display::url(
Display::return_icon('empty_evaluation.png', get_lang('CompanyReport'), [], ICON_SIZE_MEDIUM),
Display::return_icon('empty_evaluation.png', get_lang('Corporate report'), [], ICON_SIZE_MEDIUM),
'company_reports.php'
);
$menu_items[] = Display::url(
Display::return_icon('evaluation_rate.png', get_lang('CompanyReportResumed'), [], ICON_SIZE_MEDIUM),
Display::return_icon('evaluation_rate.png', get_lang('Corporate reportResumed'), [], ICON_SIZE_MEDIUM),
'company_reports_resumed.php'
);
}
@ -149,7 +149,7 @@ if ($display == 'useroverview' || $display == 'sessionoverview' || $display == '
$actionsRight .= Display::url(
Display::return_icon(
'export_csv.png',
get_lang('ExportAsCSV'),
get_lang('CSV export'),
null,
ICON_SIZE_MEDIUM
),
@ -189,7 +189,7 @@ if (!empty($session_id) &&
$actionsLeft .= Display::url(
Display::return_icon(
'excel.png',
get_lang('ImportUserList'),
get_lang('Import list of users'),
null,
ICON_SIZE_MEDIUM
),
@ -201,7 +201,7 @@ if (!empty($session_id) &&
Display::url(
Display::return_icon(
'excel.png',
get_lang('ImportUserList'),
get_lang('Import list of users'),
null,
ICON_SIZE_MEDIUM
),
@ -212,7 +212,7 @@ if (!empty($session_id) &&
$actionsLeft .= Display::url(
Display::return_icon(
'statistics.png',
get_lang('MyStats'),
get_lang('View my progress'),
null,
ICON_SIZE_MEDIUM
),
@ -222,7 +222,7 @@ if (!empty($session_id) &&
if ($pluginCalendar && api_is_teacher() && $calendarMenuAdded === false) {
$lpCalendar = LearningCalendarPlugin::create();
$actionsLeft .= Display::url(
Display::return_icon('agenda.png', $lpCalendar->get_lang('LearningCalendar'), [], ICON_SIZE_MEDIUM),
Display::return_icon('agenda.png', $lpCalendar->get_lang('Learning calendar'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_PLUGIN_PATH).'learning_calendar/start.php'
);
}
@ -231,7 +231,7 @@ if (!empty($session_id) &&
$actionsLeft .= Display::url(
Display::return_icon(
"certificate_list.png",
get_lang('GradebookSeeListOfStudentsCertificates'),
get_lang('GradebookSeeListOfLearnersCertificates'),
null,
ICON_SIZE_MEDIUM
),
@ -328,24 +328,24 @@ if ($skipData === false) {
if ($export_csv) {
//csv part
$csv_content[] = [get_lang('Students')];
$csv_content[] = [get_lang('InactivesStudents'), $nb_inactive_students];
$csv_content[] = [get_lang('AverageTimeSpentOnThePlatform'), $totalTimeSpent];
$csv_content[] = [get_lang('AverageCoursePerStudent'), round($avg_courses_per_student, 3)];
$csv_content[] = [get_lang('Learners')];
$csv_content[] = [get_lang('InactivesLearners'), $nb_inactive_students];
$csv_content[] = [get_lang('Time spent on portal'), $totalTimeSpent];
$csv_content[] = [get_lang('Average number of courses to which my learners are subscribed'), round($avg_courses_per_student, 3)];
$csv_content[] = [
get_lang('AverageProgressInLearnpath'),
get_lang('Progress in courses'),
is_null($avgTotalProgress)
? null
: round($avgTotalProgress, 2).'%',
];
$csv_content[] = [
get_lang('AverageResultsToTheExercices'),
get_lang('Tests score'),
is_null($averageScore)
? null
: round($averageScore, 2).'%',
];
$csv_content[] = [get_lang('AveragePostsInForum'), $posts];
$csv_content[] = [get_lang('AverageAssignments'), $numberAssignments];
$csv_content[] = [get_lang('Posts in forum'), $posts];
$csv_content[] = [get_lang('Average assignments per learner'), $numberAssignments];
$csv_content[] = [];
} else {
$lastConnectionDate = api_get_utc_datetime(strtotime('15 days ago'));

@ -59,20 +59,20 @@ if ($origin === 'user_course') {
} elseif ($origin === 'tracking_course') {
$interbreadcrumb[] = [
'url' => "../tracking/courseLog.php?cidReq=$courseCode&id_session=$session_id",
'name' => get_lang('Tracking'),
'name' => get_lang('Reporting'),
];
} else {
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('MySpace')];
$interbreadcrumb[] = ['url' => 'student.php', 'name' => get_lang('MyStudents')];
$interbreadcrumb[] = ['url' => "myStudents.php?student=$user_id", 'name' => get_lang('StudentDetails')];
$nameTools = get_lang('DetailsStudentInCourse');
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Reporting')];
$interbreadcrumb[] = ['url' => 'student.php', 'name' => get_lang('My learners')];
$interbreadcrumb[] = ['url' => "myStudents.php?student=$user_id", 'name' => get_lang('Learner details')];
$nameTools = get_lang('Learner details in course');
}
$interbreadcrumb[] = [
'url' => "myStudents.php?student=$user_id&course=$courseCode&details=true&origin=$origin",
'name' => get_lang('DetailsStudentInCourse'),
'name' => get_lang('Learner details in course'),
];
$nameTools = get_lang('LearningPathDetails');
$nameTools = get_lang('Learnpath details');
$sql = 'SELECT name FROM '.Database::get_course_table(TABLE_LP_MAIN).'
WHERE c_id = '.$courseInfo['real_id'].' AND id='.$lp_id;
$rs = Database::query($sql);
@ -283,7 +283,7 @@ $actions[] = Display::url(
'javascript:window.print();'
);
$actions[] = Display::url(
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM),
Display::return_icon('export_csv.png', get_lang('CSV export'), '', ICON_SIZE_MEDIUM),
api_get_self().'?export=csv&'.Security::remove_XSS($_SERVER['QUERY_STRING'])
);
@ -301,7 +301,7 @@ $table_title .= Display::return_icon('course.png', get_lang('Course')).PHP_EOL.$
echo Display::page_header($table_title);
echo Display::page_subheader(
Display::return_icon('learnpath.png', get_lang('ToolLearnpath')).PHP_EOL.$lp_title
Display::return_icon('learnpath.png', get_lang('Learning path')).PHP_EOL.$lp_title
);
echo $output;
Display::display_footer();

@ -4,15 +4,15 @@
use Chamilo\CourseBundle\Entity\CLpCategory;
use ChamiloSession as Session;
if (!isset($_GET['course'])) {
$cidReset = true;
}
/**
* Implements the tracking of students in the Reporting pages.
*
* @package chamilo.reporting
*/
if (!isset($_GET['course'])) {
$cidReset = true;
}
require_once __DIR__.'/../inc/global.inc.php';
api_block_anonymous_users();
@ -105,7 +105,7 @@ if (isset($_GET['from']) && $_GET['from'] === 'myspace') {
$this_section = SECTION_TRACKING;
}
$nameTools = get_lang('StudentDetails');
$nameTools = get_lang('Learner details');
if (!empty($details)) {
if ($origin === 'user_course') {
@ -123,84 +123,84 @@ if (!empty($details)) {
if ($origin === 'tracking_course') {
$interbreadcrumb[] = [
'url' => '../tracking/courseLog.php?cidReq='.$course_code.'&id_session='.api_get_session_id(),
'name' => get_lang('Tracking'),
'name' => get_lang('Reporting'),
];
} else {
if ($origin === 'resume_session') {
$interbreadcrumb[] = [
'url' => "../session/session_list.php",
'name' => get_lang('SessionList'),
'name' => get_lang('Session list'),
];
$interbreadcrumb[] = [
'url' => '../session/resume_session.php?id_session='.$sessionId,
'name' => get_lang('SessionOverview'),
'name' => get_lang('Session overview'),
];
} else {
$interbreadcrumb[] = [
'url' => api_is_student_boss() ? '#' : 'index.php',
'name' => get_lang('MySpace'),
'name' => get_lang('Reporting'),
];
if (!empty($coachId)) {
$interbreadcrumb[] = [
'url' => 'student.php?id_coach='.$coachId,
'name' => get_lang('CoachStudents'),
'name' => get_lang('Learners of trainer'),
];
$interbreadcrumb[] = [
'url' => 'myStudents.php?student='.$student_id.'&id_coach='.$coachId,
'name' => get_lang('StudentDetails'),
'name' => get_lang('Learner details'),
];
} else {
$interbreadcrumb[] = [
'url' => 'student.php',
'name' => get_lang('MyStudents'),
'name' => get_lang('My learners'),
];
$interbreadcrumb[] = [
'url' => 'myStudents.php?student='.$student_id,
'name' => get_lang('StudentDetails'),
'name' => get_lang('Learner details'),
];
}
}
}
}
$nameTools = get_lang('DetailsStudentInCourse');
$nameTools = get_lang('Learner details in course');
} else {
if ($origin === 'resume_session') {
$interbreadcrumb[] = [
'url' => '../session/session_list.php',
'name' => get_lang('SessionList'),
'name' => get_lang('Session list'),
];
if (!empty($sessionId)) {
$interbreadcrumb[] = [
'url' => '../session/resume_session.php?id_session='.$sessionId,
'name' => get_lang('SessionOverview'),
'name' => get_lang('Session overview'),
];
}
} elseif ($origin === 'teacher_details') {
$this_section = SECTION_TRACKING;
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('MySpace')];
$interbreadcrumb[] = ['url' => 'teachers.php', 'name' => get_lang('Teachers')];
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Reporting')];
$interbreadcrumb[] = ['url' => 'teachers.php', 'name' => get_lang('Trainers')];
$nameTools = $user_info['complete_name'];
} else {
$interbreadcrumb[] = [
'url' => api_is_student_boss() ? '#' : 'index.php',
'name' => get_lang('MySpace'),
'name' => get_lang('Reporting'),
];
if (!empty($coachId)) {
if ($sessionId) {
$interbreadcrumb[] = [
'url' => 'student.php?id_coach='.$coachId.'&id_session='.$sessionId,
'name' => get_lang('CoachStudents'),
'name' => get_lang('Learners of trainer'),
];
} else {
$interbreadcrumb[] = [
'url' => 'student.php?id_coach='.$coachId,
'name' => get_lang('CoachStudents'),
'name' => get_lang('Learners of trainer'),
];
}
} else {
$interbreadcrumb[] = [
'url' => 'student.php',
'name' => get_lang('MyStudents'),
'name' => get_lang('My learners'),
];
}
}
@ -250,11 +250,11 @@ switch ($action) {
$column = 0;
$row = 0;
$headers = [
get_lang('TimeSpent'),
get_lang('NumberOfVisits'),
get_lang('GlobalProgress'),
get_lang('FirstLogin'),
get_lang('LastConnexionDate'),
get_lang('Time spent'),
get_lang('Number of visits'),
get_lang('Global progress'),
get_lang('First connection'),
get_lang('Last connexion date'),
];
foreach ($headers as $header) {
@ -273,8 +273,8 @@ switch ($action) {
$courseTable .= '<table class="data_table">';
$courseTable .= '<thead>';
$courseTable .= '<tr>
<th>'.get_lang('FormationUnit').'</th>
<th>'.get_lang('ConnectionTime').'</th>
<th>'.get_lang('Formation unit').'</th>
<th>'.get_lang('Connection time').'</th>
<th>'.get_lang('Progress').'</th>
<th>'.get_lang('Score').'</th>
</tr>';
@ -369,12 +369,12 @@ switch ($action) {
$studentInfo = api_get_user_info($student_id);
$tpl = new Template('', false, false, false, true, false, false);
$tpl->assign('title', get_lang('AttestationOfAttendance'));
$tpl->assign('title', get_lang('Attestation of attendance'));
$tpl->assign('session_title', $sessionInfo['name']);
$tpl->assign('student', $studentInfo['complete_name']);
$tpl->assign('table_progress', $table->toHtml());
$tpl->assign('subtitle', sprintf(
get_lang('InSessionXYouHadTheFollowingResults'),
get_lang('In session %s, you had the following results'),
$sessionInfo['name']
));
$tpl->assign('table_course', $courseTable);
@ -459,9 +459,9 @@ switch ($action) {
foreach ($bossList as $boss) {
MessageManager::send_message_simple(
$boss['boss_id'],
sprintf(get_lang('BossAlertMsgSentToUserXTitle'), $user_info['complete_name']),
sprintf(get_lang('Follow up message about student %s'), $user_info['complete_name']),
sprintf(
get_lang('BossAlertUserXSentMessageToUserYWithLinkZ'),
get_lang('Hi,<br/><br/>'),
$currentUserInfo['complete_name'],
$user_info['complete_name'],
$link
@ -470,7 +470,7 @@ switch ($action) {
}
}
Display::addFlash(Display::return_message(get_lang('MessageSent')));
Display::addFlash(Display::return_message(get_lang('Message Sent')));
header('Location: '.$currentUrl);
exit;
}
@ -493,9 +493,9 @@ switch ($action) {
case 'send_legal':
$isBoss = UserManager::userIsBossOfStudent(api_get_user_id(), $student_id);
if ($isBoss || api_is_platform_admin()) {
$subject = get_lang('SendLegalSubject');
$subject = get_lang('Legal conditions');
$content = sprintf(
get_lang('SendTermsDescriptionToUrlX'),
get_lang('Hello,<br />Your tutor sent you your terms and conditions. You can sign it following this URL: %s'),
api_get_path(WEB_PATH)
);
MessageManager::send_message_simple($student_id, $subject, $content);
@ -534,7 +534,7 @@ switch ($action) {
// @todo delete the stats.track_e_exercises records.
// First implement this http://support.chamilo.org/issues/1334
Display::addFlash(Display::return_message(get_lang('LPWasReset'), 'success'));
Display::addFlash(Display::return_message(get_lang('Learning path was reset for the learner'), 'success'));
Security::clear_token();
}
break;
@ -658,28 +658,28 @@ echo '<a href="javascript: void(0);" onclick="javascript: window.print();">'
.Display::return_icon('printer.png', get_lang('Print'), '', ICON_SIZE_MEDIUM).'</a>';
echo '<a href="'.api_get_self().'?'.Security::remove_XSS($_SERVER['QUERY_STRING']).'&export=csv">'
.Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM).'</a> ';
.Display::return_icon('export_csv.png', get_lang('CSV export'), '', ICON_SIZE_MEDIUM).'</a> ';
echo '<a href="'.api_get_self().'?'.Security::remove_XSS($_SERVER['QUERY_STRING']).'&export=xls">'
.Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).'</a> ';
.Display::return_icon('export_excel.png', get_lang('Excel export'), '', ICON_SIZE_MEDIUM).'</a> ';
echo Display::url(
Display::return_icon('attendance.png', get_lang('AccessDetails'), '', ICON_SIZE_MEDIUM),
Display::return_icon('attendance.png', get_lang('Access details'), '', ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'mySpace/access_details_session.php?user_id='.$student_id
);
if (!empty($user_info['email'])) {
$send_mail = '<a href="mailto:'.$user_info['email'].'">'.
Display::return_icon('mail_send.png', get_lang('SendMail'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('mail_send.png', get_lang('Send message mail'), '', ICON_SIZE_MEDIUM).'</a>';
} else {
$send_mail = Display::return_icon('mail_send_na.png', get_lang('SendMail'), '', ICON_SIZE_MEDIUM);
$send_mail = Display::return_icon('mail_send_na.png', get_lang('Send message mail'), '', ICON_SIZE_MEDIUM);
}
echo $send_mail;
if (!empty($student_id) && !empty($course_code)) {
// Only show link to connection details if course and student were defined in the URL
echo '<a href="access_details.php?student='.$student_id.'&course='.$course_code.'&origin='.$origin.'&cidReq='
.$course_code.'&id_session='.$sessionId.'">'
.Display::return_icon('statistics.png', get_lang('AccessDetails'), '', ICON_SIZE_MEDIUM)
.Display::return_icon('statistics.png', get_lang('Access details'), '', ICON_SIZE_MEDIUM)
.'</a>';
}
@ -695,14 +695,14 @@ if ($notebookTeacherEnable && !empty($student_id) && !empty($course_code)) {
if (api_can_login_as($student_id)) {
echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/user_list.php?action=login_as&user_id='.$student_id
.'&sec_token='.$token.'">'
.Display::return_icon('login_as.png', get_lang('LoginAs'), null, ICON_SIZE_MEDIUM).'</a>&nbsp;&nbsp;';
.Display::return_icon('login_as.png', get_lang('Login as'), null, ICON_SIZE_MEDIUM).'</a>&nbsp;&nbsp;';
}
if (Skill::isAllowed($student_id, false)) {
echo Display::url(
Display::return_icon(
'skill-badges.png',
get_lang('AssignSkill'),
get_lang('Assign skill'),
null,
ICON_SIZE_MEDIUM
),
@ -781,7 +781,7 @@ if (!empty($courseInfo)) {
// get information about connections on the platform by student
$first_connection_date = Tracking::get_first_connection_date($user_info['user_id']);
if ($first_connection_date == '') {
$first_connection_date = get_lang('NoConnexion');
$first_connection_date = get_lang('No connection');
}
$last_connection_date = Tracking::get_last_connection_date(
@ -789,7 +789,7 @@ $last_connection_date = Tracking::get_last_connection_date(
true
);
if ($last_connection_date == '') {
$last_connection_date = get_lang('NoConnexion');
$last_connection_date = get_lang('No connection');
}
// cvs information
@ -798,7 +798,7 @@ $csv_content[] = [
];
$csv_content[] = [
get_lang('Name'),
get_lang('Email'),
get_lang('e-mail'),
get_lang('Tel'),
];
$csv_content[] = [
@ -811,12 +811,12 @@ $csv_content[] = [];
// csv tracking
$csv_content[] = [
get_lang('Tracking'),
get_lang('Reporting'),
];
$csv_content[] = [
get_lang('FirstLoginInPlatform'),
get_lang('LatestLoginInPlatform'),
get_lang('TimeSpentInTheCourse'),
get_lang('First connectionInPlatform'),
get_lang('Latest login in platform'),
get_lang('Time spentInTheCourse'),
get_lang('Progress'),
get_lang('Score'),
];
@ -858,7 +858,7 @@ $userInfo = [
if (!empty($course_code)) {
$userInfo['url_access'] = Display::url(
get_lang('SeeAccesses'),
get_lang('See accesses'),
'access_details.php?'
.http_build_query(
[
@ -920,18 +920,18 @@ if (api_get_setting('allow_terms_conditions') === 'true') {
list($legalId, $legalLanguageId, $legalTime) = explode(':', $value['value']);
$icon = Display::return_icon('accept.png');
$btn = Display::url(
get_lang('DeleteLegal'),
get_lang('Delete legal agreement'),
api_get_self().'?action=delete_legal&student='.$student_id.'&course='.$course_code,
['class' => 'btn btn-danger']
);
$timeLegalAccept = api_get_local_time($legalTime);
} else {
$btn = Display::url(
get_lang('SendLegal'),
get_lang('Send message legal agreement'),
api_get_self().'?action=send_legal&student='.$student_id.'&course='.$course_code,
['class' => 'btn btn-primary']
);
$timeLegalAccept = get_lang('NotRegistered');
$timeLegalAccept = get_lang('Not Registered');
}
}
$userInfo['legal'] = [
@ -1028,7 +1028,7 @@ if (empty($details)) {
get_lang('Time'),
get_lang('Progress'),
get_lang('Score'),
get_lang('AttendancesFaults'),
get_lang('Not attended'),
get_lang('Evaluations'),
];
@ -1068,7 +1068,7 @@ if (empty($details)) {
<th>'.get_lang('Time').'</th>
<th>'.get_lang('Progress').'</th>
<th>'.get_lang('Score').'</th>
<th>'.get_lang('AttendancesFaults').'</th>
<th>'.get_lang('Not attended').'</th>
<th>'.get_lang('Evaluations').'</th>
<th>'.get_lang('Details').'</th>
</tr>';
@ -1081,7 +1081,7 @@ if (empty($details)) {
get_lang('Time'),
get_lang('Progress'),
get_lang('Score'),
get_lang('AttendancesFaults'),
get_lang('Not attended'),
get_lang('Evaluations'),
get_lang('Details'),
];
@ -1135,7 +1135,7 @@ if (empty($details)) {
$attendances_faults_avg = '0/0 (0%)';
if (!empty($results_faults_avg['total'])) {
if (api_is_drh()) {
$attendances_faults_avg = '<a title="'.get_lang('GoAttendance').'" href="'.api_get_path(WEB_CODE_PATH)
$attendances_faults_avg = '<a title="'.get_lang('Go to attendances').'" href="'.api_get_path(WEB_CODE_PATH)
.'attendance/index.php?cidReq='.$courseCodeItem.'&id_session='.$sId.'&student_id='
.$student_id.'">'
.$results_faults_avg['faults'].'/'.$results_faults_avg['total'].' ('
@ -1270,7 +1270,7 @@ if (empty($details)) {
$csv_content[] = $csvRow;
$exportCourseList[$sId][] = $csvRow;
$sessionAction = Display::url(
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), [], ICON_SIZE_MEDIUM),
Display::return_icon('export_csv.png', get_lang('CSV export'), [], ICON_SIZE_MEDIUM),
$currentUrl
.'&'
.http_build_query(
@ -1278,7 +1278,7 @@ if (empty($details)) {
)
);
$sessionAction .= Display::url(
Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), [], ICON_SIZE_MEDIUM),
Display::return_icon('export_excel.png', get_lang('Excel export'), [], ICON_SIZE_MEDIUM),
$currentUrl
.'&'
.http_build_query(
@ -1288,7 +1288,7 @@ if (empty($details)) {
if (!empty($sId)) {
$sessionAction .= Display::url(
Display::return_icon('pdf.png', get_lang('ExportToPDF'), [], ICON_SIZE_MEDIUM),
Display::return_icon('pdf.png', get_lang('Export to PDF'), [], ICON_SIZE_MEDIUM),
$currentUrl
.'&'
.http_build_query(
@ -1298,7 +1298,7 @@ if (empty($details)) {
}
echo $sessionAction;
} else {
echo "<tr><td colspan='5'>".get_lang('NoCourse')."</td></tr>";
echo "<tr><td colspan='5'>".get_lang('This course could not be found')."</td></tr>";
}
Session::write('export_course_list', $exportCourseList);
echo '</tbody>';
@ -1307,30 +1307,30 @@ if (empty($details)) {
}
} else {
$columnHeaders = [
'lp' => get_lang('LearningPath'),
'lp' => get_lang('Learning paths'),
'time' => get_lang('Time').
Display::return_icon(
'info3.gif',
get_lang('TotalTimeByCourse'),
get_lang('Total time in course'),
['align' => 'absmiddle', 'hspace' => '3px']
),
'best_score' => get_lang('BestScore'),
'latest_attempt_avg_score' => get_lang('LatestAttemptAverageScore').
'best_score' => get_lang('Best score'),
'latest_attempt_avg_score' => get_lang('Latest attempt average score').
Display::return_icon(
'info3.gif',
get_lang('AverageIsCalculatedBasedInTheLatestAttempts'),
get_lang('Average is calculated based on the latest attempts'),
['align' => 'absmiddle', 'hspace' => '3px']
),
'progress' => get_lang('Progress').
Display::return_icon(
'info3.gif',
get_lang('LPProgressScore'),
get_lang('% of learning objects visited'),
['align' => 'absmiddle', 'hspace' => '3px']
),
'last_connection' => get_lang('LastConnexion').
'last_connection' => get_lang('Latest login').
Display::return_icon(
'info3.gif',
get_lang('LastTimeTheCourseWasUsed'),
get_lang('Last time learner entered the course'),
['align' => 'absmiddle', 'hspace' => '3px']
),
];
@ -1369,7 +1369,7 @@ if (empty($details)) {
$categoriesTempList = learnpath::getCategories($courseInfo['real_id']);
$categoryTest = new CLpCategory();
$categoryTest->setId(0);
$categoryTest->setName(get_lang('WithOutCategory'));
$categoryTest->setName(get_lang('Without category'));
$categoryTest->setPosition(0);
$categories = [
$categoryTest,
@ -1410,7 +1410,7 @@ if (empty($details)) {
echo $headers;
echo '<th>'.get_lang('Details').'</th>';
if (api_is_allowed_to_edit()) {
echo '<th>'.get_lang('ResetLP').'</th>';
echo '<th>'.get_lang('Reset Learning path').'</th>';
}
echo '</tr></thead><tbody>';
@ -1586,7 +1586,7 @@ if (empty($details)) {
[
'onclick' => "javascript:if(!confirm('"
.addslashes(
api_htmlentities(get_lang('AreYouSureToDelete'))
api_htmlentities(get_lang('Are you sure you want to delete'))
)
."')) return false;",
]
@ -1605,24 +1605,24 @@ if (empty($details)) {
<table class="table table-striped table-hover">
<thead>
<tr>';
echo '<th>'.get_lang('Exercises').'</th>';
echo '<th>'.get_lang('LearningPath').'</th>';
echo '<th>'.get_lang('AvgCourseScore').' '.
echo '<th>'.get_lang('Tests').'</th>';
echo '<th>'.get_lang('Learning paths').'</th>';
echo '<th>'.get_lang('Average score in learning paths').' '.
Display::return_icon(
'info3.gif',
get_lang('AverageScore'),
get_lang('Average score'),
['align' => 'absmiddle', 'hspace' => '3px']
).'</th>';
echo '<th>'.get_lang('Attempts').'</th>';
echo '<th>'.get_lang('LatestAttempt').'</th>';
echo '<th>'.get_lang('AllAttempts').'</th>';
echo '<th>'.get_lang('Latest attempt').'</th>';
echo '<th>'.get_lang('All attempts').'</th>';
echo '</tr></thead><tbody>';
$csv_content[] = [];
$csv_content[] = [
get_lang('Exercises'),
get_lang('LearningPath'),
get_lang('AvgCourseScore'),
get_lang('Tests'),
get_lang('Learning paths'),
get_lang('Average score in learning paths'),
get_lang('Attempts'),
];
@ -1678,7 +1678,7 @@ if (empty($details)) {
$score_percentage = $scores_lp[0];
$lp_name = $scores_lp[1];
}
$lp_name = !empty($lp_name) ? $lp_name : get_lang('NoLearnpath');
$lp_name = !empty($lp_name) ? $lp_name : get_lang('No learning path');
$css_class = 'row_even';
if ($i % 2) {
@ -1729,7 +1729,7 @@ if (empty($details)) {
.'&id_session='.$sessionId.'&session_id='.$sessionId.'&student='.$student_id.'&origin='
.(empty($origin) ? 'tracking' : $origin).$qualifyLink;
echo Display::url(
Display::return_icon('quiz.png', get_lang('Exercise')),
Display::return_icon('quiz.png', get_lang('Test')),
$attemptLink
);
}
@ -1743,7 +1743,7 @@ if (empty($details)) {
echo Display::url(
Display::return_icon(
'test_results.png',
get_lang('AllAttempts'),
get_lang('All attempts'),
[],
ICON_SIZE_SMALL
),
@ -1766,7 +1766,7 @@ if (empty($details)) {
$i++;
}
} else {
echo '<tr><td colspan="6">'.get_lang('NoExercise').'</td></tr>';
echo '<tr><td colspan="6">'.get_lang('NoTest').'</td></tr>';
}
echo '</tbody></table></div>';
}
@ -1784,7 +1784,7 @@ if (empty($details)) {
);
$survey_done = Display::return_icon(
"accept_na.png",
get_lang('NoAnswer'),
get_lang('There is no answer for the moment'),
[],
ICON_SIZE_SMALL
);
@ -1834,11 +1834,11 @@ if (empty($details)) {
<thead>
<tr>
<th>'.get_lang('Tasks').'</th>
<th class="text-center">'.get_lang('DocumentNumber').'</th>
<th class="text-center">'.get_lang('Document ID').'</th>
<th class="text-center">'.get_lang('Note').'</th>
<th class="text-center">'.get_lang('HandedOut').'</th>
<th class="text-center">'.get_lang('HandOutDateLimit').'</th>
<th class="text-center">'.get_lang('ConsideredWorkingTime').'</th>
<th class="text-center">'.get_lang('Handed out').'</th>
<th class="text-center">'.get_lang('Deadline').'</th>
<th class="text-center">'.get_lang('Assignment work time').'</th>
</tr>
</thead>
<tbody>
@ -1888,11 +1888,11 @@ if (empty($details)) {
$csv_content[] = [];
$csv_content[] = [
get_lang('OtherTools'),
get_lang('OTI (Online Training Interaction) settings report'),
];
$csv_content[] = [
get_lang('Student_publication'),
get_lang('Assignments'),
$nb_assignments,
];
$csv_content[] = [
@ -1900,19 +1900,19 @@ if (empty($details)) {
$messages,
];
$csv_content[] = [
get_lang('LinksDetails'),
get_lang('Links accessed'),
$links,
];
$csv_content[] = [
get_lang('DocumentsDetails'),
get_lang('Documents downloaded'),
$documents,
];
$csv_content[] = [
get_lang('UploadedDocuments'),
get_lang('Uploaded documents'),
$uploaded_documents,
];
$csv_content[] = [
get_lang('ChatLastConnection'),
get_lang('Latest chat connection'),
$chat_last_connection,
];
} //end details
@ -1922,7 +1922,7 @@ if ($allowMessages === true) {
echo Display::page_subheader2(get_lang('Messages'));
echo MessageManager::getMessagesAboutUserToString($user_info);
echo Display::url(
get_lang('NewMessage'),
get_lang('New message'),
'javascript: void(0);',
[
'onClick' => "$('#compose_message').show();",
@ -1938,7 +1938,7 @@ if ($allowMessages === true) {
$form->addHtml('<div id="compose_message" style="display:none;">');
$form->addText('subject', get_lang('Subject'));
$form->addHtmlEditor('message', get_lang('Message'));
$form->addButtonSend(get_lang('Send'));
$form->addButtonSend(get_lang('Send message'));
$form->addHidden('sec_token', $token);
$form->addHtml('</div>');
$form->display();
@ -1947,7 +1947,7 @@ if ($allowMessages === true) {
$allow = api_get_configuration_value('allow_user_message_tracking');
if ($allow && (api_is_drh() || api_is_platform_admin())) {
$users = MessageManager::getUsersThatHadConversationWithUser($student_id);
echo Display::page_subheader2(get_lang('MessageTracking'));
echo Display::page_subheader2(get_lang('MessageReporting'));
$table = new HTML_Table(['class' => 'table']);
$column = 0;

@ -1,10 +1,9 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Progress report.
*
* @package chamilo.reporting
*
* @deprecated seems there's no link to this page
* Created on 28 juil. 2006 by Elixir Interactive http://www.elixir-interactive.com
*/
@ -12,14 +11,14 @@
// TODO: This file seems to be unfinished and unused.
require_once __DIR__.'/../inc/global.inc.php';
$nameTools = get_lang('Progression');
$nameTools = get_lang('Progress');
$cidReset = true;
$this_section = SECTION_TRACKING;
api_block_anonymous_users();
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('MySpace')];
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('Reporting')];
Display :: display_header($nameTools);
// Database Table Definitions
@ -40,8 +39,8 @@ if (Database::num_rows($result_course) > 0) {
$export_result = export_csv($header, $data, 'test.csv'); // TODO: There is no data for exporting yet.
echo Display::return_message($export_result, 'error');
}
echo '<table class="data_table"><tr><th>'.get_lang('Course').'</th><th>'.get_lang('TempsFrequentation').'</th><th>'.get_lang('Progression').'</th><th>'.get_lang('MoyenneTest').'</th></tr>';
$header = [get_lang('Course', ''), get_lang('TempsFrequentation', ''), get_lang('Progression', ''), get_lang('MoyenneTest', '')];
echo '<table class="data_table"><tr><th>'.get_lang('Course').'</th><th>'.get_lang('Frequentation time').'</th><th>'.get_lang('Progress').'</th><th>'.get_lang('Tests score').'</th></tr>';
$header = [get_lang('Course'), get_lang('Frequentation time'), get_lang('Progress'), get_lang('Tests score')];
while ($a_course = Database::fetch_array($result_course)) {
// TODO: This query is to be checked, there are no HotPotatoes tests results.
$sql_moy_test = "SELECT score,max_score
@ -63,9 +62,9 @@ if (Database::num_rows($result_course) > 0) {
}
echo '</table>';
echo "<br /><br />";
echo "<form method='post'><input type='submit' name='export' value='".get_lang('ExportExcel')."'/><form>";
echo "<form method='post'><input type='submit' name='export' value='".get_lang('Excel export')."'/><form>";
} else {
echo get_lang('NoCourse');
echo get_lang('This course could not be found');
}
Display :: display_footer();

@ -2,7 +2,7 @@
/* For licensing terms, see /license.txt */
/**
* Sessions reporting.
* Course sessions reporting.
*
* @package chamilo.reporting
*/
@ -30,23 +30,23 @@ if (!$allowToTrack) {
}
$htmlHeadXtra[] = api_get_jqgrid_js();
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('MySpace')];
Display::display_header(get_lang('Sessions'));
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Reporting')];
Display::display_header(get_lang('Course sessions'));
if (api_is_platform_admin(true, true)) {
$a_sessions = SessionManager::get_sessions_followed_by_drh(api_get_user_id());
if (!api_is_session_admin()) {
$menu_items[] = Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'auth/my_progress.php'
);
$menu_items[] = Display::url(
Display::return_icon('user.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
'index.php?view=drh_students&amp;display=yourstudents'
);
$menu_items[] = Display::url(
Display::return_icon('teacher.png', get_lang('Trainers'), [], ICON_SIZE_MEDIUM),
Display::return_icon('teacher.png', get_lang('Teachers'), [], ICON_SIZE_MEDIUM),
'teachers.php'
);
$menu_items[] = Display::url(
@ -54,23 +54,23 @@ if (api_is_platform_admin(true, true)) {
'course.php'
);
$menu_items[] = Display::url(
Display::return_icon('session_na.png', get_lang('Sessions'), [], ICON_SIZE_MEDIUM),
Display::return_icon('session_na.png', get_lang('Course sessions'), [], ICON_SIZE_MEDIUM),
'#'
);
}
$menu_items[] = Display::url(
Display::return_icon('works.png', get_lang('WorksReport'), [], ICON_SIZE_MEDIUM),
Display::return_icon('works.png', get_lang('Assignments report'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'mySpace/works_in_session_report.php'
);
$menu_items[] = Display::url(
Display::return_icon('clock.png', get_lang('TeacherTimeReportBySession'), [], ICON_SIZE_MEDIUM),
Display::return_icon('clock.png', get_lang('Teachers time report by session'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'admin/teachers_time_by_session_report.php'
);
if (!api_is_session_admin()) {
$menu_items[] = Display::url(
Display::return_icon('1day.png', get_lang('SessionsPlanCalendar'), [], ICON_SIZE_MEDIUM),
Display::return_icon('1day.png', get_lang('Course sessionsPlanCalendar'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH)."calendar/planification.php"
);
}
@ -90,7 +90,7 @@ if (api_is_platform_admin(true, true)) {
['onclick' => 'javascript: window.print();']
);
$actionsRight .= Display::url(
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), [], 32),
Display::return_icon('export_csv.png', get_lang('CSV export'), [], 32),
api_get_self().'?export=csv'
);
}
@ -101,10 +101,10 @@ if (api_is_platform_admin(true, true)) {
);
echo $toolbar;
echo Display::page_header(get_lang('YourSessionsList'));
echo Display::page_header(get_lang('YourCourse sessionsList'));
} elseif (api_is_teacher()) {
$actionsRight = Display::url(
Display::return_icon('clock.png', get_lang('TeacherTimeReportBySession'), [], ICON_SIZE_MEDIUM),
Display::return_icon('clock.png', get_lang('Teachers time report by session'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'admin/teachers_time_by_session_report.php'
);
@ -114,7 +114,7 @@ if (api_is_platform_admin(true, true)) {
);
echo $toolbar;
echo Display::page_header(get_lang('YourSessionsList'));
echo Display::page_header(get_lang('YourCourse sessionsList'));
} else {
$a_sessions = Tracking::get_sessions_coached_by_user($id_coach);
}

@ -20,7 +20,7 @@ if (!$allowToTrack) {
api_not_allowed(true);
}
$nameTools = get_lang('Students');
$nameTools = get_lang('Learners');
$export_csv = isset($_GET['export']) && $_GET['export'] == 'csv' ? true : false;
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
@ -32,7 +32,7 @@ $webCodePath = api_get_path(WEB_CODE_PATH);
$interbreadcrumb[] = [
"url" => api_is_student_boss() ? "#" : "index.php",
"name" => get_lang('MySpace'),
"name" => get_lang('Reporting'),
];
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"])) {
@ -43,7 +43,7 @@ if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"]))
}
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] == "coach") {
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Tutors')];
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Coaches')];
}
function get_count_users()
@ -229,15 +229,15 @@ $actionsLeft = '';
if (api_is_drh()) {
$menu_items = [
Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
$webCodePath.'auth/my_progress.php'
),
Display::url(
Display::return_icon('user_na.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user_na.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
'#'
),
Display::url(
Display::return_icon('teacher.png', get_lang('Trainers'), [], ICON_SIZE_MEDIUM),
Display::return_icon('teacher.png', get_lang('Teachers'), [], ICON_SIZE_MEDIUM),
'teachers.php'
),
Display::url(
@ -245,7 +245,7 @@ if (api_is_drh()) {
'course.php'
),
Display::url(
Display::return_icon('session.png', get_lang('Sessions'), [], ICON_SIZE_MEDIUM),
Display::return_icon('session.png', get_lang('Course sessions'), [], ICON_SIZE_MEDIUM),
'session.php'
),
Display::url(
@ -257,11 +257,11 @@ if (api_is_drh()) {
$actionsLeft .= implode('', $menu_items);
} elseif (api_is_student_boss()) {
$actionsLeft .= Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
$webCodePath.'auth/my_progress.php'
);
$actionsLeft .= Display::url(
Display::return_icon('user_na.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user_na.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
'#'
);
$actionsLeft .= Display::url(
@ -269,13 +269,13 @@ if (api_is_drh()) {
$webCodePath.'social/my_skills_report.php'
);
$actionsLeft .= Display::url(
Display::return_icon('statistics.png', get_lang('CompanyReport'), [], ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('Corporate report'), [], ICON_SIZE_MEDIUM),
$webCodePath.'mySpace/company_reports.php'
);
$actionsLeft .= Display::url(
Display::return_icon(
'certificate_list.png',
get_lang('GradebookSeeListOfStudentsCertificates'),
get_lang('GradebookSeeListOfLearnersCertificates'),
[],
ICON_SIZE_MEDIUM
),
@ -289,7 +289,7 @@ $actionsRight = Display::url(
['onclick' => 'javascript: window.print();']
);
$actionsRight .= Display::url(
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), [], ICON_SIZE_MEDIUM),
Display::return_icon('export_csv.png', get_lang('CSV export'), [], ICON_SIZE_MEDIUM),
api_get_self().'?export=csv&keyword='.$keyword
);
@ -311,31 +311,31 @@ $params = [
$table->set_additional_parameters($params);
if ($is_western_name_order) {
$table->set_header(0, get_lang('FirstName'), false);
$table->set_header(1, get_lang('LastName'), false);
$table->set_header(0, get_lang('First name'), false);
$table->set_header(1, get_lang('Last name'), false);
} else {
$table->set_header(0, get_lang('LastName'), false);
$table->set_header(1, get_lang('FirstName'), false);
$table->set_header(0, get_lang('Last name'), false);
$table->set_header(1, get_lang('First name'), false);
}
$table->set_header(2, get_lang('FirstLogin'), false);
$table->set_header(3, get_lang('LastConnexion'), false);
$table->set_header(2, get_lang('First connection'), false);
$table->set_header(3, get_lang('Latest login'), false);
$table->set_header(4, get_lang('Details'), false);
if ($export_csv) {
if ($is_western_name_order) {
$csv_header[] = [
get_lang('FirstName'),
get_lang('LastName'),
get_lang('FirstLogin'),
get_lang('LastConnexion'),
get_lang('First name'),
get_lang('Last name'),
get_lang('First connection'),
get_lang('Latest login'),
];
} else {
$csv_header[] = [
get_lang('LastName'),
get_lang('FirstName'),
get_lang('FirstLogin'),
get_lang('LastConnexion'),
get_lang('Last name'),
get_lang('First name'),
get_lang('First connection'),
get_lang('Latest login'),
];
}
}
@ -364,9 +364,9 @@ if ($export_csv) {
echo Display::page_subheader($nameTools);
if (isset($active)) {
if ($active) {
$activeLabel = get_lang('ActiveUsers');
$activeLabel = get_lang('Users with an active account');
} else {
$activeLabel = get_lang('InactiveUsers');
$activeLabel = get_lang('Users who\'s account has been disabled');
}
echo Display::page_subheader2($activeLabel);
}

@ -8,7 +8,7 @@ require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_TRACKING;
$csv_content = [];
$nameTools = get_lang('MySpace');
$nameTools = get_lang('Reporting');
$allowToTrack = api_is_platform_admin(true, true);
if (!$allowToTrack) {

@ -21,17 +21,17 @@ $export_csv = isset($_GET['export']) && $_GET['export'] == 'csv' ? true : false;
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$active = isset($_GET['active']) ? intval($_GET['active']) : 1;
$sleepingDays = isset($_GET['sleeping_days']) ? intval($_GET['sleeping_days']) : null;
$nameTools = get_lang('Teachers');
$nameTools = get_lang('Trainers');
$this_section = SECTION_TRACKING;
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('MySpace')];
$interbreadcrumb[] = ["url" => "index.php", "name" => get_lang('Reporting')];
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"])) {
$interbreadcrumb[] = ["url" => "teachers.php", "name" => get_lang('Teachers')];
$interbreadcrumb[] = ["url" => "teachers.php", "name" => get_lang('Trainers')];
}
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] == "coach") {
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Tutors')];
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Coaches')];
}
function get_count_users()
@ -194,17 +194,17 @@ $actionsLeft = '';
if (api_is_drh()) {
$menu_items = [
Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH)."auth/my_progress.php"
),
Display::url(Display::return_icon('user.png', get_lang('Students'), [], ICON_SIZE_MEDIUM), 'student.php'),
Display::url(Display::return_icon('user.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM), 'student.php'),
Display::url(
Display::return_icon('teacher_na.png', get_lang('Trainers'), [], ICON_SIZE_MEDIUM),
'teachers.php'
),
Display::url(Display::return_icon('course.png', get_lang('Courses'), [], ICON_SIZE_MEDIUM), 'course.php'),
Display::url(
Display::return_icon('session.png', get_lang('Sessions'), [], ICON_SIZE_MEDIUM),
Display::return_icon('session.png', get_lang('Course sessions'), [], ICON_SIZE_MEDIUM),
'session.php'
),
];
@ -224,7 +224,7 @@ $actionsRight .= Display::url(
['onclick' => 'javascript: window.print();']
);
$actionsRight .= Display::url(
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), [], ICON_SIZE_MEDIUM),
Display::return_icon('export_csv.png', get_lang('CSV export'), [], ICON_SIZE_MEDIUM),
api_get_self().'?export=csv&keyword='.$keyword
);
@ -246,31 +246,31 @@ $params = [
$table->set_additional_parameters($params);
if ($is_western_name_order) {
$table->set_header(0, get_lang('FirstName'), false);
$table->set_header(1, get_lang('LastName'), false);
$table->set_header(0, get_lang('First name'), false);
$table->set_header(1, get_lang('Last name'), false);
} else {
$table->set_header(0, get_lang('LastName'), false);
$table->set_header(1, get_lang('FirstName'), false);
$table->set_header(0, get_lang('Last name'), false);
$table->set_header(1, get_lang('First name'), false);
}
$table->set_header(2, get_lang('FirstLogin'), false);
$table->set_header(3, get_lang('LastConnexion'), false);
$table->set_header(2, get_lang('First connection'), false);
$table->set_header(3, get_lang('Latest login'), false);
$table->set_header(4, get_lang('Details'), false);
if ($export_csv) {
if ($is_western_name_order) {
$csv_header[] = [
get_lang('FirstName'),
get_lang('LastName'),
get_lang('FirstLogin'),
get_lang('LastConnexion'),
get_lang('First name'),
get_lang('Last name'),
get_lang('First connection'),
get_lang('Latest login'),
];
} else {
$csv_header[] = [
get_lang('LastName'),
get_lang('FirstName'),
get_lang('FirstLogin'),
get_lang('LastConnexion'),
get_lang('Last name'),
get_lang('First name'),
get_lang('First connection'),
get_lang('Latest login'),
];
}
}
@ -293,13 +293,13 @@ if ($export_csv) {
} else {
Display::display_header($nameTools);
echo $toolbar;
$page_title = get_lang('Teachers');
$page_title = get_lang('Trainers');
echo Display::page_subheader($page_title);
if (isset($active)) {
if ($active) {
$activeLabel = get_lang('ActiveUsers');
$activeLabel = get_lang('Users with an active account');
} else {
$activeLabel = get_lang('InactiveUsers');
$activeLabel = get_lang('Users who\'s account has been disabled');
}
echo Display::page_subheader2($activeLabel);
}

@ -61,17 +61,17 @@ if (api_drh_can_access_all_session_content()) {
}
$url = api_get_self().'?user_id='.$userId;
$tool_name = get_lang('ModifyUserInfo');
$tool_name = get_lang('Edit user information');
// Create the form
$form = new FormValidator('user_edit', 'post', $url);
// Username
$usernameInput = $form->addElement('text', 'username', get_lang('LoginName'));
$usernameInput = $form->addElement('text', 'username', get_lang('Login'));
$usernameInput->freeze();
// Password
$group = [];
$auth_sources = 0; //make available wider as we need it in case of form reset (see below)
$group[] = &$form->createElement('radio', 'password_auto', get_lang('Password'), get_lang('AutoGeneratePassword').'<br />', 1);
$group[] = &$form->createElement('radio', 'password_auto', get_lang('Password'), get_lang('Automatically generate a new password').'<br />', 1);
$group[] = &$form->createElement('radio', 'password_auto', 'id="radio_user_password"', null, 0);
$group[] = &$form->createElement('password', 'password', null, ['onkeydown' => 'javascript: password_switch_radio_button(document.user_add,"password[password_auto]");']);
$form->addGroup($group, 'password', get_lang('Password'));
@ -80,7 +80,7 @@ $form->addGroup($group, 'password', get_lang('Password'));
$group = [];
$group[] = &$form->createElement('radio', 'send_mail', null, get_lang('Yes'), 1);
$group[] = &$form->createElement('radio', 'send_mail', null, get_lang('No'), 0);
$form->addGroup($group, 'mail', get_lang('SendMailToNewUser'));
$form->addGroup($group, 'mail', get_lang('Send mail to new user'));
// Set default values
$defaults = [];
@ -130,7 +130,7 @@ if ($form->validate()) {
);
if (!empty($email) && $send_mail) {
$emailsubject = '['.api_get_setting('siteName').'] '.get_lang('YourReg').' '.api_get_setting('siteName');
$emailsubject = '['.api_get_setting('siteName').'] '.get_lang('Your registration on').' '.api_get_setting('siteName');
$portal_url = api_get_path(WEB_PATH);
if (api_is_multiple_url_enabled()) {
$access_url_id = api_get_current_access_url_id();
@ -141,17 +141,17 @@ if ($form->validate()) {
}
$emailbody = get_lang('Dear')." ".stripslashes(api_get_person_name($userInfo['firstname'], $userInfo['lastname'])).",\n\n".
get_lang('YouAreReg')." ".api_get_setting('siteName')." ".get_lang('WithTheFollowingSettings')."\n\n".
get_lang('You are registered to')." ".api_get_setting('siteName')." ".get_lang('with the following settings:')."\n\n".
get_lang('Username')." : ".$username."\n".get_lang('Pass')." : ".stripslashes($password)."\n\n".
get_lang('Address')." ".api_get_setting('siteName')." ".
get_lang('Is')." : ".$portal_url."\n\n".
get_lang('Problem')."\n\n".
get_lang('SignatureFormula').",\n\n".
get_lang('The address of')." ".api_get_setting('siteName')." ".
get_lang('is')." : ".$portal_url."\n\n".
get_lang('In case of trouble, contact us.')."\n\n".
get_lang('Sincerely').",\n\n".
api_get_person_name(api_get_setting('administratorName'), api_get_setting('administratorSurname'))."\n".
get_lang('Manager')." ".
get_lang('Administrator')." ".
api_get_setting('siteName')."\nT. ".
api_get_setting('administratorTelephone')."\n".
get_lang('Email')." : ".api_get_setting('emailAdministrator');
get_lang('e-mail')." : ".api_get_setting('emailAdministrator');
$emailbody = nl2br($emailbody);
api_mail_html(
@ -178,11 +178,11 @@ if ($form->validate()) {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH)."mySpace/student.php",
"name" => get_lang('UserList'),
"name" => get_lang('User list'),
];
if (isset($_REQUEST['message'])) {
Display::addFlash(Display::return_message(get_lang('Updated'), 'normal'));
Display::addFlash(Display::return_message(get_lang('Update successful'), 'normal'));
}
Display::display_header($tool_name);

@ -4,7 +4,6 @@
* This tool allows platform admins to add users by uploading a CSV or XML file
* This code is inherited from admin/user_import.php.
*
* @package chamilo.reporting
* Created on 26 julio 2008 by Julio Montoya gugli100@gmail.com
*/
$cidReset = true;
@ -12,14 +11,14 @@ require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN; // TODO: Platform admin section?
$tool_name = get_lang('ImportUserListXMLCSV');
$tool_name = get_lang('Import users list');
api_block_anonymous_users();
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('MySpace')];
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Reporting')];
$id_session = '';
if (isset($_GET['id_session']) && $_GET['id_session'] != '') {
$id_session = intval($_GET['id_session']);
$interbreadcrumb[] = ['url' => 'session.php', 'name' => get_lang('Sessions')];
$interbreadcrumb[] = ['url' => 'session.php', 'name' => get_lang('Course sessions')];
$interbreadcrumb[] = ['url' => 'course.php?id_session='.$id_session.'', 'name' => get_lang('Course')];
}
@ -76,22 +75,22 @@ if (isset($_POST['formSent']) && $_POST['formSent'] && $_FILES['import_file']['s
MySpace::save_data($users, $course_list, $id_session);
}
} else {
Display::addFlash(Display::return_message(get_lang('NoSessionId'), 'warning'));
Display::addFlash(Display::return_message(get_lang('The session was not identified'), 'warning'));
header('Location: course.php?id_session='.$id_session);
exit;
}
}
} else {
Display::addFlash(Display::return_message(get_lang('NoUsersRead'), 'warning'));
Display::addFlash(Display::return_message(get_lang('Please verify your XML/CVS file'), 'warning'));
header('Location: course.php?id_session='.$id_session);
exit;
}
}
Display :: display_header($tool_name);
Display::display_header($tool_name);
if (isset($_FILES['import_file']) && $_FILES['import_file']['size'] == 0 && $_POST) {
echo Display::return_message(get_lang('ThisFieldIsRequired'), 'error');
echo Display::return_message(get_lang('Required field'), 'error');
}
if (count($errors) != 0) {
@ -108,34 +107,34 @@ if (count($errors) != 0) {
$form = new FormValidator('user_import');
$form->addElement('hidden', 'formSent');
$form->addElement('hidden', 'id_session', $id_session);
$form->addElement('file', 'import_file', get_lang('ImportFileLocation'));
$form->addRule('import_file', get_lang('ThisFieldIsRequired'), 'required');
$form->addElement('file', 'import_file', get_lang('Import marks in an assessment'));
$form->addRule('import_file', get_lang('Required field'), 'required');
$allowed_file_types = ['xml', 'csv'];
$form->addRule('import_file', get_lang('InvalidExtension').' ('.implode(',', $allowed_file_types).')', 'filetype', $allowed_file_types);
$form->addRule('import_file', get_lang('Invalid extension').' ('.implode(',', $allowed_file_types).')', 'filetype', $allowed_file_types);
$form->addElement(
'radio',
'file_type',
get_lang('FileType'),
'XML (<a href="../admin/example.xml" target="_blank" download>'.get_lang('ExampleXMLFile').'</a>)',
get_lang('File type'),
'XML (<a href="../admin/example.xml" target="_blank" download>'.get_lang('Example XML file').'</a>)',
'xml'
);
$form->addElement(
'radio',
'file_type',
null,
'CSV (<a href="../admin/example.csv" target="_blank" download>'.get_lang('ExampleCSVFile').'</a>)',
'CSV (<a href="../admin/example.csv" target="_blank" download>'.get_lang('Example CSV file').'</a>)',
'csv'
);
$form->addElement('radio', 'sendMail', get_lang('SendMailToUsers'), get_lang('Yes'), 1);
$form->addElement('radio', 'sendMail', get_lang('Send a mail to users'), get_lang('Yes'), 1);
$form->addElement('radio', 'sendMail', null, get_lang('No'), 0);
$form->addElement('submit', 'submit', get_lang('Ok'));
$form->addElement('submit', 'submit', get_lang('Validate'));
$defaults['formSent'] = 1;
$defaults['sendMail'] = 0;
$defaults['file_type'] = 'xml';
$form->setDefaults($defaults);
$form->display();
?>
<p><?php echo get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p>
<p><?php echo get_lang('The CSV file must look like this').' ('.get_lang('Fields in <strong>bold</strong> are mandatory.').')'; ?> :</p>
<blockquote>
<pre>
@ -145,7 +144,7 @@ $form->display();
</pre>
</blockquote>
<p><?php echo get_lang('XMLMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p>
<p><?php echo get_lang('The XML file must look like this').' ('.get_lang('Fields in <strong>bold</strong> are mandatory.').')'; ?> :</p>
<blockquote>
<pre>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;<?php echo api_refine_encoding_id(api_get_system_encoding()); ?>&quot;?&gt;

@ -33,18 +33,18 @@ $this_section = SECTION_TRACKING;
$interbreadcrumb[] = [
"url" => "index.php",
"name" => get_lang('MySpace'),
"name" => get_lang('Reporting'),
];
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"])) {
$interbreadcrumb[] = [
"url" => "teachers.php",
"name" => get_lang('Teachers'),
"name" => get_lang('Trainers'),
];
}
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] == "coach") {
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Tutors')];
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Coaches')];
}
function get_count_users()
@ -206,11 +206,11 @@ $actionsLeft = '';
if (api_is_drh()) {
$menu_items = [
Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
$webCodePath.'auth/my_progress.php'
),
Display::url(
Display::return_icon('user_na.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user_na.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
'#'
),
Display::url(
@ -222,7 +222,7 @@ if (api_is_drh()) {
'course.php'
),
Display::url(
Display::return_icon('session.png', get_lang('Sessions'), [], ICON_SIZE_MEDIUM),
Display::return_icon('session.png', get_lang('Course sessions'), [], ICON_SIZE_MEDIUM),
'session.php'
),
Display::url(
@ -239,11 +239,11 @@ if (api_is_drh()) {
}
} elseif (api_is_student_boss()) {
$actionsLeft .= Display::url(
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM),
$webCodePath.'auth/my_progress.php'
);
$actionsLeft .= Display::url(
Display::return_icon('user_na.png', get_lang('Students'), [], ICON_SIZE_MEDIUM),
Display::return_icon('user_na.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM),
'#'
);
$actions .= Display::url(
@ -251,13 +251,13 @@ if (api_is_drh()) {
$webCodePath.'social/my_skills_report.php'
);
$actionsLeft .= Display::url(
Display::return_icon('statistics.png', get_lang("CompanyReport"), [], ICON_SIZE_MEDIUM),
Display::return_icon('statistics.png', get_lang("Corporate report"), [], ICON_SIZE_MEDIUM),
$webCodePath.'mySpace/company_reports.php'
);
$actionsLeft .= Display::url(
Display::return_icon(
'certificate_list.png',
get_lang('GradebookSeeListOfStudentsCertificates'),
get_lang('GradebookSeeListOfLearnersCertificates'),
[],
ICON_SIZE_MEDIUM
),
@ -271,7 +271,7 @@ $actionsRight = Display::url(
['onclick' => 'javascript: window.print();']
);
$actionsRight .= Display::url(
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), [], ICON_SIZE_MEDIUM),
Display::return_icon('export_csv.png', get_lang('CSV export'), [], ICON_SIZE_MEDIUM),
api_get_self().'?export=csv&keyword='.$keyword
);
@ -294,31 +294,31 @@ $params = [
$table->set_additional_parameters($params);
if ($is_western_name_order) {
$table->set_header(0, get_lang('FirstName'), false);
$table->set_header(1, get_lang('LastName'), false);
$table->set_header(0, get_lang('First name'), false);
$table->set_header(1, get_lang('Last name'), false);
} else {
$table->set_header(0, get_lang('LastName'), false);
$table->set_header(1, get_lang('FirstName'), false);
$table->set_header(0, get_lang('Last name'), false);
$table->set_header(1, get_lang('First name'), false);
}
$table->set_header(2, get_lang('FirstLogin'), false);
$table->set_header(3, get_lang('LastConnexion'), false);
$table->set_header(2, get_lang('First connection'), false);
$table->set_header(3, get_lang('Latest login'), false);
$table->set_header(4, get_lang('Details'), false);
if ($export_csv) {
if ($is_western_name_order) {
$csv_header[] = [
get_lang('FirstName'),
get_lang('LastName'),
get_lang('FirstLogin'),
get_lang('LastConnexion'),
get_lang('First name'),
get_lang('Last name'),
get_lang('First connection'),
get_lang('Latest login'),
];
} else {
$csv_header[] = [
get_lang('LastName'),
get_lang('FirstName'),
get_lang('FirstLogin'),
get_lang('LastConnexion'),
get_lang('Last name'),
get_lang('First name'),
get_lang('First connection'),
get_lang('Latest login'),
];
}
}
@ -334,9 +334,9 @@ $form->addElement(
get_lang('Status'),
[
'' => '',
STUDENT => get_lang('Student'),
COURSEMANAGER => get_lang('Teacher'),
DRH => get_lang('DRH'),
STUDENT => get_lang('Learner'),
COURSEMANAGER => get_lang('Trainer'),
DRH => get_lang('Human Resources Manager'),
]
);
$form = Tracking::setUserSearchForm($form);
@ -358,9 +358,9 @@ if ($export_csv) {
echo Display::page_subheader($nameTools);
if (isset($active)) {
if ($active) {
$activeLabel = get_lang('ActiveUsers');
$activeLabel = get_lang('Users with an active account');
} else {
$activeLabel = get_lang('InactiveUsers');
$activeLabel = get_lang('Users who\'s account has been disabled');
}
echo Display::page_subheader2($activeLabel);
}

@ -19,7 +19,7 @@ if (api_is_student()) {
exit;
}
$toolName = get_lang('WorksInSessionReport');
$toolName = get_lang('Works in session report');
$em = Database::getManager();
$session = null;
@ -31,7 +31,7 @@ if (api_is_platform_admin()) {
$sessionList = Tracking::get_sessions_coached_by_user(api_get_user_id());
}
$form = new FormValidator('work_report', 'GET');
$selectSession = $form->addSelect('session', get_lang('Session'), [0 => get_lang('None')]);
$selectSession = $form->addSelect('session', get_lang('Session'), [0 => get_lang('none')]);
$form->addButtonFilter(get_lang('Filter'));
foreach ($sessionList as $sessionInfo) {
@ -120,16 +120,16 @@ if (isset($_GET['export']) && $session && ($coursesInfo && $usersInfo)) {
$dataToExport = [];
$dataToExport[] = [$toolName, $session->getName()];
$dataToExport['headers'][] = get_lang('OfficialCode');
$dataToExport['headers'][] = get_lang('StudentName');
$dataToExport['headers'][] = get_lang('TimeSpentOnThePlatform');
$dataToExport['headers'][] = get_lang('FirstLoginInPlatform');
$dataToExport['headers'][] = get_lang('LatestLoginInPlatform');
$dataToExport['headers'][] = get_lang('Code');
$dataToExport['headers'][] = get_lang('Learner name');
$dataToExport['headers'][] = get_lang('Time spent in portal');
$dataToExport['headers'][] = get_lang('First login in platform');
$dataToExport['headers'][] = get_lang('Latest login in platform');
foreach ($coursesInfo as $courseCode) {
$dataToExport['headers'][] = $courseCode.' ('.get_lang('BestScore').')';
$dataToExport['headers'][] = $courseCode.' ('.get_lang('Best score').')';
$dataToExport['headers'][] = get_lang('Progress');
$dataToExport['headers'][] = get_lang('LastSentWorkDate');
$dataToExport['headers'][] = get_lang('Last sent work date');
}
foreach ($usersInfo as $user) {
@ -149,18 +149,18 @@ if (isset($_GET['export']) && $session && ($coursesInfo && $usersInfo)) {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'mySpace/index.php',
'name' => get_lang('MySpace'),
'name' => get_lang('Reporting'),
];
$actions = null;
if ($session) {
$actions = Display::url(
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), [], ICON_SIZE_MEDIUM),
Display::return_icon('export_csv.png', get_lang('CSV export'), [], ICON_SIZE_MEDIUM),
api_get_self().'?'.http_build_query(['export' => 'csv', 'session' => $session->getId()])
);
$actions .= Display::url(
Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), [], ICON_SIZE_MEDIUM),
Display::return_icon('export_excel.png', get_lang('Excel export'), [], ICON_SIZE_MEDIUM),
api_get_self().'?'.http_build_query(['export' => 'xls', 'session' => $session->getId()])
);
}

@ -83,7 +83,7 @@ $form->addElement('header', get_lang("A PowerPoint to SCORM Courses converter"))
$form->addElement('html', Display::return_message($message, 'info', false));
$form->addElement('file', 'user_file', [Display::return_icon('powerpoint_big.gif'), $div_upload_limit]);
$form->addElement('checkbox', 'take_slide_name', '', get_lang('Use the slides names as course learning object names'));
$options = ChamiloApi::getDocumentumentConversionSizes();
$options = ChamiloApi::getDocumentConversionSizes();
$form->addElement('select', 'slide_size', get_lang('Size of the slides'), $options);
if (api_get_setting('search_enabled') === 'true') {
require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';

Loading…
Cancel
Save