Ejemplo n.º 1
0
         break;
     case 'NOTE':
         $record = new WT_Note($change->xref, $change->old_gedcom, $change->new_gedcom, $change->gedcom_id);
         break;
     default:
         $record = new WT_GedcomRecord($change->xref, $change->old_gedcom, $change->new_gedcom, $change->gedcom_id);
         break;
 }
 if ($change->xref != $prev_xref || $change->gedcom_id != $prev_gedcom_id) {
     if ($prev_xref) {
         $output .= '</table></td></tr>';
     }
     $prev_xref = $change->xref;
     $prev_gedcom_id = $change->gedcom_id;
     $output .= '<tr><td class="list_value">';
     $output .= '<b><a href="#" onclick="return show_diff(\'' . $record->getHtmlUrl() . '\');"> ' . $record->getFullName() . '</a></b>';
     $output .= '<div class="indent">';
     $output .= '<table class="list_table"><tr>';
     $output .= '<td class="list_label">' . WT_I18N::translate('Accept') . '</td>';
     $output .= '<td class="list_label">' . WT_I18N::translate('Changes') . '</td>';
     $output .= '<td class="list_label">' . WT_I18N::translate('User') . '</td>';
     $output .= '<td class="list_label">' . WT_I18N::translate('Date') . '</td>';
     $output .= '<td class="list_label">' . WT_I18N::translate('Family tree') . '</td>';
     $output .= '<td class="list_label">' . WT_I18N::translate('Undo') . '</td>';
     $output .= '</tr>';
 }
 $output .= '<td class="list_value"><a href="edit_changes.php?action=accept&amp;change_id=' . $change->change_id . '">' . WT_I18N::translate('Accept') . '</a></td>';
 $output .= '<td class="list_value">';
 foreach ($record->getFacts() as $fact) {
     if ($fact->getTag() != 'CHAN') {
         if ($fact->isNew()) {