|
|
|
|
@ -1308,7 +1308,7 @@ if (!empty($student_id)) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
require_once '../work/work.lib.php'; |
|
|
|
|
$userworks = getWorkPerUser($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
|
$userWorks = getWorkPerUser($student_id, $courseInfo['real_id'], $sessionId); |
|
|
|
|
echo ' |
|
|
|
|
<div class="table-responsive"> |
|
|
|
|
<table class="table table-striped table-hover"> |
|
|
|
|
@ -1324,8 +1324,8 @@ if (!empty($student_id)) { |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
'; |
|
|
|
|
|
|
|
|
|
foreach ($userworks as $work) { |
|
|
|
|
$workingTime = api_get_configuration_value('considered_working_time'); |
|
|
|
|
foreach ($userWorks as $work) { |
|
|
|
|
$work = $work['work']; |
|
|
|
|
foreach ($work->user_results as $key => $results) { |
|
|
|
|
echo '<tr>'; |
|
|
|
|
@ -1345,13 +1345,13 @@ if (!empty($student_id)) { |
|
|
|
|
|
|
|
|
|
$fieldValue = new ExtraFieldValue('work'); |
|
|
|
|
$resultExtra = $fieldValue->getAllValuesForAnItem( |
|
|
|
|
$work->id, |
|
|
|
|
$work->iid, |
|
|
|
|
true |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
foreach ($resultExtra as $field) { |
|
|
|
|
$field = $field['value']; |
|
|
|
|
if (api_get_configuration_value('considered_working_time') == $field->getField()->getVariable()) { |
|
|
|
|
if ($workingTime == $field->getField()->getVariable()) { |
|
|
|
|
echo '<td class="text-center">' . $field->getValue() . '</td>'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -1360,8 +1360,7 @@ if (!empty($student_id)) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo ' |
|
|
|
|
</tbody> |
|
|
|
|
echo '</tbody> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
'; |
|
|
|
|
|