echo keep_chan($record);
echo '</table>';
// Genealogical facts (e.g. for INDI and FAM records) can have 2 SOUR/NOTE/OBJE/ASSO/RESN ...
if ($level0type === 'INDI' || $level0type === 'FAM') {
// ... but not facts which are simply links to other records
if ($fact !== 'OBJE' && $fact !== 'NOTE' && $fact !== 'SHARED_NOTE' && $fact !== 'REPO' && $fact !== 'SOUR' && $fact !== 'ASSO' && $fact !== 'ALIA') {
FunctionsEdit::printAddLayer('SOUR');
FunctionsEdit::printAddLayer('OBJE');
// Don’t add notes to notes!
if ($fact !== 'NOTE') {
FunctionsEdit::printAddLayer('NOTE');
FunctionsEdit::printAddLayer('SHARED_NOTE', 2, $fact);
}
FunctionsEdit::printAddLayer('ASSO');
// allow to add godfather and godmother for CHR fact or best man and bridesmaid for MARR fact in one window
if (in_array($fact, Config::twoAssociates())) {
FunctionsEdit::printAddLayer('ASSO2');
}
FunctionsEdit::printAddLayer('RESN');
}
}
?>
<p id="save-cancel">
<input type="submit" class="save" value="<?php
echo I18N::translate('save');
?>
">
<input type="button" class="cancel" value="<?php
echo I18N::translate('close');
?>
" onclick="window.close();">