read($exercise_id); } $feedback_type = $objExercise->feedbacktype; //If is not valid $session_control_key = get_session_time_control_key($exercise_id); if (isset($session_control_key) && !exercise_time_control_is_valid($exercise_id) && !in_array($action, array('qualify','edit'))) { $sql_fraud = "UPDATE $TBL_TRACK_ATTEMPT SET answer = 0, marks=0, position=0 WHERE exe_id = $id "; Database::query($sql_fraud); } //Only users can see their own results if (!$is_allowedToEdit) { if ($student_id != $current_user_id) { api_not_allowed(); } } //Unset session for clock time exercise_time_control_delete($exercise_id); if (isset($_SESSION['gradebook'])) { $gradebook= Security::remove_XSS($_SESSION['gradebook']); } if (!empty($gradebook) && $gradebook=='view') { $interbreadcrumb[]= array ('url' => '../gradebook/'.$_SESSION['gradebook_dest'],'name' => get_lang('ToolGradebook')); } $fromlink = ''; $interbreadcrumb[]=array("url" => "exercice.php?gradebook=$gradebook","name" => get_lang('Exercices')); $interbreadcrumb[]=array("url" => "overview.php?exerciseId=".$exercise_id.'&id_session='.api_get_session_id(),"name" => $objExercise->name); $interbreadcrumb[]=array("url" => "#","name" => get_lang('Result')); $this_section=SECTION_COURSES; if ($origin != 'learnpath') { Display::display_header(''); } else { Display::display_reduced_header(); } ?>
'; Display::display_warning_message(get_lang('ThankYouForPassingTheTest'), false); echo ' |
| |
'. ' |
'.get_lang('Requirements').' | '.get_lang('YourAnswer').' | |
'.get_lang('Overlap').' | '.get_lang('Min').' '.$threadhold1.' | '.(($final_overlap < 0)?0:intval($final_overlap)).' |
'.get_lang('Excess').' | '.get_lang('Max').' '.$threadhold2.' | '.(($final_excess < 0)?0:intval($final_excess)).' |
'.get_lang('Missing').' | '.get_lang('Max').' '.$threadhold3.' | '.(($final_missing < 0)?0:intval($final_missing)).' |
'.get_lang('OARHit').'
'; } else { $message=''.get_lang('YourDelineation').'
'; $message.=$table_resume; $message.=''.$comment.'
'; echo $message; } else { echo ''.$comment.'
'; } //showing the score $queryfree = "select marks from ".$TBL_TRACK_ATTEMPT." WHERE exe_id = '".Database::escape_string($id)."' and question_id= '".Database::escape_string($questionId)."'"; $resfree = Database::query($queryfree); $questionScore= Database::result($resfree,0,"marks"); $totalScore+=$questionScore; ?>';
$name = "fckdiv".$questionId;
$marksname = "marksName".$questionId;
?>
'.get_lang('EditIndividualComment'); } else { echo get_lang('AddComments'); } } echo ' ';
$comnt = trim(get_comments($id,$questionId));
if (empty($comnt)) {
echo ' ';
} else {
$comnt = get_comments($id,$questionId);
echo ''; } else { echo ' '.$comnt.' ';
}
echo ' | |
'; if (!empty($comnt)) { echo ''.get_lang('Feedback').''; echo ' '.$comnt.' ';
}
echo ' | ';
}
if ($is_allowedToEdit) {
if (in_array($answerType, array(FREE_ANSWER, ORAL_EXPRESSION))) {
$marksname = "marksName".$questionId;
?>
'.get_lang('notCorrectedYet'); } } else { $arrmarks[] = $questionId; echo ' '; } } else { if ($questionScore==-1) { $questionScore=0; } } echo ' |
';
if ($questionScore==-1 ) {
$questionScore=0;
echo '