2003-09-29 17:45:42 +00:00
|
|
|
<?PHP
|
|
|
|
require_once("../../config.php");
|
|
|
|
require_once("lib.php");
|
|
|
|
|
2003-11-15 15:55:47 +00:00
|
|
|
optional_variable($concept);
|
2003-11-09 03:29:25 +00:00
|
|
|
optional_variable($courseid,0);
|
2003-11-15 15:55:47 +00:00
|
|
|
optional_variable($eid,0);
|
2003-09-29 17:45:42 +00:00
|
|
|
|
|
|
|
print_header();
|
2003-11-15 15:55:47 +00:00
|
|
|
if ( $eid ) {
|
|
|
|
$entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g".
|
|
|
|
" where (e.id = $eid)");
|
|
|
|
} elseif ( $concept ) {
|
|
|
|
$entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g".
|
2003-10-18 20:21:04 +00:00
|
|
|
" where e.glossaryid = g.id and".
|
2003-10-21 13:27:48 +00:00
|
|
|
" (e.casesensitive != 0 and ucase(concept) = '" . strtoupper(trim($concept)). "' or".
|
2003-10-18 20:37:40 +00:00
|
|
|
" e.casesensitive = 0 and concept = '$concept') and".
|
2003-10-29 23:33:54 +00:00
|
|
|
" (g.course = $courseid or g.globalglossary) and".
|
2003-10-21 13:27:48 +00:00
|
|
|
" e.usedynalink != 0 and g.usedynalink != 0");
|
2003-11-15 15:55:47 +00:00
|
|
|
}
|
|
|
|
if ( $entries ) {
|
|
|
|
glossary_print_dynaentry($courseid, $entries);
|
|
|
|
}
|
2003-09-29 17:45:42 +00:00
|
|
|
|
|
|
|
close_window_button();
|
|
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|