$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); $indmedia = getMedia($row,"I"); writelog( "" . xmlcharacters("$text[indinfofor] $logname ($personID)") . "" ); $flags[tabs] = $tngconfig[tabs]; tng_header( $namestr, $flags ); $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 = "lightlink"; if( $media || $notes || $citedispctr ) { 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"; $innermenu .= "$text[all]\n"; } else $innermenu = "$text[persinfo]\n"; echo tng_menu( "I", "person", $personID, $innermenu ); ?>
var elementcw; if( document.getElementById('info1') ) elementcw = document.getElementById('info1').clientWidth; else elementcw = document.getElementById('$firstsectionsave" . "1').clientWidth; if( !elementcw ) { elementcw = 100; elementcwadj = 92; if( document.getElementById('info1') ) document.getElementById('info1').width = elementcw; } else elementcwadj = elementcw - 8;\n"; if( $media ) $flags[more] .= "document.getElementById('media1').width = elementcwadj;\n"; if( $notes ) $flags[more] .= "document.getElementById('notes1').width = elementcwadj;\n"; if( $citedispctr ) $flags[more] .= "document.getElementById('citations1').width = elementcwadj;\n"; $flags[more] .= ""; tng_footer( $flags ); ?>