&%{};]*'); // All indis with this surname. NB - allow ' and " $search =safe_GET('search'); $last = array('alpha'=>$alpha, 'surname'=>$surname, 'search'=>$search); $_SESSION['sb_individuals_last'] = $last; if (!empty($search)) return $this->search($search); else if (empty($surname)) return $this->getAlphaSurnames($alpha, $surname); else return $this->getSurnameIndis($alpha, $surname); } // Implement WT_Module_Sidebar public function getSidebarContent() { global $SHOW_MARRIED_NAMES, $WT_IMAGES; // Fetch a list of the initial letters of all surnames in the database $initials=get_indilist_salpha($SHOW_MARRIED_NAMES, false, WT_GED_ID); $out = '
'; return $out; } public function getAlphaSurnames($alpha, $surname1='') { global $SHOW_MARRIED_NAMES; $surns=get_indilist_surns('', $alpha, $SHOW_MARRIED_NAMES, false, WT_GED_ID); $out = '