$row[treename]"; if( $row[branch] ) { //explode on commas $branches = explode(",",$row[branch]); $count = 0; $branchstr = ""; foreach($branches as $branch) { $count++; $brquery = "SELECT description FROM $branches_table WHERE branch = \"$branch\" and gedcom = \"$tree\""; $brresult = mysql_query($brquery) or die ("$text[cannotexecutequery]: $brquery"); $brrow = mysql_fetch_assoc($brresult); $branchstr .= $brrow[description] ? $brrow[description] : $branch; if($count < count($branches)) $branchstr .= ", "; mysql_free_result($brresult); } if( $branchstr ) $treestr = $treestr . " | $branchstr"; } mysql_free_result($result); writelog( "$text[indinfofor] $logname ($personID)" ); preparebookmark( "$text[indinfofor] $namestr ($personID)" ); $flags['tabs'] = $tngconfig[tabs]; $flags['scripting'] = "\n"; if( $map[key] ) $flags['scripting'] .= "\n"; if($row['allow_living']) tng_header( "$namestr $text[birthabbr] $row[birthdate] $row[birthplace] $text[deathabbr] $row[deathdate] $row[deathplace]", $flags ); else tng_header($namestr, $flags); $indmedia = getMedia($row,"I"); $photostr = showSmallPhoto( $personID, $namestr, $row[allow_living], 0 ); if( $row[allow_living] ) { $citekey = $personID . "_"; $cite = reorderCitation( $citekey ); $citekey = $personID . "_NAME"; $cite2 .= reorderCitation( $citekey ); if( $cite2 ) $cite .= $cite ? ", $cite2" : $cite2; if( $cite ) $namestr .= "[$cite]"; } echo tng_DrawHeading( $photostr, $namestr, getYears( $row ) ); echo tng_coreicons(); $persontext = ""; $persontext .= "\n"; $tng_alink = $tng_plink = $tng_mlink = $tng_glink = "lightlink"; if( $media || $notes || $citedispctr || $map[key] ) { if( $tngconfig[istart] ) { if( $tng_extras ) $tng_mlink = "lightlink3"; else $tng_plink = "lightlink3"; } else $tng_alink = "lightlink3"; $innermenu = "$text[persinfo]    |    \n"; if( $media ) $innermenu .= "$text[media]    |    \n"; if( $notes ) $innermenu .= "$text[notes]    |    \n"; if( $citedispctr ) $innermenu .= "$text[sources]    |    \n"; if( $map[key] && $locations2map) $innermenu .= "$text[gmapevent]    |    \n"; $innermenu .= "$text[all]\n"; } else $innermenu = "$text[persinfo]\n"; $innermenu .= "    |    PDF\n"; echo tng_menu( "I", "person", $personID, $innermenu ); ?>
var blocks = $$('td.indleftcol'); var elementcw = $('info1') ? $('info1').clientWidth : $('$firstsectionsave" . "1').clientWidth; var elementcwadj = elementcw - 8; blocks.each(function(item) { $(item).width = elementcwadj; });\n"; if( $map['key'] && $locations2map ) { if($tngconfig['istart']) $flags['more'] .= "window.onload = function() {document.getElementById('eventmap').style.display = 'none';};\n"; } $flags['more'] .= "\n"; $flags['more'] .= "\n"; if($tentative_edit) $flags['more'] .= "\n"; tng_footer( $flags ); ?>