@ -1,4 +1,4 @@
<?php // $Id: resourcelinker.inc.php 11077 2007-02-08 10:08:09Z pcool $
<?php // $Id: resourcelinker.inc.php 12263 2007-05-03 13:34:40Z elixir_julian $
/*
==============================================================================
Dokeos - elearning and course management software
@ -73,7 +73,7 @@ function show_folder_up()
if ($level == 1)
{
echo "< a href = '".$_SERVER[' PHP_SELF ' ] . " ? content = Document&source_forum=".$_GET['source_forum']."&source_id= $source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no'> < img src = '../img/folder_up.gif' border = '0' / > ".get_lang('LevelUp')."< / a > ";
echo "< a href = '".api_get_self()."?content=Document&source_forum=".$_GET[' source_forum ' ] . " & amp ; source_id = $source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no' > < img src = '../img/folder_up.gif' border = '0' / > ".get_lang('LevelUp')."< / a > ";
}
if ($level and $level != 0 and $level != 1)
{
@ -82,7 +82,7 @@ function show_folder_up()
$last=count($folder_temp)-1;
unset($folder_temp[$last]);
$folder_up=implode('/',$folder_temp);
echo "< a href = '".$_SERVER[' PHP_SELF ' ] . " ? content = Document&source_forum=".$_GET['source_forum']."&folder= $folder_up&source_id=$source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no'> < img src = '../img/folder_up.gif' border = '0' / > ".get_lang('LevelUp')."< / a > ";
echo "< a href = '".api_get_self()."?content=Document&source_forum=".$_GET[' source_forum ' ] . " & amp ; folder = $folder_up&source_id=$source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no' > < img src = '../img/folder_up.gif' border = '0' / > ".get_lang('LevelUp')."< / a > ";
}
}
@ -130,7 +130,7 @@ function show_documents($folder)
// folders should be clickable
if (file_or_folder($row['path']))
{
echo "< a href = '".$_SERVER[' PHP_SELF ' ] . " ? content = Document";
echo "< a href = '".api_get_self()."?content= Document";
echo "& folder=".substr($row['path'],1)."& source_id=$source_id& source_forum=".$_GET['source_forum']."& action=$action& learnpath_id=$learnpath_id& chapter_id=$chapter_id& originalresource=no'>".substr($row['path'],1).'< / a > < br / > ';
}
else
@ -405,7 +405,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($icon == 'icon') { echo "< img src = '../img/agenda.gif' align = \"absmiddle\" alt = 'agenda' > "; }
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Agenda&origin=$origin&agenda_id=$agenda_id#$id_in_path\" class = '$completed' > ".shorten($myrow["title"],($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Agenda&origin=$origin&agenda_id=$agenda_id#$id_in_path\" class = '$completed' > ".shorten($myrow["title"],($length-3*$level))."< / a > ";
$items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Agenda&origin=$origin&agenda_id=$agenda_id#$id_in_path";
if ($desc != '')
{
@ -464,7 +464,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($icon == 'icon') { echo "< img src = '../img/valves.gif' align = \"absmiddle\" alt = 'ad valvas' > "; }
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Ad_Valvas&origin=$origin&ann_id=$ann_id#$id_in_path\" class = '$completed' > ".shorten($title,($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Ad_Valvas&origin=$origin&ann_id=$ann_id#$id_in_path\" class = '$completed' > ".shorten($title,($length-3*$level))."< / a > ";
$items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Ad_Valvas&origin=$origin&ann_id=$ann_id#$id_in_path";
if ($desc != '')
{
@ -522,7 +522,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
$thelink=$myrow["url"];
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=$linktype&origin=$origin&thelink=$thelink#$id_in_path\" class = '$completed' > ".shorten($myrow["title"],($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=$linktype&origin=$origin&thelink=$thelink#$id_in_path\" class = '$completed' > ".shorten($myrow["title"],($length-3*$level))."< / a > ";
$items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=$linktype&origin=$origin&thelink=$thelink#$id_in_path";
if ($desc != '')
{
@ -577,7 +577,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($icon == 'icon') { echo "< img src = '../img/quiz.gif' align = \"absmiddle\" alt = 'quizz' > "; }
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Exercise&origin=$origin&exerciseId=".$myrow["id"]."#$id_in_path\" class = '$completed' > ".shorten($myrow["title"],($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Exercise&origin=$origin&exerciseId=".$myrow["id"]."#$id_in_path\" class = '$completed' > ".shorten($myrow["title"],($length-3*$level))."< / a > ";
$items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Exercise&origin=$origin&exerciseId=".$myrow["id"]."#$id_in_path";
if ($desc != '')
{
@ -635,7 +635,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=HotPotatoes&origin=$origin&id=$id#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=HotPotatoes&origin=$origin&id=$id#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > ";
$items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=HotPotatoes&origin=$origin&id=$id#$id_in_path";
if ($desc != '')
{
@ -685,7 +685,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
$forumparameters="forum=".$myrow["forum_id"]."&md5=".$myrow["md5"];
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Forum&origin=$origin&forumparameters=$forumparameters#$id_in_path\" class = '$completed' > ".shorten($myrow["forum_name"],($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Forum&origin=$origin&forumparameters=$forumparameters#$id_in_path\" class = '$completed' > ".shorten($myrow["forum_name"],($length-3*$level))."< / a > ";
$items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Forum&origin=$origin&forumparameters=$forumparameters#$id_in_path";
if ($desc != '')
{
@ -737,7 +737,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($icon == 'icon') { echo "< img src = '../img/forum.gif' align = \"absmiddle\" alt = 'forum' > "; }
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Thread&origin=$origin&topic=".$myrow["topic_id"]."&forum=".$myrow["forum_id"]."&md5=".$myrow["md5"]."#$id_in_path\" class = '$completed' > ".shorten($myrow["topic_title"],($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Thread&origin=$origin&topic=".$myrow["topic_id"]."&forum=".$myrow["forum_id"]."&md5=".$myrow["md5"]."#$id_in_path\" class = '$completed' > ".shorten($myrow["topic_title"],($length-3*$level))."< / a > ";
$items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Thread&origin=$origin&topic=".$myrow["topic_id"]."&forum=".$myrow["forum_id"]."&md5=".$myrow["md5"]."#$id_in_path";
if ($desc != '')
{
@ -801,7 +801,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($icon == 'icon') { echo "< img src = '../img/forum.gif' align = \"absmiddle\" alt = 'forum' > "; }
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Post&origin=$origin&posternom=$posternom&posterprenom=$posterprenom&posttime=$posttime&posttext=$posttext&posttitle=$posttitle#$id_in_path\" class = '$completed' > ".shorten($myrow_titel["post_title"],($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Post&origin=$origin&posternom=$posternom&posterprenom=$posterprenom&posttime=$posttime&posttext=$posttext&posttitle=$posttitle#$id_in_path";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Post&origin=$origin&posternom=$posternom&posterprenom=$posterprenom&posttime=$posttime&posttext=$posttext&posttitle=$posttitle#$id_in_path\" class = '$completed' > ".shorten($myrow_titel["post_title"],($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Post&origin=$origin&posternom=$posternom&posterprenom=$posterprenom&posttime=$posttime&posttext=$posttext&posttitle=$posttitle#$id_in_path";
if ($desc != '')
{
if ($icon != 'wrap')
@ -857,7 +857,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($icon == 'icon') { echo "< img src = '../img/$image' align = \"absmiddle\" alt = '$image' > "; }
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Document&origin=$origin&docurl=".$myrow["path"]."#$id_in_path\" class = '$completed' > ".shorten($filename,($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Document&origin=$origin&docurl=".$myrow["path"]."#$id_in_path\" class = '$completed' > ".shorten($filename,($length-3*$level))."< / a > ";
if ($desc != '')
{
if ($icon != 'wrap')
@ -914,7 +914,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($icon == 'icon') { echo "< img src = '../img/works.gif' align = \"absmiddle\" > "; }
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Assignments&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Assignments&origin=$origin#$id_in_path";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Assignments&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Assignments&origin=$origin#$id_in_path";
if ($desc != '')
{
if ($icon != 'wrap')
@ -958,7 +958,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Dropbox&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Dropbox&origin=$origin#$id_in_path";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Dropbox&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Dropbox&origin=$origin#$id_in_path";
if ($desc != '') {
if ($icon != 'wrap') {
echo "< / tr > < tr > < td > < / td > < td > < / td > < td > < div class = 'description' > ".shorten($desc,($length-3*$level))."< / div > < / td > < / tr > "; }
@ -995,7 +995,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Introduction_text&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > ";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Introduction_text&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > ";
$items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Introduction_text&origin=$origin#$id_in_path";
if ($desc != '') {
if ($icon != 'wrap') {
@ -1034,7 +1034,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Course_description&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Course_description&origin=$origin#$id_in_path";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Course_description&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Course_description&origin=$origin#$id_in_path";
if ($desc != '') {
if ($icon != 'wrap') {
echo "< / tr > < tr > < td > < / td > < td > < / td > < td > < div class = 'description' > ".shorten($desc,($length-3*$level))."< / div > < / td > < / tr > "; }
@ -1072,7 +1072,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Groups&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Groups&origin=$origin#$id_in_path";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Groups&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Groups&origin=$origin#$id_in_path";
if ($desc != '') {
if ($icon != 'wrap') {
echo "< / tr > < tr > < td > < / td > < td > < / td > < td > < div class = 'description' > ".shorten($desc,($length-3*$level))."< / div > < / td > < / tr > "; }
@ -1109,7 +1109,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
echo "< a href = \"".$_SERVER['PHP_SELF'] ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Users&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Users&origin=$origin#$id_in_path";
echo "< a href = \"".api_get_self() ."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Users&origin=$origin#$id_in_path\" class = '$completed' > ".shorten($name,($length-3*$level))."< / a > "; $items[]=$_SERVER['PHP_SELF']."?action=closelesson&source_forum=".$_GET['source_forum']."&how=complete&id_in_path=$id_in_path&learnpath_id=$learnpath_id&type=Users&origin=$origin#$id_in_path";
if ($desc != '') {
if ($icon != 'wrap') {
echo "< / tr > < tr > < td > < / td > < td > < / td > < td > < div class = 'description' > ".shorten($desc,($length-3*$level))."< / div > < / td > < / tr > "; }
@ -1615,12 +1615,12 @@ function display_resources($showdeleteimg)
if ($showdeleteimg==1)
{
//if (strstr($_SERVER['REQUEST_URI'],"?id="))
// { echo " < a href = '".$_SERVER[' PHP_SELF ' ] . " ? id = ".$output['id']. "& amp ; " ; }
// { echo " < a href = '".api_get_self()."?id=".$output[' id ' ] . " & amp ; " ; }
//else
// { echo " < a href = '".$_SERVER[' PHP_SELF ' ] . " ? " ; }
// { echo " < a href = '".api_get_self()."?" ; }
//action=$action& id=$id&
//echo "action=$action& id=$id& originalresource=no& resourceaction=removeresource& key=".key($addedresource)."'>< img src = '../img/delete.gif' border = '0' alt = 'resource ".get_lang(' Delete ' ) . " ' / > < / a > < br / > ";
echo "< a href = ".$_SERVER['PHP_SELF'] ." ? showresources = true&source_forum=".$_GET['source_forum']."&resourceaction=removeresource&locationkey=".key($addedresource)."&source_id=$source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no > < img src = '../img/delete.gif' border = '0' alt = 'resource ".get_lang(' Delete ' ) . " ' / > < / a > < br / > ";
echo "< a href = ".api_get_self() ." ? showresources = true&source_forum=".$_GET['source_forum']."&resourceaction=removeresource&locationkey=".key($addedresource)."&source_id=$source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no > < img src = '../img/delete.gif' border = '0' alt = 'resource ".get_lang(' Delete ' ) . " ' / > < / a > < br / > ";
}
echo '< / td > < / tr > ';
next($addedresource);
@ -1671,11 +1671,11 @@ function showorhide_addresourcelink($type, $id)
{
if ($type=="Document")
{
echo "< a href = ".$_SERVER['PHP_SELF'] ." ? content = ".$type." & folder = ".$folder." & source_forum = ".$_GET['source_forum']." & add = ".$id." & source_id = $source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no > ".$lang_add_it_or_resource."< / a > ";
echo "< a href = ".api_get_self() ." ? content = ".$type." & folder = ".$folder." & source_forum = ".$_GET['source_forum']." & add = ".$id." & source_id = $source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no > ".$lang_add_it_or_resource."< / a > ";
}
else
{
echo "< a href = '".$_SERVER[' PHP_SELF ' ] . " ? content = ".$type." & source_forum = ".$_GET['source_forum']. " & add = ".$id." & source_id = $source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no&target=$target' > ".$lang_add_it_or_resource."< / a > ";
echo "< a href = '".api_get_self()."?content=".$type."&source_forum=".$_GET[' source_forum ' ] . " & add = ".$id." & source_id = $source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no&target=$target' > ".$lang_add_it_or_resource."< / a > ";
}
}
}
@ -1684,7 +1684,7 @@ function showorhide_addresourcelink($type, $id)
if ($_SESSION['addedresource']!==$type or $_SESSION['addedresourceid']!==$id)
{
if ($from_learnpath) { $lang_add_it_or_resource=get_lang('AddIt'); } else { $lang_add_it_or_resource=get_lang('AddResource'); }
echo "< a href = '".$_SERVER[' PHP_SELF ' ] . " ? content = ".$type." & folder = ".$folder." & source_forum = ".$_GET['source_forum']. " & add = ".$id." & source_id = $source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no&target=$target' > ".$lang_add_it_or_resource."< / a > ";
echo "< a href = '".api_get_self()."?content=".$type."&folder=".$folder."&source_forum=".$_GET[' source_forum ' ] . " & add = ".$id." & source_id = $source_id&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no&target=$target' > ".$lang_add_it_or_resource."< / a > ";
}
}
}