diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-10-30 19:40:24 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-10-30 19:40:24 +0000 |
| commit | 1b31889382cf05c88218446919a18b377b17a96b (patch) | |
| tree | 28a9ef7f8c82824f8481c3a6d07cc8162449f8fc /timeline.php | |
| parent | fe8b71f311753b6bb7be62b697035e420fb5f056 (diff) | |
| download | webtrees-1b31889382cf05c88218446919a18b377b17a96b.tar.gz webtrees-1b31889382cf05c88218446919a18b377b17a96b.tar.bz2 webtrees-1b31889382cf05c88218446919a18b377b17a96b.zip | |
Diffstat (limited to 'timeline.php')
| -rw-r--r-- | timeline.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/timeline.php b/timeline.php index cf4c2f8d65..24e8254b8c 100644 --- a/timeline.php +++ b/timeline.php @@ -264,7 +264,7 @@ $controller->checkPrivacy(); $half = ceil($count/2); } $half++; - foreach($controller->people as $p=>$indi) { + foreach ($controller->people as $p=>$indi) { $pid = $indi->getXref(); $col = $p % 6; if ($i==$half) { @@ -349,7 +349,7 @@ if (count($controller->people)>0) { //-- at a scale of 25 or higher, show every year $mod = 25/$controller->scale; if ($mod<1) $mod = 1; - for($i=$controller->baseyear+1; $i<$controller->topyear; $i++) { + for ($i=$controller->baseyear+1; $i<$controller->topyear; $i++) { if ($i % $mod == 0) { echo "<div id=\"scale$i\" style=\"font-family: Arial; position:absolute; ".($TEXT_DIRECTION =="ltr"?"left: $basexoffset":"right: $basexoffset")."px; top:".floor($baseyoffset+(($i-$controller->baseyear)*$controller->scale)-$controller->scale/2)."px; font-size: 7pt; text-align:".($TEXT_DIRECTION =="ltr"?"left":"right").";\">"; echo $i."--"; @@ -361,13 +361,13 @@ if (count($controller->people)>0) { echo "</div>"; sort_facts($controller->indifacts); $factcount=0; - foreach($controller->indifacts as $indexval => $fact) { + foreach ($controller->indifacts as $indexval => $fact) { $controller->print_time_fact($fact); $factcount++; } // print the age boxes - foreach($controller->people as $p=>$indi) { + foreach ($controller->people as $p=>$indi) { $pid = $indi->getXref(); $ageyoffset = $baseyoffset + ($controller->bheight*$p); $col = $p % 6; @@ -411,7 +411,7 @@ if (count($controller->people)>0) { var birthmonths = new Array(); var birthdays = new Array(); <?php - foreach($controller->people as $c=>$indi) { + foreach ($controller->people as $c=>$indi) { $pid = $indi->getXref(); if (!empty($controller->birthyears[$pid])) echo "birthyears[".$c."]=".$controller->birthyears[$pid].";"; if (!empty($controller->birthmonths[$pid])) echo "birthmonths[".$c."]=".$controller->birthmonths[$pid].";"; |
