From efe57925314e0f761bbc7cfbde2b68d86f6893c7 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 19 Mar 2007 18:43:30 +0000 Subject: [PATCH] Now the add/update entry page XHTML validates and doesn't show the tabs and intro anymore. Merged from MOODLE_18_STABLE --- mod/glossary/edit.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/mod/glossary/edit.php b/mod/glossary/edit.php index e2656ad14b..0e44b8bee6 100644 --- a/mod/glossary/edit.php +++ b/mod/glossary/edit.php @@ -190,7 +190,7 @@ if ($mform->is_cancelled()){ $strglossary = get_string("modulename", "glossary"); $strglossaries = get_string("modulenameplural", "glossary"); -$stredit = get_string("edit"); +$stredit = empty($e) ? get_string('addentry', 'glossary') : get_string("edit"); print_header_simple(format_string($glossary->name), "", @@ -204,15 +204,13 @@ print_heading(format_string($glossary->name)); /// Info box -if ( $glossary->intro ) { - print_simple_box(format_text($glossary->intro), 'center', '70%', '', 5, 'generalbox', 'intro'); -} - -echo '
'; +///if ( $glossary->intro ) { +/// print_simple_box(format_text($glossary->intro), 'center', '70%', '', 5, 'generalbox', 'intro'); +///} /// Tabbed browsing sections -$tab = GLOSSARY_ADDENTRY_VIEW; -include("tabs.php"); +///$tab = GLOSSARY_ADDENTRY_VIEW; +///include("tabs.php"); if (!$e) { require_capability('mod/glossary:write', $context); @@ -220,7 +218,7 @@ if (!$e) { $mform->display(); -glossary_print_tabbed_table_end(); +///glossary_print_tabbed_table_end(); print_footer($course); -- 2.39.5