init(); // Default of 5 $clustersize = 5; if (!empty($_REQUEST['clustersize'])) { if ($_REQUEST['clustersize'] == '3') $clustersize = 3; else if ($_REQUEST['clustersize'] == '1') $clustersize = 1; } // Start of internal configuration variables // // The Cloudy theme resizes itself to max screen width, sometimes making // tables hard to construct for browser windows smaller that the screen // width. Setting $cloudy_locked = 1/0 will/won't force a the map to use // the width chosen in the GoogleMap configuration. All other themes // float the width of the map to fill the browser width nicely. $cloudy_locked = 1; // Limit this to match available number of icons. // 8 generations equals 255 individuals $MAX_PEDIGREE_GENERATIONS = min($MAX_PEDIGREE_GENERATIONS, 8); // End of internal configuration variables global $theme_name, $TEXT_DIRECTION; // -- print html header information print_header($controller->getPageTitle()); if (!$GOOGLEMAP_ENABLED) { echo "
| ", i18n::translate('GoogleMap module disabled'), " |
| \n"; echo "", i18n::translate('Manage GoogleMap configuration'), ""; echo " |
';
echo "" . i18n::translate('Pedigree Map') . " " . i18n::translate('for') . " "; echo PrintReady($controller->getPersonName()).""; // -- print the form to change the number of displayed generations if (!$controller->isPrintPreview()) { ?> |
\n";
echo " \n";
echo "\n";
if (WT_USER_IS_ADMIN) {
echo "
| \n"; echo " | \n"; echo " | \n"; echo "
| ";
// print summary statistics
if (isset($curgen)){
$total=pow(2,$curgen)-1;
$miss=$total-$count-$priv;
echo i18n::plural(
'%1$d individual displayed, out of the normal total of %2$d, from %3$d generations.',
'%1$d individuals displayed, out of the normal total of %2$d, from %3$d generations.',
$count,
$count, $total, $curgen
), ' '; echo " | \n";
echo "
| \n";
if ($priv) {
echo i18n::plural('%s individual is private.', '%s individuals are private.', $priv, $priv), ' '; } if ($count+$priv != $total) { if ($miscount == 1) { echo "".$miscount." "; echo " ".i18n::translate('individual is missing birth place map coordinates:')." \n"; } else if ($miscount > 1 && $miscount < 5) { echo "".$miscount." "; echo " ".i18n::translate('individuals are missing birth place map coordinates:')." \n"; } else if ($miscount > 21 && substr($miscount, -1, 1) > 1 && substr($miscount, -1, 1) < 5 && substr($miscount, -2, 1) != 1) { echo "".$miscount." "; echo " ".i18n::translate('individuals are missing birth place map coordinates:')." \n"; } else if ($miscount == 0) { echo " ".i18n::translate('No ancestors in the database.')." \n"; } else { echo "".$miscount." "; echo " ".i18n::translate('individuals are missing birth place map coordinates:')." \n"; } echo $missing . " \n"; } } echo " | \n";
echo "