MERGED MDL-8872 from 1.8 removed "course" mentions from scorm interface

This commit is contained in:
moodler
2007-03-13 08:47:52 +00:00
parent 7989f2ee28
commit bceb6eb9d8
2 changed files with 12 additions and 3 deletions
+1
View File
@@ -19,6 +19,7 @@ $string['browserepository'] = 'Browse repository';
$string['chooseapacket'] = 'Choose or update a package';
$string['completed'] = 'Completed';
$string['confirmloosetracks'] = 'WARNING: The package seems to be changed or modified. If the package structure is changed, some users tracks may be lost during update process.';
$string['contents'] = 'Contents';
$string['coursepacket'] = 'Course package';
$string['coursestruct'] = 'Course structure';
$string['datadir'] = 'Filesystem Error: Can\'t create course data directory';
+11 -3
View File
@@ -14,6 +14,15 @@
$mode = optional_param('mode', 'normal', PARAM_ALPHA); // navigation mode
$currentorg = optional_param('currentorg', '', PARAM_RAW); // selected organization
$newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt
$scoid=$_GET['scoid'];
//$scoid=$_POST['scoid'];
//echo 'SCOID'.$scoid;
if ($sco1 = get_record("scorm_scoes", "id", $scoid,"parent",'/')) {
$scoid++;
}
if (!empty($id)) {
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
@@ -124,10 +133,9 @@
if ($scorm->popup == 1) {
$bodyscript = 'onunload="main.close();"';
}
$exitlink = '(<a href="'.$CFG->wwwroot.'/course/view.php?id='.$cm->course.'">'.get_string('exit','scorm').'</a>)&nbsp;';
print_header($pagetitle, "$course->fullname",
"$navigation <a target='{$CFG->framename}' href='view.php?id=$cm->id'>".format_string($scorm->name,true)."</a>",
'', '', true, $exitlink.update_module_button($cm->id, $course->id, $strscorm), '', false, $bodyscript);
'', '', true, update_module_button($cm->id, $course->id, $strscorm), '', false, $bodyscript);
if ($sco->scormtype == 'sco') {
?>
<script language="JavaScript" type="text/javascript" src="request.js"></script>
@@ -152,7 +160,7 @@
if ($scorm->hidetoc == 0) {
?>
<div id="tocbox" class="generalbox">
<div id="tochead" class="header"><?php print_string('coursestruct','scorm') ?></div>
<div id="tochead" class="header"><?php print_string('contents','scorm') ?></div>
<div id="toctree">
<?php echo $result->toc; ?>
</div>