modpixpath.'/scorm/pix'; $result = new stdClass(); $result->toc = "\n"; } $level = $newlevel; } else { $i = $level; $closelist = ''; while (($i > 0) && ($parents[$level] != $sco->parent)) { $closelist .= "\t\t\n"; $i--; } if (($i == 0) && ($sco->parent != $currentorg)) { $style = ''; if (isset($_COOKIE['hide:SCORMitem'.$sco->id])) { $style = ' style="display: none;"'; } $result->toc .= "\t\t
  • \n"; } if ($play) { $sco = get_record('scorm_scoes','id',$scoid); $sco->previd = $previd; $sco->nextid = $nextid; $result->sco = $sco; $result->incomplete = $incomplete; } else { $result->incomplete = $incomplete; } } $result->toc .= "\t\n"; if ($scorm->hidetoc == 0) { $result->toc .= ' '."\n"; } $url = $CFG->wwwroot.'/mod/scorm/player.php?a='.$scorm->id.'&currentorg='.$currentorg.$modestr.'&scoid='; $result->tocmenu = popup_form($url,$tocmenus, "tocmenu", $sco->id, '', '', '', true); return $result; } ?>