*** empty log message ***
This commit is contained in:
@@ -133,8 +133,8 @@ function SCORMapi1_2() {
|
||||
$objectives = '';
|
||||
foreach($userdata as $element => $value){
|
||||
if (substr($element,0,14) == 'cmi.objectives') {
|
||||
preg_match('/.(\d+)./',$element,$matches);
|
||||
$element = preg_replace('/.(\d+)./',"_\$1.",$element);
|
||||
preg_match('/\.(\d+)\./',$element,$matches);
|
||||
$element = preg_replace('/\.(\d+)\./',".\$1.",$element);
|
||||
if ($matches[1] == $count) {
|
||||
$count++;
|
||||
$end = strpos($element,$matches[1])+strlen($matches[1]);
|
||||
|
||||
@@ -261,7 +261,8 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
||||
if (isset($_COOKIE['hide:SCORMitem'.$nextsco->id])) {
|
||||
$icon = 'plus';
|
||||
}
|
||||
$result->toc .= '<a href="javascript:expandCollide(img'.$sublist.','.$sublist.','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$scormpixdir.'/'.$icon.'.gif" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
//$result->toc .= '<a href="javascript:expandCollide(\'img'.$sublist.'\',\''.$sublist.'\','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$scormpixdir.'/'.$icon.'.gif" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
$result->toc .= '<a href="#" onclick="elementToggleHide(\''.$sublist.'\',true);"><img id="img'.$sublist.'" src="'.$scormpixdir.'/'.$icon.'.gif" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
} else if ($isvisible) {
|
||||
$result->toc .= '<img src="'.$scormpixdir.'/spacer.gif" />';
|
||||
}
|
||||
@@ -369,15 +370,16 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
||||
var nn=document.ids?true:false
|
||||
var w3c=document.getElementById?true:false
|
||||
var beg=nn?"document.ids.":w3c?"document.getElementById(":"document.all.";
|
||||
var mid=w3c?").style":".style";
|
||||
var style=w3c?").style":".style";
|
||||
var mid=w3c?")":"";
|
||||
|
||||
if (eval(beg+list+mid+".display") != "none") {
|
||||
which.src = "'.$scormpixdir.'/plus.gif";
|
||||
eval(beg+list+mid+".display=\'none\';");
|
||||
eval(beg+which+mid+".src=\''.$scormpixdir.'/plus.gif\';");
|
||||
eval(beg+list+style+".display=\'none\';");
|
||||
new cookie("hide:SCORMitem" + item, 1, 356, "/").set();
|
||||
} else {
|
||||
which.src = "'.$scormpixdir.'/minus.gif";
|
||||
eval(beg+list+mid+".display=\'block\';");
|
||||
eval(beg+which+mid+".src=\''.$scormpixdir.'/minus.gif\';");
|
||||
eval(beg+list+style+".display=\'block\';");
|
||||
new cookie("hide:SCORMitem" + item, 1, -1, "/").set();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,8 +166,8 @@ function SCORMapi1_3() {
|
||||
$objectives = '';
|
||||
foreach($userdata as $element => $value){
|
||||
if (substr($element,0,14) == 'cmi.objectives') {
|
||||
preg_match('/.(\d+)./',$element,$matches);
|
||||
$element = preg_replace('/.(\d+)./',".N\$1.",$element);
|
||||
preg_match('/\.(\d+)\./',$element,$matches);
|
||||
$element = preg_replace('/\.(\d+)\./',".N\$1.",$element);
|
||||
if ($matches[1] == $count) {
|
||||
$count++;
|
||||
$end = strpos($element,$matches[1])+strlen($matches[1]);
|
||||
|
||||
Reference in New Issue
Block a user