include_once("functions.php");
extract(getBio($_GET['id']));
function wrap($title,$content){
return "$title $content
";
}
$left = '
';
$right = '
';
if(strlen($doby)>1 && strlen($dobp)>0) $left .= wrap('Born',"$dobp ($doby)");
else if(strlen($doby)>1) $left .= wrap('Born',"$doby");
else if(strlen($dobp)>0) $left .= wrap('Born',"$dobp");
if(strlen($origin)>0) $left .= wrap('From',"$origin");
if(strlen($loc)>0) $left .= wrap('Resides',"$loc");
if(strlen($edu)>0) $left .= wrap('Education',"$edu");
$expos = "";
if( strlen($expo0)>0 ) $expos .= "
• $expo0";
if( strlen($expo1)>0 ) $expos .= "
• $expo1";
if( strlen($expo2)>0 ) $expos .= "
• $expo2";
if( strlen($expo3)>0 ) $expos .= "
• $expo3";
if( strlen($expo4)>0 ) $expos .= "
• $expo4";
if( strlen($expos)>0 ) $left .= wrap('Exhibitions',"$expos");
if(strlen($hobby)>0)
$right .= wrap("What would you be doing if you weren't an artist?", $hobby);
if(strlen($artist)>0)
$right .= wrap("Is there an artist who inspired you?", $artist);
if(strlen($descr)>0){
$next = wrap("Description of work", $descr);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($process)>0){
$next = wrap("Description of work process", $process);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($history)>0){
$next = wrap("How he/she began working as an artist", $history);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($love)>0){
$next = wrap("Loves most about work as artist", $love);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($media)>0){
$next = wrap("Materials used in the production of work", $media);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($plist)>0){
$next = wrap("Publications that have featured work", $plist);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($clist)>0){
$next = wrap("Work in any major collections", $clist);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($artist)>0){
$next = wrap("Significant influences (artists, movements, personal experiences, family, etc.)", $artist);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($royal)>0){
$next = wrap("Works in the Royal Art Collection", $royal);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
if(strlen($opinion)>0){
$next = wrap("Thoughts on the new Art Actually program", $opinion);
if(strlen($right)>strlen($left)) $left .= $next;
else $right .= $next;
}
$left .= "
";
$right .= "
";
print("$left \n $right");
?>