$fileList['path'][] = $attribute['path'][$keyAttribute]; } else { $fileList['comment'][] = false; $fileList['visible'][] = false; $fileList['filename'][] = false; } } // end while ($file = readdir($handle)) /* * Sort alphabetically the File list */ if ($fileList) { array_multisort($fileList['type'], $fileList['name'], $fileList['size'], $fileList['date'], $fileList['comment'], $fileList['visible'], $fileList['filename']); } closedir($handle); unset($attribute); // display list of available documents $tool_content .= display_my_documents($dialogBox, $style); //################################## MODULES LIST ####################################\\ //$tool_content .= "<br />"; //$tool_content .= disp_tool_title($langPathContentTitle); //$tool_content .= '<a href="learningPathAdmin.php?course=$course_code"><< '.$langBackToLPAdmin.'</a>'; // display list of modules used by this learning path //$tool_content .= display_path_content(); chdir($pwd); draw($tool_content, 2, null, $head_content);
} /* BUILD THE QUERY TO DELETE DEPRECATED DB RECORDS */ $nbrRecToDel = sizeof($recToDel); $queryClause = ""; for ($i = 0; $i < $nbrRecToDel; $i++) { $queryClause .= "{$modifier} path LIKE \"" . claro_sql_escape($recToDel[$i]) . "%\""; if ($i < $nbrRecToDel - 1) { $queryClause .= " OR "; } } $sql = "DELETE\n FROM `" . $dbTable . "`\n WHERE " . $queryClause; claro_sql_query($sql); $sql = "DELETE\n FROM `" . $dbTable . "`\n WHERE `comment` LIKE ''\n AND `visibility` LIKE 'v'"; claro_sql_query($sql); /* The second query clean the DB 'in case of' empty records (no comment an visibility=v) These kind of records should'nt be there, but we never know... */ } } // end if (isset($attribute)) closedir($handle); unset($attribute); // display list of available documents $out .= display_my_documents($dialogBox); //####################################################################################\\ //################################## MODULES LIST ####################################\\ //####################################################################################\\ $out .= claro_html_tool_title(get_lang('Learning path content')); // display list of modules used by this learning path $out .= display_path_content(); $claroline->display->body->appendContent($out); echo $claroline->display->render();