date1->y; $ctry = 'UK'; // $married = WT_Date::Compare($censdate, $marrdate); // === Set $married to "Not married as we only want the Birth name here" === $married=-1; $person=WT_Person::getInstance($pid); // var_dump($person->getAllNames()); $nam = $person->getAllNames(); if (PrintReady($person->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($person->getDeathYear()); } if (PrintReady($person->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($person->getBirthYear()); } $fulln = rtrim($nam[0]['givn'],'*')." ".$nam[0]['surname']; $fulln = str_replace("@N.N.", "(".WT_I18N::translate('unknown').")", $fulln); $fulln = str_replace("@P.N.", "(".WT_I18N::translate('unknown').")", $fulln); $wholename = $fulln; $currpid=$pid; echo ''; echo ''; echo WT_JS_START; echo "var TheCenYear = opener.document.getElementById('setyear').value;"; echo "var TheCenCtry = opener.document.getElementById('setctry').value;"; echo WT_JS_END; // Header of assistant window ===================================================== echo '
'; echo '
'; echo WT_I18N::translate('Head of Household:'); echo '  ', $wholename, '  (', $pid, ')'; echo '
'; if ($summary) { echo '
', $summary, '
'; } echo '
'; //-- Census & Source Information Area ============================================= echo '
'; echo ''; require WT_ROOT.WT_MODULES_DIR.'GEDFact_assistant/_CENS/census_2_source_input.php'; echo ''; //-- Proposed Census Text Area ================================================ echo ''; require WT_ROOT.WT_MODULES_DIR.'GEDFact_assistant/_CENS/census_4_text.php'; echo ''; echo '
'; //-- Search and Add Family Members Area ========================================== echo '