| @@ 3945-3949 (lines=5) @@ | ||
| 3942 | ||
| 3943 | return '<img src="' . "https://chart.googleapis.com/chart?cht=bvg&chs={$sizes[0]}x{$sizes[1]}&chm=D,FF0000,2,0,3,1|{$chmm}{$chmf}&chf=bg,s,ffffff00|c,s,ffffff00&chtt=" . rawurlencode($chtt) . "&chd={$chd}&chco=0000FF,FFA0CB,FF0000&chbh=20,3&chxt=x,x,y,y&chxl=" . rawurlencode($chxl) . '&chdl=' . rawurlencode(I18N::translate('Males') . '|' . I18N::translate('Females') . '|' . I18N::translate('Average age')) . "\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"" . I18N::translate('Average age in century of marriage') . '" title="' . I18N::translate('Average age in century of marriage') . '" />'; |
|
| 3944 | } else { |
|
| 3945 | if ($year1 >= 0 && $year2 >= 0) { |
|
| 3946 | $years = " married.d_year BETWEEN {$year1} AND {$year2} AND "; |
|
| 3947 | } else { |
|
| 3948 | $years = ''; |
|
| 3949 | } |
|
| 3950 | $rows = $this->runSql( |
|
| 3951 | "SELECT SQL_CACHE " . |
|
| 3952 | " fam.f_id, " . |
|
| @@ 5135-5139 (lines=5) @@ | ||
| 5132 | $year2 = -1; |
|
| 5133 | } |
|
| 5134 | $sizes = explode('x', $size); |
|
| 5135 | if ($year1 >= 0 && $year2 >= 0) { |
|
| 5136 | $years = " married.d_year BETWEEN '{$year1}' AND '{$year2}' AND"; |
|
| 5137 | } else { |
|
| 5138 | $years = ''; |
|
| 5139 | } |
|
| 5140 | $max = 0; |
|
| 5141 | $tot = 0; |
|
| 5142 | $rows = $this->runSql( |
|