Example #1
0
?>
"+fromfile, "_blank", "top=50,left=50,width=600,height=400,scrollbars=1,scrollable=1,resizable=1");
	}
	function showchanges() {
		window.location = 'family.php?famid=<?php 
print $controller->famid;
?>
&show_changes=yes';
	}
//-->
</script>
<table>
	<tr>
		<td>
		<?php 
print print_family_parents($controller->getFamilyID());
if (!$controller->isPrintPreview() && $controller->display && PGV_USER_CAN_EDIT) {
    $husb = $controller->getHusband();
    if (empty($husb)) {
        ?>
			<?php 
        print_help_link("edit_add_parent_help", "qm");
        ?>
			<a href="javascript <?php 
        print $pgv_lang["add_father"];
        ?>
" onclick="return addnewparentfamily('', 'HUSB', '<?php 
        print $controller->famid;
        ?>
');"><?php 
        print $pgv_lang["add_father"];
/**
 * print a family with Sosa-Stradonitz numbering system
 * ($rootid=1, father=2, mother=3 ...)
 *
 * @param string $famid family gedcom ID
 * @param string $childid tree root ID
 * @param string $sosa starting sosa number
 * @param string $label optional indi label (descendancy booklet)
 * @param string $parid optional parent ID (descendancy booklet)
 * @param string $gparid optional gd-parent ID (descendancy booklet)
 */
function print_sosa_family($famid, $childid, $sosa, $label = "", $parid = "", $gparid = "", $personcount = "1")
{
    global $pgv_lang, $pbwidth, $pbheight, $view;
    if ($view != "preview") {
        print "<hr />";
    }
    print "\r\n\r\n<p style='page-break-before:always' />\r\n";
    if (!empty($famid)) {
        print "<a name=\"{$famid}\"></a>\r\n";
    }
    print_family_parents($famid, $sosa, $label, $parid, $gparid, $personcount);
    $personcount++;
    print "\n\t<br />\n";
    print "<table width=\"95%\"><tr><td valign=\"top\" style=\"width: " . $pbwidth . "px;\">\n";
    print_family_children($famid, $childid, $sosa, $label, $personcount);
    print "</td><td valign=\"top\">";
    if ($sosa == 0) {
        print_family_facts(Family::getInstance($famid), $sosa);
    }
    print "</td></tr></table>\n";
    print "<br />";
}
Example #3
0
/**
 * print a family with Sosa-Stradonitz numbering system
 * ($rootid=1, father=2, mother=3 ...)
 *
 * @param string $famid   family gedcom ID
 * @param string $childid tree root ID
 * @param string $sosa    starting sosa number
 * @param string $label   indi label (descendancy booklet)
 * @param string $parid   parent ID (descendancy booklet)
 * @param string $gparid  gd-parent ID (descendancy booklet)
 * @param string $personcount
 */
function print_sosa_family($famid, $childid, $sosa, $label = "", $parid = "", $gparid = "", $personcount = "1")
{
    global $pbwidth;
    echo "<hr>";
    echo "<p style='page-break-before: always;'>";
    if (!empty($famid)) {
        echo "<a name=\"{$famid}\"></a>";
    }
    print_family_parents(WT_Family::getInstance($famid), $sosa, $label, $parid, $gparid, $personcount);
    $personcount++;
    echo "<br>";
    echo "<table width=\"95%\"><tr><td valign=\"top\" style=\"width: " . $pbwidth . "px;\">";
    print_family_children(WT_Family::getInstance($famid), $childid, $sosa, $label, $personcount);
    echo "</td></tr></table>";
    echo "<br>";
}
Example #4
0
		<td> <!--//parents pedigree chart and Family Details//-->
			<table width="100%">
				<tr>
					<td class="subheaders" valign="top"><?php 
echo WT_I18N::translate('Parents');
?>
</td>
					<td class="subheaders" valign="top"><?php 
echo WT_I18N::translate('Grandparents');
?>
</td>
				</tr>
				<tr>
					<td colspan="2">
						<?php 
print_family_parents($controller->record);
if (WT_USER_CAN_EDIT) {
    $husb = $controller->record->getHusband();
    if (!$husb) {
        echo '<a href="#" onclick="return add_spouse_to_family(\'', $controller->record->getXref(), '\', \'HUSB\');">', WT_I18N::translate('Add a new father'), '</a><br>';
    }
    $wife = $controller->record->getWife();
    if (!$wife) {
        echo '<a href="#" onclick="return add_spouse_to_family(\'', $controller->record->getXref(), '\', \'WIFE\');">', WT_I18N::translate('Add a new mother'), '</a><br>';
    }
}
?>
					</td>
				</tr>
				<tr>
					<td colspan="2">