You are here

list_item.tpl.php in Opigno Statistics App 7

Opigno statistics app - Class - Students results list item template file

File

templates/group/class/widgets/students_results/partials/list_item.tpl.php
View source
<?php

/**
 * @file
 * Opigno statistics app - Class - Students results list item template file
 *
 * @param array $student_result
 *  $student_result['uid']
 *  $student_result['student_name']
 *  $student_result['number_of_interactions']
 *  $student_result['avg_number_of_interactions']
 *  $student_result['avg_score']
 *  $student_result['general_avg_score']
 */
?>
<tr>
  <td><?php

print $student_result['student_name'];
?></td>
  <td><?php

print $student_result['number_of_interactions'];
?></td>
  <td><?php

print $student_result['avg_number_of_interactions'];
?></td>
  <td><?php

print $student_result['avg_score'] . '%';
?></td>
  <td><?php

print $student_result['general_avg_score'] . '%';
?></td>
  <td><?php

print $student_result['status'] ? t('Yes') : t('No');
?></td>
  <td><?php

print l(t('View statistics'), "user/{$student_result['uid']}/opigno-statistics");
?></td>
</tr>