@ -1,4 +1,4 @@
<?php // $Id: resourcelinker.inc.php 12263 2007-05-03 13:34:40 Z elixir_julian $
<?php // $Id: resourcelinker.inc.php 12272 2007-05-03 14:40:45 Z elixir_julian $
/*
==============================================================================
Dokeos - elearning and course management software
@ -406,7 +406,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
$items[]=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";
if ($desc != '')
{
if ($icon != 'wrap')
@ -465,7 +465,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
$items[]=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";
if ($desc != '')
{
if ($icon != 'wrap')
@ -523,7 +523,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
$items[]=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";
if ($desc != '')
{
if ($icon != 'wrap')
@ -578,7 +578,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
$items[]=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";
if ($desc != '')
{
if ($icon != 'wrap')
@ -636,7 +636,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
$items[]=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";
if ($desc != '')
{
if ($icon != 'wrap')
@ -686,7 +686,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
$items[]=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";
if ($desc != '')
{
if ($icon != 'wrap')
@ -738,7 +738,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
$items[]=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";
if ($desc != '')
{
if ($icon != 'wrap')
@ -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 = \"".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";
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[]=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";
if ($desc != '')
{
if ($icon != 'wrap')
@ -868,7 +868,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
{
echo "< div class = 'description' > ".shorten($desc,($length-3*$level))."< / div > ";
}
} $items[]=$_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";
} $items[]=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";
}
else
{
@ -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 = \"".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";
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[]=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";
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 = \"".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";
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[]=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";
if ($desc != '') {
if ($icon != 'wrap') {
echo "< / tr > < tr > < td > < / td > < td > < / td > < td > < div class = 'description' > ".shorten($desc,($length-3*$level))."< / div > < / td > < / tr > "; }
@ -996,7 +996,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
$items[]=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";
if ($desc != '') {
if ($icon != 'wrap') {
echo "< / tr > < tr > < td > < / td > < td > < / td > < td > < div class = 'description' > ".shorten($desc,($length-3*$level))."< / div > < / td > < / tr > "; }
@ -1034,7 +1034,7 @@ function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_
if ($builder != 'builder')
{
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";
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[]=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";
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 = \"".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";
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[]=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";
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 = \"".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";
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[]=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";
if ($desc != '') {
if ($icon != 'wrap') {
echo "< / tr > < tr > < td > < / td > < td > < / td > < td > < div class = 'description' > ".shorten($desc,($length-3*$level))."< / div > < / td > < / tr > "; }
@ -1162,7 +1162,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
{
@ -1177,7 +1177,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
if ($builder != 'builder')
{
$link .= $_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=$id#$id_in_path";
$link .= 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=$id#$id_in_path";
}
else
{
@ -1196,7 +1196,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
$thelink=$myrow["url"];
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
{
@ -1218,7 +1218,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
{
@ -1240,7 +1240,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
{
@ -1264,7 +1264,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
$forumparameters="forum=".$myrow["forum_id"]."&md5=".$myrow["md5"];
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
{
@ -1285,7 +1285,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
{
@ -1317,7 +1317,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
{
@ -1339,7 +1339,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
@ -1360,7 +1360,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
case "Assignments":
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
}
else
{
@ -1370,7 +1370,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
case "Dropbox":
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
} else {
$link .= "../dropbox/index.php";
}
@ -1378,7 +1378,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
case "Introduction_text":
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
} else {
$s=api_get_path('WEB_COURSE_PATH')."$_cid/index.php?intro_cmdEdit=1";
$link .= $s;
@ -1387,7 +1387,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
case "Course_description":
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
} else {
$s=api_get_path('WEB_CODE_PATH')."course_description";
$link .= $s;
@ -1397,7 +1397,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
} else {
$link .= "../group/group.php?origin=$origin";
}
@ -1405,7 +1405,7 @@ function get_addedresource_link_in_learnpath($type, $id, $id_in_path)
case "Users":
if ($builder != 'builder')
{
$link .= $_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";
$link .= 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";
} else {
$link .= "../user/user.php?origin=$origin";
}