From 43ba8d1c3149f934150f3392ab6a95d8e115fa16 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 19 Aug 2008 06:59:17 +0000 Subject: [PATCH] SCORM module XHTML strict fixes. --- mod/scorm/report.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mod/scorm/report.php b/mod/scorm/report.php index 8a2f7828f51..096940624c5 100755 --- a/mod/scorm/report.php +++ b/mod/scorm/report.php @@ -83,7 +83,7 @@ $navlinks = array(); $navlinks[] = array('name' => $strreport, 'link' => "report.php?id=$cm->id", 'type' => 'title'); - $navlinks[] = array('name' => "$strattempt $attempt - ".fullname($userdata), 'link' => "report.php?a=$a&user=$user&attempt=$attempt", 'type' => 'title'); + $navlinks[] = array('name' => "$strattempt $attempt - ".fullname($userdata), 'link' => "report.php?a=$a&user=$user&attempt=$attempt", 'type' => 'title'); $navlinks[] = array('name' => $sco->title, 'link' => '', 'type' => 'title'); $navigation = build_navigation($navlinks, $cm); @@ -151,9 +151,9 @@ for ($a = 1; $a<=$attempt; $a++) { $row = array(); $row[] = print_user_picture($scouser->userid, $course->id, $userdata->picture, false, true); - $row[] = ''. + $row[] = ''. fullname($userdata).''; - $row[] = ''.$a.''; + $row[] = ''.$a.''; $select = 'scormid = ? and userid = ? and attempt = ?'; $params = array($scorm->id, $scouser->userid, $a); $timetracks = $DB->get_record_select('scorm_scoes_track', $select, $params, 'min(timemodified) as started, max(timemodified) as last'); @@ -174,7 +174,7 @@ print_simple_box_start('center'); echo '
'."\n"; print_user_picture($user, $course->id, $userdata->picture, false, false); - echo "wwwroot/user/view.php?id=$user&course=$course->id\">". + echo "wwwroot/user/view.php?id=$user&course=$course->id\">". "$userdata->firstname $userdata->lastname
"; echo get_string('attempt','scorm').': '.$attempt; echo '
'."\n"; @@ -202,7 +202,7 @@ if ($trackdata->status == '') { $trackdata->status = 'notattempted'; } - $detailslink = ''.get_string('details','scorm').''; } else { $trackdata->status = 'notattempted'; @@ -211,7 +211,7 @@ } $strstatus = get_string($trackdata->status,'scorm'); $row[] = ''.$strstatus.' '.format_string($sco->title); + $strstatus.'" /> '.format_string($sco->title); $row[] = get_string($trackdata->status,'scorm'); $row[] = $trackdata->total_time; $row[] = $score; @@ -233,10 +233,10 @@ if (!empty($userdata)) { print_simple_box_start('center'); //print_heading(format_string($sco->title)); - print_heading(''.format_string($sco->title).''); + print_heading(''.format_string($sco->title).''); echo '
'."\n"; print_user_picture($user, $course->id, $userdata->picture, false, false); - echo "wwwroot/user/view.php?id=$user&course=$course->id\">". + echo "wwwroot/user/view.php?id=$user&course=$course->id\">". "$userdata->firstname $userdata->lastname
"; $scoreview = ''; if ($trackdata = scorm_get_tracks($sco->id,$user,$attempt)) { @@ -252,7 +252,7 @@ } $strstatus = get_string($trackdata->status,'scorm'); echo ''.$strstatus.' '.$trackdata->total_time.'
'.$scoreview.'
'; + $strstatus.'" /> '.$trackdata->total_time.'
'.$scoreview.'
'; echo '
'."\n"; echo '

'.get_string('details','scorm').'

';