@@ -198,7 +198,8 @@ |
||
198 | 198 | //-- footer |
199 | 199 | echo '</div>'; |
200 | 200 | //echo '<script>document.getElementById("bodydiv").style.height="', $this->maxY, 'pt";</script>'; |
201 | - if ($this->Y < 200) { //heuristic guess! |
|
201 | + if ($this->Y < 200) { |
|
202 | +//heuristic guess! |
|
202 | 203 | echo '<div id="bottommargin" style="position: relative; top: auto; height: ', $this->bottom_margin - $this->footer_margin, 'pt;width:', $this->noMarginWidth, 'pt;"></div>'; |
203 | 204 | echo '<div id="footerdiv" style="position: relative; top: auto; width: ', $this->noMarginWidth, 'pt;height:auto;">'; |
204 | 205 | } else { |
@@ -1027,7 +1027,8 @@ discard block |
||
1027 | 1027 | } elseif ($nameselect == 'combined') { |
1028 | 1028 | $tmp = $record->getAllNames(); |
1029 | 1029 | $name = $tmp[count($tmp) - 1]['full']; |
1030 | - if ($ix1 = strpos($name, '<span class="starredname">')) { // '«' and '»' mark text for underlining |
|
1030 | + if ($ix1 = strpos($name, '<span class="starredname">')) { |
|
1031 | +// '«' and '»' mark text for underlining |
|
1031 | 1032 | $name = substr_replace($name, '«', $ix1, 26); |
1032 | 1033 | $ix1 = strpos($name, '</span>', $ix1); |
1033 | 1034 | $name = substr_replace($name, '»', $ix1, 7); |
@@ -1502,7 +1503,8 @@ discard block |
||
1502 | 1503 | // Resort facts in chronological order, if possible |
1503 | 1504 | $m = count($this->repeats) - 1; |
1504 | 1505 | $prevd = 0; |
1505 | - for ($i = 0; $i <= $m; $i++) { // keep undated events after previous dated event |
|
1506 | + for ($i = 0; $i <= $m; $i++) { |
|
1507 | +// keep undated events after previous dated event |
|
1506 | 1508 | if ($jdarr[$i] === 0) { |
1507 | 1509 | $jdarr[$i] = $prevd; |
1508 | 1510 | } else { |
@@ -1747,7 +1749,8 @@ discard block |
||
1747 | 1749 | } elseif (preg_match('/^I18N::translateContext\(\'(.+)\', *\'(.+)\'\)$/', $value, $match)) { |
1748 | 1750 | $value = I18N::translateContext($match[1], $match[2]); |
1749 | 1751 | } |
1750 | - if (isset($attrs['lcfirst'])) { // set 1st char to lower case |
|
1752 | + if (isset($attrs['lcfirst'])) { |
|
1753 | +// set 1st char to lower case |
|
1751 | 1754 | $value = lcfirst($value); |
1752 | 1755 | } |
1753 | 1756 | |
@@ -2736,10 +2739,10 @@ discard block |
||
2736 | 2739 | $genCounter = 1; |
2737 | 2740 | while (count($newarray) < count($this->list)) { |
2738 | 2741 | foreach ($this->list as $key => $value) { |
2739 | - if ($value->generation < 0) { // indication of husband or wife |
|
2742 | + if ($value->generation < 0) { |
|
2743 | +// indication of husband or wife |
|
2740 | 2744 | $this->generation = -$value->generation; |
2741 | - } |
|
2742 | - else { |
|
2745 | + } else { |
|
2743 | 2746 | $this->generation = $value->generation; |
2744 | 2747 | } |
2745 | 2748 | if ($this->generation == $genCounter) { |
@@ -137,10 +137,12 @@ |
||
137 | 137 | // If current position (top) |
138 | 138 | $align_Y = false; |
139 | 139 | $topstr = ""; |
140 | - if ($this->top < -110000) { // pos='abs' |
|
140 | + if ($this->top < -110000) { |
|
141 | +// pos='abs' |
|
141 | 142 | $this->top += 222000; |
142 | 143 | } |
143 | - if ($this->top < -10000) { // <= -100000: both pdf and html; -100000 -- -90000: only html |
|
144 | + if ($this->top < -10000) { |
|
145 | +// <= -100000: both pdf and html; -100000 -- -90000: only html |
|
144 | 146 | $this->top += 90000; //= ReportBaseElement::CURRENT_POSITION; |
145 | 147 | if ($this->top < -9000) { |
146 | 148 | $this->top += 10000; |
@@ -139,10 +139,12 @@ |
||
139 | 139 | // If current position (top) |
140 | 140 | $align_Y = false; |
141 | 141 | $curr_P = $renderer->tcpdf->getPage(); |
142 | - if ($this->top < -95000) { // 90000: only html; 100000: both pdf and html |
|
142 | + if ($this->top < -95000) { |
|
143 | +// 90000: only html; 100000: both pdf and html |
|
143 | 144 | $align_Y = true; |
144 | 145 | } |
145 | - if ($this->top < -200000) { // pos="abs" |
|
146 | + if ($this->top < -200000) { |
|
147 | +// pos="abs" |
|
146 | 148 | $this->top += 222000; |
147 | 149 | } else { |
148 | 150 | $this->top = ReportBaseElement::CURRENT_POSITION; |