Beispiel #1
0
     $controller->pageHeader()->addInlineJavascript('closePopupAndReloadParent();');
     return;
 }
 $controller->setPageTitle($record->getFullName() . ' - ' . I18N::translate('Edit'))->pageHeader();
 echo '<div id="edit_interface-page">';
 echo '<h4>', $controller->getPageTitle(), '</h4>';
 FunctionsPrint::initializeCalendarPopup();
 echo '<form name="editform" method="post" action="edit_interface.php" enctype="multipart/form-data">';
 echo '<input type="hidden" name="ged" value="', $WT_TREE->getNameHtml(), '">';
 echo '<input type="hidden" name="action" value="update">';
 echo '<input type="hidden" name="fact_id" value="', $fact_id, '">';
 echo '<input type="hidden" name="xref" value="', $xref, '">';
 echo '<input type="hidden" name="prev_action" value="edit">';
 echo Filter::getCsrf();
 echo '<table class="facts_table">';
 FunctionsEdit::createEditForm($record, $edit_fact);
 echo keep_chan($record);
 echo '</table>';
 $level1type = $edit_fact->getTag();
 switch ($record::RECORD_TYPE) {
     case 'REPO':
         // REPO:NAME facts may take a NOTE (but the REPO record may not).
         if ($level1type === 'NAME') {
             FunctionsEdit::printAddLayer('NOTE');
             FunctionsEdit::printAddLayer('SHARED_NOTE');
         }
         break;
     case 'FAM':
     case 'INDI':
         // FAM and INDI records have real facts.  They can take NOTE/SOUR/OBJE/etc.
         if ($level1type !== 'SEX' && $level1type !== 'NOTE' && $level1type !== 'ALIA') {
Beispiel #2
0
     $controller->pageHeader()->addInlineJavascript('closePopupAndReloadParent();');
     return;
 }
 $controller->setPageTitle($record->getFullName() . ' - ' . I18N::translate('Edit'))->pageHeader();
 echo '<div id="edit_interface-page">';
 echo '<h2>', $controller->getPageTitle(), '</h2>';
 FunctionsPrint::initializeCalendarPopup();
 echo '<form name="editform" method="post" action="edit_interface.php" enctype="multipart/form-data">';
 echo '<input type="hidden" name="ged" value="', $WT_TREE->getNameHtml(), '">';
 echo '<input type="hidden" name="action" value="update">';
 echo '<input type="hidden" name="fact_id" value="', $fact_id, '">';
 echo '<input type="hidden" name="xref" value="', $xref, '">';
 echo '<input type="hidden" name="prev_action" value="edit">';
 echo Filter::getCsrf();
 echo '<table class="facts_table">';
 FunctionsEdit::createEditForm($edit_fact);
 echo keep_chan($record);
 echo '</table>';
 $level1type = $edit_fact->getTag();
 switch ($record::RECORD_TYPE) {
     case 'REPO':
         // REPO:NAME facts may take a NOTE (but the REPO record may not).
         if ($level1type === 'NAME') {
             FunctionsEdit::printAddLayer('NOTE');
             FunctionsEdit::printAddLayer('SHARED_NOTE');
         }
         break;
     case 'FAM':
     case 'INDI':
         // FAM and INDI records have real facts. They can take NOTE/SOUR/OBJE/etc.
         if ($level1type !== 'SEX' && $level1type !== 'NOTE' && $level1type !== 'ALIA') {