diff --git a/main/work/work.lib.php b/main/work/work.lib.php index d9dfa36eaa..df7f5b97c2 100755 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -1439,7 +1439,7 @@ function getWorkListTeacher( $where_condition ORDER BY $column $direction LIMIT $start, $limit"; - echo "
$sql"; + $result = Database::query($sql); if ($getCount) { @@ -2036,35 +2036,33 @@ function get_work_user_list( '; - $correction .= " - - "; + }); + "; if ($locked) { if ($qualification_exists) { $action .= Display::return_icon('rate_work_na.png', get_lang('CorrectAndRate'),array(), ICON_SIZE_SMALL); } else { - $action .= Display::return_icon('edit_na.png', get_lang('Comment'),array(), ICON_SIZE_SMALL); + $action .= Display::return_icon('edit_na.png', get_lang('Comment'), array(), ICON_SIZE_SMALL); } } else { if ($qualification_exists) { @@ -2101,22 +2099,22 @@ function get_work_user_list( } } elseif ($is_author && (empty($work['qualificator_id']) || $work['qualificator_id'] == 0)) { $action .= ''. - Display::return_icon('default.png', get_lang('View'),array(), ICON_SIZE_SMALL).''; + Display::return_icon('default.png', get_lang('View'), array(), ICON_SIZE_SMALL).''; if (api_get_course_setting('student_delete_own_publication') == 1) { if (api_is_allowed_to_session_edit(false, true)) { $action .= ''. - Display::return_icon('edit.png', get_lang('Comment'),array(), ICON_SIZE_SMALL).''; + Display::return_icon('edit.png', get_lang('Comment'), array(), ICON_SIZE_SMALL).''; } $action .= ' '. Display::return_icon('delete.png',get_lang('Delete'),'',ICON_SIZE_SMALL).''; } else { - $action .= Display::return_icon('edit_na.png', get_lang('Modify'),array(), ICON_SIZE_SMALL); + $action .= Display::return_icon('edit_na.png', get_lang('Modify'), array(), ICON_SIZE_SMALL); } } else { $action .= ''. - Display::return_icon('default.png', get_lang('View'),array(), ICON_SIZE_SMALL).''; - $action .= Display::return_icon('edit_na.png', get_lang('Modify'),array(), ICON_SIZE_SMALL); + Display::return_icon('default.png', get_lang('View'), array(), ICON_SIZE_SMALL).''; + $action .= Display::return_icon('edit_na.png', get_lang('Modify'), array(), ICON_SIZE_SMALL); } // Status. @@ -4627,13 +4625,11 @@ function exportAllWork($userId, $courseInfo, $format = 'pdf') foreach ($workPerUser as $work) { $work = $work['work']; foreach ($work->user_results as $userResult) { - //var_dump($userResult);exit; $content .= $userResult['title']; // No need to use api_get_local_time() $content .= $userResult['sent_date']; $content .= $userResult['qualification']; $content .= $userResult['description']; - //$content .= getWorkComments($userResult); } }