0) { CreateSectionHeader("Question Evaluation"); CreateLegend(); foreach ($questionData as $question) { CreateRowHeader(); echo "
\n"; // The question itself echo "

" . $question[0]; //average echo "⌀" . round( ($question[1]+2*$question[2]+3*$question[3]+4*$question[4]+5*$question[5]) /(array_sum(array_slice($question,1,5))), 2) . "\n"; echo "

\n"; echo "
\n"; echo "
\n"; echo "
\n"; $width = 800; $height = 300; $file = CreateQuestionBar($width, $height, $question); echo "
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo " "; echo "
\n"; echo "
\n"; } } // if there was any tutor Data in the log file, display it if (count($tutorData) > 0) { CreateSectionHeader("Tutor Evaluation"); CreateLegend(); foreach ($tutorData as $tutorName => $tutor) { CreateRowHeader(); echo "
\n"; // the name of the tutor echo "

" . $tutorName . "\n"; //average echo "⌀" . round( ($tutor[0]+2*$tutor[1]+3*$tutor[2]+4*$tutor[3]+5*$tutor[4]) /(array_sum($tutor)-$tutor[5]), 2) . "\n"; echo "

\n"; echo "
\n"; echo "
\n"; echo "
\n"; $width = 800; $height = 300; $file = CreateTutorBar($width, $height, $tutorName, $tutor); echo "
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo " "; echo "
\n"; echo "\n"; } } // if there was any comment Data in the log file, display it if (count($commentData) > 0) { CreateSectionHeader("Comments"); foreach ($commentData as $comment) // replace all new lines with html breaks to properly display multi-line comments CreateParagraph(str_replace("\n", "
\n", $comment)); } ?>