mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Added link in sco title for launch the sco in browse mode
This commit is contained in:
parent
2aaf134c02
commit
23fee00632
@ -96,6 +96,7 @@
|
||||
|
||||
if (empty($b)) {
|
||||
if (empty($a)) {
|
||||
// No options, show the global scorm report
|
||||
if ($scousers=get_records_select("scorm_scoes_track", "scormid='$scorm->id' GROUP BY userid,scormid", "", "userid,scormid")) {
|
||||
$table = new stdClass();
|
||||
$table->head = array(' ', get_string('name'));
|
||||
@ -146,6 +147,7 @@
|
||||
print_table($table);
|
||||
} else {
|
||||
if (!empty($user)) {
|
||||
// User SCORM report
|
||||
if ($scoes = get_records_select("scorm_scoes","scorm='$scorm->id' ORDER BY id")) {
|
||||
if (!empty($userdata)) {
|
||||
print_simple_box_start('center');
|
||||
@ -207,9 +209,11 @@
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// User SCO report
|
||||
if (!empty($userdata)) {
|
||||
print_simple_box_start('center');
|
||||
print_heading(format_string($sco->title));
|
||||
//print_heading(format_string($sco->title));
|
||||
print_heading('<a href="'.$CFG->wwwroot.'/mod/scorm/player.php?a='.$scorm->id.'&mode=browse&scoid='.$sco->id.'" target="_new">'.format_string($sco->title).'</a>');
|
||||
echo '<div align="center">'."\n";
|
||||
print_user_picture($user, $course->id, $userdata->picture, false, false);
|
||||
echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user&course=$course->id\">".
|
||||
|
Loading…
x
Reference in New Issue
Block a user