<td>Section Text</td> <td>Book Title</td> <td>Class Name</td> <td>Answer</td> </tr> </thead> <?php foreach ($answerList as $answer) { ?> <tr> <td><?php echo AllModel::getTruncatedSectionText($answer['section_id']); ?> </td> <td><?php echo AllModel::getBookTitle($answer['book_id']); ?> </td> <td><?php echo AllModel::getClassName($answer['class_id']); ?> </td> <td><?php echo $answer['tag']; ?> </td> </tr> <?php } ?> </table>
<center><strong>Data</center></strong> <thead> <tr> <td>Book Title</td> <td>Section Text</td> <td>Number of answers</td> <td>Dominant Tag</td> <td>Agreement (%)</td> </tr> </thead> <?php foreach ($this->section_data as $section) { ?> <tr> <td><?php echo AllModel::getBookTitle($section->book_id); ?> </td> <td><?php echo AllModel::getTruncatedSectionText($section->section_id); ?> </td> <td><?php echo $section->num_answers; ?> </td> <td><?php echo $section->dominant_tag; ?> </td> <td><?php