} } } else { // *** Show N.N. person *** @($person_manDb = $db_functions->get_person($ancestor_array[$i])); $man_cls = new person_cls(); $man_cls->construct($person_manDb); $privacy_man = $man_cls->privacy; if ($screen_mode != 'PDF' and $screen_mode != 'RTF') { echo '<tr><td valign="top" width="80" nowrap><b>' . $ancestor_number[$i] . '</b> (' . floor($ancestor_number[$i] / 2) . ')</td>'; echo '<td>'; //*** Show person_data of man *** echo '<div class="parent1">'; // *** Use "child", to show a link to own family. *** echo $man_cls->name_extended("child"); echo $man_cls->person_data("standard", $ancestor_array[$i]); echo '</div>'; echo '</td></tr>'; } elseif ($screen_mode == "RTF") { $sect->writeText('', $arial12, new PHPRtfLite_ParFormat()); $table = $sect->addTable(); $table->addRow(1); $table->addColumnsList(array(2, 0.5, 14)); $rtf_text = $ancestor_number[$i] . "(" . floor($ancestor_number[$i] / 2) . ")"; $cell = $table->getCell(1, 1); $cell->writeText($rtf_text, $arial10, $parNames); $cell = $table->getCell(1, 2); if ($person_manDb and $person_manDb->pers_sexe == "M") { $cell->addImage('images/man.jpg', null); } elseif ($person_manDb and $person_manDb->pers_sexe == "F") { $cell->addImage(CMS_ROOTPATH . 'images/woman.jpg', null);
} } if ($screen_mode == 'PDF') { if ($descendant_report == true) { $pdf->Write(8, $number_roman[$generateIndex + 1] . '-' . $number_generation[$familyIndex + 1] . " "); } } if ($screen_mode == 'RTF') { $rtf_text = ' <b>' . $number_roman[$generateIndex + 1] . '-' . $number_generation[$familyIndex + 1] . '</b> '; //$sect->writeText($rtf_text, $arial12, new PHPRtfLite_ParFormat()); $sect->writeText($rtf_text, $arial12); } if ($change_main_person == true) { if ($screen_mode == '') { echo $woman_cls->name_extended("parent1"); echo $woman_cls->person_data("parent1", $id); // *** Change page title *** if ($generateIndex == 0 and $familyIndex == 0) { echo '<script type="text/javascript">'; $name = $woman_cls->person_name($person_womanDb); echo 'document.title = "' . __('Family Page') . ': ' . $name["index_name"] . '";'; echo '</script>'; } } if ($screen_mode == 'PDF') { // PDF rendering of name + details unset($templ_person); if (!isset($person_womanDb->pers_sexe)) { $pers_sexe = "?"; } else { $pers_sexe = $person_womanDb->pers_sexe;
//$nopict=1; $number = 1; // 1 = show child number. for ($c = 0; $c <= count($child) - 1; $c++) { $res2 = $dbh->query("SELECT * FROM humo_persons\n\t\t\t\t\tWHERE pers_tree_id='" . $tree_id . "' AND pers_gedcomnumber LIKE '" . safe_text($child[$c]) . "'"); $info2 = $res2->fetch(); $text = $info2['pers_gedcomnumber']; echo popup($text, false); // father // *** Show person details using standard HuMo-gen function *** //$child_sql=$dbh->query("SELECT * FROM ".safe_text($_SESSION['tree_prefix'])."person WHERE pers_gedcomnumber='".safe_text($text)."'"); $child_sql = $dbh->query("SELECT * FROM humo_persons\n\t\t\t\t\tWHERE pers_tree_id='" . $tree_id . "' AND pers_gedcomnumber='" . safe_text($text) . "'"); @($childDb = $child_sql->fetch(PDO::FETCH_OBJ)); $child_cls = new person_cls(); $child_cls->construct($childDb); echo $child_cls->person_data("mobile", 0); echo '</li>'; } $number = ''; } //else{ // print '<li><p>'.__('No known children or without children').'</p></li>'; //} } } // if $marriage !=Null echo '</ul>'; echo '</div>'; echo '<div data-role="footer" data-theme="b">'; echo '<h4>HuMo-gen GPL Licence</h4>'; include_once "footer.php";