$GLOBALS['portal_config']['diy_use_uuid'] = 'no'; $class_activities = portal_get_class_diy_activities($class_id); $GLOBALS['portal_config']['diy_use_uuid'] = $old_uuid_setting; $usage = portal_get_diy_activity_usage_from_db($student_id); echo ' <table class="roster-table"> <tr> <th>Activity</th> <th>Status</th> </tr> '; $student_diy_id = portal_get_diy_member_id_from_db($member_info['member_username']); for ($i = 0; $i < count($class_activities); $i++) { $report_link = ' '; if (in_array($class_activities[$i]['activity_id'], $usage)) { $report_link = portal_simple_icon_link('work', '/diy/work/' . $class_activities[$i]['activity_id'] . '/student/' . $student_diy_id . '/', 'View this student\'s work'); } echo ' <tr> <td>' . $class_activities[$i]['activity_name'] . '</td> <td>' . $report_link . '</td> </tr> '; } echo ' </table> '; /* <p>We apologize but this feature is not yet available. It will look something like the image below:</p> <p><img src="/images/screenshots/student-report.png"></p>
'; } echo ' </tr> '; for ($h = 0; $h < count($students); $h++) { $student_diy_id = portal_get_diy_member_id_from_db($students[$h]['member_username']); echo ' <tr> <td><a href="/member/report/' . $students[$h]['member_id'] . '">' . $students[$h]['member_last_name'] . ', ' . $students[$h]['member_first_name'] . ' (' . $students[$h]['member_username'] . ')</a></td> '; $usage = portal_get_diy_activity_usage_from_db($students[$h]['member_id']); for ($i = 0; $i < count($class_activities); $i++) { $report_link = ' '; if (in_array($class_activities[$i]['activity_id'], $usage)) { $report_link = portal_simple_icon_link('work', '/diy/work/' . $class_activities[$i]['activity_id'] . '/student/' . $student_diy_id . '/', 'View work by ' . $students[$h]['member_first_name'] . ' ' . $students[$h]['member_last_name'] . ' on ' . $class_activities[$i]['activity_name'] . ''); } echo ' <td style="text-align: center;">' . $report_link . '</td> '; } echo ' </tr> '; } echo ' </table> '; /* <p>We apologize but this feature is not yet available. It will look something like the image below:</p>