show($term) : _GLOSSARY_SEARCH_SEARCH; for ($i=1; $i<5; $i++) { $fieldname = 'check'.$i; $$fieldname = ($method == $i) ? 'checked="checked"' : ''; } $formlink = $this->interface->sefRelToAbs('index.php?option=com_glossary'); return <<
{$this->show(_GLOSSARY_SEARCH_INTRO)}
{$this->show(_GLOSSARY_BEGINS_WITH)} {$this->show(_GLOSSARY_TERM_CONTAINS)} {$this->show(_GLOSSARY_EXACT_TERM)} {$this->offerSoundex($check4)} {$this->offerMultipleGlossaries($more, $manygloss)}
$Itemidline
GLOSSARY_SEARCH; } protected function offerMultipleGlossaries ($more, $manygloss) { if ($more) { $checked = $manygloss ? 'checked="checked"' : ''; return <<{$this->show(_GLOSSARY_SEARCH_MULTIPLE)} OFFER_MULTIPLE; } } protected function offerSoundex ($check) { if ($this->gconfig->show_soundex) return <<{$this->show(_GLOSSARY_SOUNDS_LIKE)} SHOW_SOUNDEX; } } /* This is the code to go in the AJAX modification */