course)) { error("Course is misconfigured"); } if (! $glossary = get_record("glossary", "id", $cm->instance)) { error("Course module is incorrect"); } require_login($course->id, false); $context = get_context_instance(CONTEXT_MODULE, $cm->id); require_capability('mod/glossary:export', $context); $strglossaries = get_string("modulenameplural", "glossary"); $strglossary = get_string("modulename", "glossary"); $strallcategories = get_string("allcategories", "glossary"); $straddentry = get_string("addentry", "glossary"); $strnoentries = get_string("noentries", "glossary"); $strsearchconcept = get_string("searchconcept", "glossary"); $strsearchindefinition = get_string("searchindefinition", "glossary"); $strsearch = get_string("search"); $strexportfile = get_string("exportfile", "glossary"); $navigation = ""; if ($course->id != SITEID) { $navigation = "id\">$course->shortname ->"; require_login($course->id); } print_header("$course->shortname: ".format_string($glossary->name), "$course->fullname", "$navigation id\">$strglossaries -> ".format_string($glossary->name), "", "", true, update_module_button($cm->id, $course->id, $strglossary), navmenu($course, $cm)); print_heading(format_string($glossary->name)); /// Info box if ( $glossary->intro ) { print_simple_box(format_text($glossary->intro), 'center', '70%', '', 5, 'generalbox', 'intro'); echo '
'; } /// Tabbed browsing sections $tab = GLOSSARY_EXPORT_VIEW; include("tabs.html"); ?>
'; glossary_print_tabbed_table_end(); print_footer(); ?>