@@ 409-415 (lines=7) @@ | ||
406 | if ($z_axis === 300) { |
|
407 | $num = $stats->statsMarrAgeQuery(false, 'M'); |
|
408 | $indi = []; |
|
409 | foreach ($num as $values) { |
|
410 | if (!in_array($values['d_gid'], $indi)) { |
|
411 | fill_y_data(0, (int) ($values['age'] / 365.25), 1); |
|
412 | $total++; |
|
413 | $indi[] = $values['d_gid']; |
|
414 | } |
|
415 | } |
|
416 | $num = $stats->statsMarrAgeQuery(false, 'F'); |
|
417 | $indi = []; |
|
418 | foreach ($num as $values) { |
|
@@ 418-424 (lines=7) @@ | ||
415 | } |
|
416 | $num = $stats->statsMarrAgeQuery(false, 'F'); |
|
417 | $indi = []; |
|
418 | foreach ($num as $values) { |
|
419 | if (!in_array($values['d_gid'], $indi)) { |
|
420 | fill_y_data(0, (int) ($values['age'] / 365.25), 1); |
|
421 | $total++; |
|
422 | $indi[] = $values['d_gid']; |
|
423 | } |
|
424 | } |
|
425 | } elseif ($z_axis === 301) { |
|
426 | $num = $stats->statsMarrAgeQuery(false, 'M'); |
|
427 | $indi = []; |
|
@@ 428-434 (lines=7) @@ | ||
425 | } elseif ($z_axis === 301) { |
|
426 | $num = $stats->statsMarrAgeQuery(false, 'M'); |
|
427 | $indi = []; |
|
428 | foreach ($num as $values) { |
|
429 | if (!in_array($values['d_gid'], $indi)) { |
|
430 | fill_y_data(0, (int) ($values['age'] / 365.25), 1); |
|
431 | $total++; |
|
432 | $indi[] = $values['d_gid']; |
|
433 | } |
|
434 | } |
|
435 | $num = $stats->statsMarrAgeQuery(false, 'F'); |
|
436 | $indi = []; |
|
437 | foreach ($num as $values) { |
|
@@ 437-443 (lines=7) @@ | ||
434 | } |
|
435 | $num = $stats->statsMarrAgeQuery(false, 'F'); |
|
436 | $indi = []; |
|
437 | foreach ($num as $values) { |
|
438 | if (!in_array($values['d_gid'], $indi)) { |
|
439 | fill_y_data(1, (int) ($values['age'] / 365.25), 1); |
|
440 | $total++; |
|
441 | $indi[] = $values['d_gid']; |
|
442 | } |
|
443 | } |
|
444 | } else { |
|
445 | $zstart = 0; |
|
446 | $indi = []; |
|
@@ 449-455 (lines=7) @@ | ||
446 | $indi = []; |
|
447 | foreach ($z_boundaries as $boundary) { |
|
448 | $num = $stats->statsMarrAgeQuery(false, 'M', $zstart, $boundary); |
|
449 | foreach ($num as $values) { |
|
450 | if (!in_array($values['d_gid'], $indi)) { |
|
451 | fill_y_data($boundary, (int) ($values['age'] / 365.25), 1); |
|
452 | $total++; |
|
453 | $indi[] = $values['d_gid']; |
|
454 | } |
|
455 | } |
|
456 | $num = $stats->statsMarrAgeQuery(false, 'F', $zstart, $boundary); |
|
457 | foreach ($num as $values) { |
|
458 | if (!in_array($values['d_gid'], $indi)) { |
|
@@ 457-463 (lines=7) @@ | ||
454 | } |
|
455 | } |
|
456 | $num = $stats->statsMarrAgeQuery(false, 'F', $zstart, $boundary); |
|
457 | foreach ($num as $values) { |
|
458 | if (!in_array($values['d_gid'], $indi)) { |
|
459 | fill_y_data($boundary, (int) ($values['age'] / 365.25), 1); |
|
460 | $total++; |
|
461 | $indi[] = $values['d_gid']; |
|
462 | } |
|
463 | } |
|
464 | $zstart = $boundary + 1; |
|
465 | } |
|
466 | } |