|
|
|
|
@ -1795,6 +1795,7 @@ if (empty($details)) { |
|
|
|
|
// @when using sessions we do not show the survey list |
|
|
|
|
if (empty($sessionId)) { |
|
|
|
|
$survey_list = SurveyManager::get_surveys($course_code, $sessionId); |
|
|
|
|
if (!empty($survey_list)) { |
|
|
|
|
$survey_data = []; |
|
|
|
|
foreach ($survey_list as $survey) { |
|
|
|
|
$user_list = SurveyManager::get_people_who_filled_survey( |
|
|
|
|
@ -1820,7 +1821,7 @@ if (empty($details)) { |
|
|
|
|
$survey_data[] = $data; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!empty($survey_list)) { |
|
|
|
|
if (!empty($survey_data)) { |
|
|
|
|
$table = new HTML_Table(['class' => 'data_table']); |
|
|
|
|
$header_names = [get_lang('Survey'), get_lang('Answered')]; |
|
|
|
|
$row = 0; |
|
|
|
|
@ -1830,7 +1831,6 @@ if (empty($details)) { |
|
|
|
|
$column++; |
|
|
|
|
} |
|
|
|
|
$row = 1; |
|
|
|
|
if (!empty($survey_data)) { |
|
|
|
|
foreach ($survey_data as $data) { |
|
|
|
|
$column = 0; |
|
|
|
|
$table->setCellContents($row, $column, $data); |
|
|
|
|
@ -1842,10 +1842,10 @@ if (empty($details)) { |
|
|
|
|
$column++; |
|
|
|
|
$row++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
echo $table->toHtml(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
require_once '../work/work.lib.php'; |
|
|
|
|
$userWorks = getWorkPerUser($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
|
|