function SCORM12_Sequencing($idReference, $idUser, $idscorm_organization, $dbconn, $prefix) { if ($idUser === FALSE) { $this->idUser = sl_sal_getUserId(); } else { $this->idUser = $idUser; } $this->idReference = $idReference; $this->idscorm_organization = $idscorm_organization; $this->dbconn = $dbconn; $this->prefix = $prefix; }
\t// --> \t</script> </head> _TEXTEND; echo '<body id="page_head" class="' . ($playertemplate != '' ? $playertemplate . '_back' : 'standard_back') . '" onload="Initialize()">'; echo "<div id=\"headnav\">\n" . "\t<div>\n" . "\t\t<div id=\"prevblocklink\" style=\"display:block; float: left;\">\n" . "\t\t\t<A id=\"prevsco\" href=\"#\" onClick=\"navPrev(); return false;\"><img class=\"imgnav\" id=\"imgprev\" src=\"" . $imagesPath . "bt_sx.png\" alt=\"Back\" /></A>\n" . "\t\t\t<span id=\"prevlink\"></span>" . "\t\t</div>\n" . "\t\t<div id=\"nextblocklink\" style=\"display:block; float: left;\">\n" . "\t\t\t<A id=\"nextsco\" href=\"#\" onClick=\"navNext(); return false;\"><img class=\"imgnav\" id=\"imgnext\" src=\"" . $imagesPath . "bt_dx.png\" alt=\"Next\" /></A>\n" . "\t\t\t<span id=\"nextlink\"></span>\n" . "\t\t</div>\n" . "\t\t<script type=\"text/javascript\">\n" . "\t\t<!--\n" . "\t\t\tif(window.top.isShowTree()) {\n" . "\t\t\t\tdocument.write('<a id=\"hidetree\" style=\"display:inline\" href=\"#\" onClick=\"hideTree(); return false;\"><img class=\"imgnav\" src=\"" . $imagesPath . "hide_tree.png\" alt=\"Hide Tree\" /></a>');\n" . "\t\t\t\tdocument.write('<a id=\"showtree\" style=\"display:none\" href=\"#\" onClick=\"showTree(); return false;\"><img class=\"imgnav\" src=\"" . $imagesPath . "show_tree.png\" alt=\"Show Tree\" /></a>');\n" . "\t\t\t} else {\n" . "\t\t\t\tdocument.write('<a id=\"hidetree\" style=\"display:none\" href=\"#\" onClick=\"hideTree(); return false;\"><img class=\"imgnav\" src=\"" . $imagesPath . "hide_tree.png\" alt=\"Hide Tree\" /></a>');\n" . "\t\t\t\tdocument.write('<a id=\"showtree\" style=\"display:inline\" href=\"#\" onClick=\"showTree(); return false;\"><img class=\"imgnav\" src=\"" . $imagesPath . "show_tree.png\" alt=\"Show Tree\" /></a>');\n" . "\t\t\t}\n" . "\t\t-->\n" . "\t\t</script>\n" . "\t</div>\n" . "</div>\n"; /*echo '<div id="headerLogo">'; echo '<img src="'.$imagesPath.'logo.jpg" alt="logo spaghettilearning scorm" />'; echo '</div>';*/ //echo '<div class="header">'."\n" // ."\t".'<img class="immagineSx logo_sx" src="'.getPathImage().'scorm/logo.png" alt="Left logo" />'."\n"; //echo "<img id=\"immagineSx\" src=\"../../templates/".$_SESSION["sesTemplate"]."/images/scorm/logo.png\" alt=\"Logo\" />\n"; // statistics echo '<div id="statistics">'; $itemtrack = new Scorm_ItemsTrack($dbconn, $GLOBALS['prefix_lms']); $rs = $itemtrack->getItemTrack(sl_sal_getUserId(), $idReference, NULL, $idscorm_organization); if ($rs === FALSE) { echo "Lesson never initiated"; } else { $report = mysql_fetch_assoc($rs); echo Lang::t('_PROGRESS', 'scorm') . " " . $report['nDescendantCompleted'] . "/" . $report['nDescendant'] . "<br />"; $widthMax = 220; $widthOne = ($widthMax - $report['nDescendant']) / $report['nDescendant']; $posRel = 2; echo '<div class="scorm_progressbarstat">'; //echo "<div >"; for ($nRep = 0; $nRep < $report['nDescendantCompleted']; $nRep++, $posRel += $widthOne + 1) { echo "<div class=\"scorm_complete\" style=\"width: " . $widthOne . "px; left:" . $posRel . "px; top: 2px;\"></div>"; //echo "<div class=\"scorm_complete\" style=\"width: ".$widthOne."%;\" > </div>"; } for (; $nRep < $report['nDescendant']; $nRep++, $posRel += $widthOne + 1) {