Permalink
Browse files

removed white spaces

  • Loading branch information...
bobopinna
bobopinna committed Nov 2, 2006
1 parent c7c1ade commit 59b08215b261ff82d19d42a16925bb39aba28b96
Showing with 6 additions and 2 deletions.
  1. +1 −1 mod/scorm/datamodels/scormlib.php
  2. +5 −1 mod/scorm/report.php
@@ -31,7 +31,7 @@ function scorm_get_manifest($blocks,$scoes) {
if (isset($metadata['tagData']) && (preg_match("/^(1\.2)$|^(CAM )?(1\.3)$/",$metadata['tagData'],$matches))) {
$scoes->version = 'SCORM_'.$matches[count($matches)-1];
} else {
- if (isset($metadata['tagData']) && (preg_match("/^2004 3rd Edition$/",$metadata['tagData'],$matches))) {
+ if (isset($metadata['tagData']) && (preg_match("/^2004 3rd Edition$/",$metadata['tagData'],$matches))) {
$scoes->version = 'SCORM_1.3';
} else {
$scoes->version = 'SCORM_1.2';
View
@@ -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\">".

0 comments on commit 59b0821

Please sign in to comment.