@ -1,4 +1,4 @@
<?php // $Id: resourcelinker.inc.php 9305 2006-10-03 13:02:52Z bm ol $
<?php // $Id: resourcelinker.inc.php 9988 2006-11-15 01:28:32Z pco ol $
/*
/*
==============================================================================
==============================================================================
Dokeos - elearning and course management software
Dokeos - elearning and course management software
@ -363,7 +363,7 @@ function display_addedresource_link($type, $id, $style='')
function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_path, $builder, $icon, $level = 0)
function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_path, $builder, $icon, $level = 0)
{
{
global $_course, $learnpath_id, $tbl_learnpath_item, $items;
global $_course, $learnpath_id, $tbl_learnpath_item, $items;
global $_course, $curDirPath, $rootWeb, $enableDocumentParsing, $_course, $_uid , $_cid, $rootSys;
global $_course, $curDirPath, $rootWeb, $enableDocumentParsing, $_course, $_user , $_cid, $rootSys;
$hyperlink_target_parameter = ''; //or e.g. 'target="_blank"'
$hyperlink_target_parameter = ''; //or e.g. 'target="_blank"'
@ -650,7 +650,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
}
}
else
else
{
{
echo " < a href = \"../exercice/showinframes.php?file=$path&cid=$cid&uid=$_uid\" class = '$completed' target = '_blank' > ".shorten($name,($length-3*$level))."< / a > ";
echo " < a href = \"../exercice/showinframes.php?file=$path&cid=$cid&uid=". $_user['user_ id']." \" class = '$completed' target = '_blank' > ".shorten($name,($length-3*$level))."< / a > ";
}
}
break;
break;
@ -1135,7 +1135,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
{
{
global $_course, $learnpath_id, $tbl_learnpath_item, $items;
global $_course, $learnpath_id, $tbl_learnpath_item, $items;
global $curDirPath, $rootWeb, $enableDocumentParsing, $_uid , $_cid, $rootSys;
global $curDirPath, $rootWeb, $enableDocumentParsing, $_user , $_cid, $rootSys;
$hyperlink_target_parameter = ""; //or e.g. target='_blank'
$hyperlink_target_parameter = ""; //or e.g. target='_blank'
$builder = 'player';
$builder = 'player';
@ -1243,7 +1243,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
}
}
else
else
{
{
$link .= "../exercice/showinframes.php?file=$path&cid=$cid&uid=$_uid";
$link .= "../exercice/showinframes.php?file=$path&cid=$cid&uid=". $_user['user_ id']." ";
}
}
break;
break;