<?php foreach(array_values($students)[0] as $student): ?> <th class="rotate"><div><span><small><?= $student->last_name . ' ' . substr($student->name, 0, 1) . '.'?></small></span></div></th> <?php endforeach ?> <th class="rotate"><div><span><small><?= _('Maximum') ?></small></span></div></th> <th class="rotate"><div><span><small><?php if(count($results[0]->results) > 1) echo _('Moyenne') ?></small></span></div></th> </tr> </thead> <tbody> <?php foreach($results as $row): ?> <tr> <td><?= $row->skills_group ?></td> <td><?= $row->criterion ?></td> <td><?= $row->cursor ?></td> <?php foreach($row->results as $result): ?> <td<?php if ($result < ($row->max_vote / 2) && is_numeric($result)) echo(' class="text-danger dotted_underline" ') ?>><?= $result ?></td> <?php endforeach ?> <td><strong><?= $row->max_vote ?></strong></td> <td> <?php if(count($row->results) > 1):?> <strong><?= (count(array_filter($row->results,'is_numeric')) ? custom_round(array_sum($row->results) / count(array_filter($row->results,'is_numeric'))) : _('NA'))?></strong></td> <?php endif ?> </tr> <?php endforeach ?> </tbody> </table>
<?php foreach ($row['skills_groups'] as $skill_group): ?> <th><small><?= $skill_group->max_vote?></small></th> <?php endforeach ?> <?php endforeach ?> <th><small>%</small></th><!-- Average --> </tr> </thead> <tbody> <td></td> <?php foreach ($table_body as $student): ?> <tr> <td><?= $student['last_name'] . ' ' . $student['name']?></td> <?php foreach ($student['results'] as $row): ?> <td> <a data-toggle="modal" data-target="#projectModal" <?php if ($row->user_vote < ($row->max_vote / 2) && is_numeric($row->user_vote)) echo(' class="text-danger dotted_underline" ') ?> href="/admin/result_details/<?= $row->project_id ?>/<?= $row->user_id ?>"><?= custom_round($row->user_vote) ?></a> </td> <?php endforeach ?> <td<?php if ($student['average'] < 50 && is_numeric($student['average'])) echo(' class="text-danger dotted_underline" ') ?>><?= $student['average']?></td> </tr> <?php endforeach ?> </tbody> </table> </div> <a href="#" class="btn btn-default hidden-print" id ="export" role='button'><span class="glyphicon glyphicon-export"></span> <?= _('Télécharger le CSV')?></a> </div> <?php else: ?> <div class = "row"> <div class="col-md-10"> <?= LABEL_NO_AVAILABLE_RESULTS ?> </div>