if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) { // Show message to confirm that a tools must be hide from aivailable tools // visibility 0,1->2 if ($askDelete) { $content .= "<table align=\"center\"><tr><td colspan=\"4\">\n <br /><br /><font color=\"#ff0000\"> <strong>" . get_lang('DelLk') . "</strong>\n\t\t\t<br /> \n\t\t\t<a href=\"" . api_get_self() . "\">" . get_lang('No') . "</a>\n\t\t\t | \n\t\t\t<a href=\"" . api_get_self() . "?delete=yes&id={$id}\">" . get_lang('Yes') . "</a>\n\t\t\t</font>\n\t\t\t<br /><br /><br />\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</table>\n"; } elseif (isset($delete) && $delete) { Database::query("DELETE FROM {$TBL_ACCUEIL} WHERE c_id = {$course_id} AND id = {$id} AND added_tool=1"); } } $content .= "<table class=\"item\" align=\"center\" border=\"0\" width=\"95%\">\n"; /* TOOLS FOR EVERYBODY */ $content .= "<tr>\n<td colspan=\"6\"> </td>\n</tr>\n"; $content .= "<tr>\n<td colspan=\"6\">"; $content .= CourseHome::show_tool_3column('Basic'); $content .= CourseHome::show_tool_3column('External'); $content .= "</td>\n</tr>\n"; /* PROF ONLY VIEW */ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) { $content .= "<tr><td colspan=\"6\"><hr noshade size=\"1\" /></td></tr>\n" . "<tr><td colspan=\"6\"><font color=\"#F66105\">\n" . get_lang('CourseAdminOnly') . "</font>\n\t\t</td></tr>\n"; $content .= "<tr>\n<td colspan=\"6\">"; $content .= CourseHome::show_tool_3column('courseAdmin'); $content .= "</td>\n</tr>\n"; } /* TOOLS FOR PLATFORM ADMIN ONLY */ if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) { $content .= "<tr>" . "<td colspan=\"6\">" . "<hr noshade size=\"1\" />" . "</td>" . "</tr>\n" . "<tr>\n" . "<td colspan=\"6\">\n" . "<font color=\"#F66105\" >" . get_lang('PlatformAdminOnly') . "</font>\n" . "</td>\n" . "</tr>\n"; $content .= "<tr>\n<td colspan=\"6\">"; $content .= CourseHome::show_tool_3column('platformAdmin'); $content .= "</td>\n</tr>\n"; } $content .= "</table>\n";