From: willcast Date: Tue, 2 Dec 2003 18:53:43 +0000 (+0000) Subject: - Bringing order to chaos (thanks Martin) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=11797fd804fadd9f3497d54489ad819f2efe56e2;p=moodle.git - Bringing order to chaos (thanks Martin) --- diff --git a/mod/glossary/edit.html b/mod/glossary/edit.html index 6e5e93f5db..6f4b809fca 100644 --- a/mod/glossary/edit.html +++ b/mod/glossary/edit.html @@ -1,9 +1,6 @@ -
action="edit.php" enctype="multipart/form-data"> - +
@@ -15,41 +12,17 @@ if (isset($errors)) { } ?> - - - - - - +

:

- - - -
- -usedynalink ) { - echo ''; - echo ''; - echo ''; - } else { - echo '' . get_string("entryusedynalink","glossary") . ':'; - echo ''; - $selected = ""; - if ( isset($newentry->usedynalink) ) { - if ($newentry->usedynalink) { - $selected = "checked"; - } - } elseif ( $CFG->glossary_linkentries ) { - $selected = "checked"; - } - echo ' ' . helpbutton("usedynalink", strip_tags(get_string("usedynalink", "glossary")), "glossary"); - } -?> -
-

:

- - - + +
+ + + + + if (!empty($newentry->fullmatch) or $CFG->glossary_fullmatch) { + $selected = "checked"; + } else { + $selected = ""; + } + echo ' '; + print_string("fullmatch","glossary"); + echo helpbutton("fullmatch", strip_tags(get_string("fullmatch", "glossary")), "glossary"); + echo '
'; + } +?> + + +
+ + + + + + + - + - -

:

:

id); echo " - - + + +
+ + + + + - '; - echo ''; - echo ''; - } // end-if !$usedynalink - echo '

+ '; + helpbutton("aliases", strip_tags(get_string("aliases", "glossary")), "glossary"); + ?>

+ +
+ usedynalink ) { - - echo ''; - echo ''; - echo ''; - echo ''; - echo '
' . get_string("aliases","glossary") . ' '; - helpbutton("aliases", strip_tags(get_string("aliases", "glossary")), "glossary"); - echo '

' . get_string("casesensitive","glossary") . ':'; + if ( !$glossary->usedynalink ) { + echo ''; + echo ''; + echo ''; + } else { + echo ''; - $selected = ""; - if ( isset($newentry->casesensitive) ) { - if ($newentry->casesensitive) { - $selected = "checked"; - } - } elseif ( $CFG->glossary_casesensitive ) { + if (!empty($newentry->usedynalink) or $CFG->glossary_linkentries) { $selected = "checked"; + } else { + $selected = ""; } - echo ' ' . helpbutton("casesensitive", strip_tags(get_string("casesensitive", "glossary")), "glossary"); - echo '
' . get_string("fullmatch","glossary") . ':'; + echo ' '; + print_string("entryusedynalink","glossary"); + echo helpbutton("usedynalink", strip_tags(get_string("usedynalink", "glossary")), "glossary"); + echo '
'; - $selected = ""; - if ( isset($newentry->fullmatch) ) { - if ($newentry->fullmatch) { - $selected = "checked"; - } - } elseif ( $CFG->glossary_fullmatch ) { + if (!empty($newentry->casesensitive) or $CFG->glossary_casesensitive) { $selected = "checked"; + } else { + $selected = ""; } - echo '
'; + echo ' '; + print_string("casesensitive","glossary"); + echo helpbutton("casesensitive", strip_tags(get_string("casesensitive", "glossary")), "glossary"); + echo '
'; - echo '
'; - echo ''; - echo '
'; -?> -
-
+

: