cellheading2; echo "\n
"; if ( $entries ) { foreach ( $entries as $entry ) { if (! $glossary = get_record("glossary", "id", $entry->glossaryid)) { error("Glossary ID was incorrect or no longer exists"); } if (! $course = get_record("course", "id", $glossary->course)) { error("Glossary is misconfigured - don't know what course it's from"); } if (!$cm = get_coursemodule_from_instance("glossary", $entry->glossaryid, $courseid) ) { error("Glossary is misconfigured - don't know what course module it is "); } glossary_print_entry($course, $cm, $glossary, $entry); } } echo " | "; echo "