@ -63,7 +63,7 @@ function show_tools_category($course_tool_category)
$result = api_sql_query("SELECT * FROM $course_tool_table WHERE visibility = '1' AND (category = 'authoring' OR category = 'interaction') ORDER BY id",__FILE__,__LINE__);
$colLink ="##003399";
break;
case TOOL_AUTHORING:
$result = api_sql_query("SELECT * FROM $course_tool_table WHERE category = 'authoring' ORDER BY id",__FILE__,__LINE__);
@ -87,7 +87,7 @@ function show_tools_category($course_tool_category)
$result = api_sql_query("SELECT * FROM $course_tool_table WHERE category = 'admin' ORDER BY id",__FILE__,__LINE__);
$colLink ="##003399";
break;
}
while ($temp_row = mysql_fetch_array($result))
@ -115,10 +115,13 @@ function show_tools_category($course_tool_category)
break;
case TOOL_INTERACTION:
$sql_links = null;
/*
$sql_links="SELECT tl.*, tip.visibility
FROM $course_link_table tl
LEFT JOIN $course_item_property_table tip ON tip.tool='link' AND tip.ref=tl.id
WHERE tl.on_homepage='1' ";
*/
break;
case TOOL_STUDENT_VIEW:
@ -127,7 +130,7 @@ function show_tools_category($course_tool_category)
LEFT JOIN $course_item_property_table tip ON tip.tool='link' AND tip.ref=tl.id
WHERE tl.on_homepage='1'";
break;
case TOOL_ADMIN:
$sql_links="SELECT tl.*, tip.visibility
FROM $course_link_table tl
@ -154,7 +157,7 @@ function show_tools_category($course_tool_category)