list_item.tpl.php in Opigno Statistics App 7
Same filename in this branch
- 7 templates/user/widgets/courses_results/partials/list_item.tpl.php
- 7 templates/user/widgets/badges_earned/partials/list_item.tpl.php
- 7 templates/dashboard/widgets/most_active_users/partials/list_item.tpl.php
- 7 templates/dashboard/widgets/top_10_classes/partials/list_item.tpl.php
- 7 templates/dashboard/widgets/top_10_courses/partials/list_item.tpl.php
- 7 templates/group/course/widgets/course_lessons/partials/list_item.tpl.php
- 7 templates/group/course/widgets/students_results/partials/list_item.tpl.php
- 7 templates/group/class/widgets/students_results/partials/list_item.tpl.php
Opigno statistics app - Class - Students results list item template file
File
templates/group/class/widgets/students_results/partials/list_item.tpl.phpView 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>