fid = $id; $displayformat->id = insert_record("glossary_displayformats",$displayformat); } $form = data_submitted(); if ( $mode == 'visible' ) { if ( $displayformat ) { if ( $displayformat->visible ) { $displayformat->visible = 0; } else { $displayformat->visible = 1; } update_record("glossary_displayformats",$displayformat); } redirect($_SERVER["HTTP_REFERER"]); die; } elseif ( $mode == 'edit' and $form) { $displayformat->relatedview = $form->relatedview; $displayformat->showgroup = $form->showgroup; $displayformat->defaultmode = $form->defaultmode; $displayformat->defaulthook = $form->defaulthook; $displayformat->sortkey = $form->sortkey; $displayformat->sortorder = $form->sortorder; update_record("glossary_displayformats",$displayformat); redirect("../../admin/module.php?module=glossary#formats"); die; } $stradmin = get_string("administration"); $strconfiguration = get_string("configuration"); $strmanagemodules = get_string("managemodules"); $strmodulename = get_string("modulename", "glossary"); $strdisplayformats = get_string("displayformats","glossary"); print_header("$site->shortname: $strmodulename: $strconfiguration", $site->fullname, "$stradmin -> ". "$strconfiguration -> ". "$strmanagemodules -> $strmodulename -> $strdisplayformats"); print_heading($strmodulename . ': ' . get_string("displayformats","glossary")); echo '
'; echo get_string("configwarning"); echo ' |