summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorRob Peters <makitso@gmail.com>2011-11-20 21:33:00 +0000
committerRob Peters <makitso@gmail.com>2011-11-20 21:33:00 +0000
commitb9a3bb5ddc3338edab343886d5c18cba071488e2 (patch)
tree273073f331174d9235b1c7e420def23172fa9795 /includes
parent182227be41c2efe7f2199846dc3ac9b4959a2151 (diff)
downloadwebtrees-b9a3bb5ddc3338edab343886d5c18cba071488e2.tar.gz
webtrees-b9a3bb5ddc3338edab343886d5c18cba071488e2.tar.bz2
webtrees-b9a3bb5ddc3338edab343886d5c18cba071488e2.zip
Correct horizontal and vertical lines in family book and Ancestor booklets charts.
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_charts.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/includes/functions/functions_charts.php b/includes/functions/functions_charts.php
index 31bed418e8..420b070597 100644
--- a/includes/functions/functions_charts.php
+++ b/includes/functions/functions_charts.php
@@ -77,7 +77,6 @@ function print_sosa_number($sosa, $pid = "", $arrowDirection = "up") {
*/
function print_family_parents($famid, $sosa = 0, $label="", $parid="", $gparid="", $personcount="1") {
global $show_full, $SHOW_EMPTY_BOXES, $pbwidth, $pbheight, $WT_IMAGES, $GEDCOM;
-
$ged_id=get_id_from_gedcom($GEDCOM);
$family = WT_Family::getInstance($famid);
@@ -129,8 +128,8 @@ function print_family_parents($famid, $sosa = 0, $label="", $parid="", $gparid="
$hparents = false;
$upfamid = "";
if (count($hfams) > 0 or ($sosa != 0 and $SHOW_EMPTY_BOXES)) {
- echo "<td rowspan=\"2\"><img src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td rowspan=\"2\"><img src=\"".$WT_IMAGES["vline"]."\" width=\"3\" height=\"" . ($pbheight) . "\" alt=\"\" /></td>";
- echo "<td><img src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td>";
+ echo "<td rowspan=\"2\"><img src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td rowspan=\"2\"><img src=\"".$WT_IMAGES["vline"]."\" width=\"3\" height=\"" . ($pbheight+9) . "\" alt=\"\" /></td>";
+ echo "<td><img class=\"line5\" src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td>";
$hparents = false;
foreach ($hfams as $hfamily) {
$hparents = find_parents_in_record($hfamily->getGedcomRecord());
@@ -155,7 +154,7 @@ function print_family_parents($famid, $sosa = 0, $label="", $parid="", $gparid="
}
if ($hparents or ($sosa != 0 and $SHOW_EMPTY_BOXES)) {
// husband's mother
- echo "</tr><tr><td><img src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td>";
+ echo "</tr><tr><td><img <img src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td>";
echo "<table style=\"width: " . ($pbwidth) . "px; height: " . $pbheight . "px;\" border=\"0\"><tr>";
if ($sosa > 0) print_sosa_number($sosa * 4 + 1, $hparents['WIFE'], "down");
if (!empty($gparid) and $hparents['WIFE']==$gparid) print_sosa_number(trim(substr($label,0,-3),".").".");
@@ -200,8 +199,8 @@ function print_family_parents($famid, $sosa = 0, $label="", $parid="", $gparid="
$hparents = false;
$upfamid = "";
if (count($hfams) > 0 or ($sosa != 0 and $SHOW_EMPTY_BOXES)) {
- echo "<td rowspan=\"2\"><img src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td rowspan=\"2\"><img src=\"".$WT_IMAGES["vline"]."\" width=\"3\" height=\"" . ($pbheight) . "\" alt=\"\" /></td>";
- echo "<td><img src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td>";
+ echo "<td rowspan=\"2\"><img <img src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td rowspan=\"2\"><img src=\"".$WT_IMAGES["vline"]."\" width=\"3\" height=\"" . ($pbheight+9) . "\" alt=\"\" /></td>";
+ echo "<td><img <img class=\"line5\" src=\"".$WT_IMAGES["hline"]."\" alt=\"\" /></td><td>";
$j = 0;
foreach ($hfams as $hfamily) {
$hparents = find_parents_in_record($hfamily->getGedcomRecord());
@@ -354,7 +353,7 @@ function print_family_children($famid, $childid = "", $sosa = 0, $label="", $per
$ct = preg_match("/2 DATE.*(\d\d\d\d)/", $divrec, $match);
if ($ct>0) echo "-<span class=\"date\">".trim($match[1])."</span>";
}
- echo "<br /><img width=\"100%\" height=\"3\" src=\"".$WT_IMAGES["hline"]."\" alt=\"\" />";
+ echo "<br /><img width=\"100%\" class=\"line5\" height=\"3\" src=\"".$WT_IMAGES["hline"]."\" alt=\"\" />";
// family link
if ($famid_child) {
$family_child = WT_Family::getInstance($famid_child);
@@ -666,7 +665,7 @@ function print_cousins($famid, $personcount=1) {
echo '<td valign="middle" height="100%">';
if ($kids) {
echo '<table cellspacing="0" cellpadding="0" border="0" ><tr valign="middle">';
- if ($kids>1) echo '<td rowspan="', $kids, '" valign="middle" align="right"><img width="3px" height="', (($bheight+5)*($kids-1)), 'px" src="', $WT_IMAGES["vline"], '" alt="" /></td>';
+ if ($kids>1) echo '<td rowspan="', $kids, '" valign="middle" align="right"><img width="3px" height="', (($bheight+15)*($kids-1)), 'px" src="', $WT_IMAGES["vline"], '" alt="" /></td>';
$ctkids = count($fchildren);
$i = 1;
foreach ($fchildren as $fchil) {