Tree of Life
[insert_php]
global $wpdb;
$ranks = $wpdb->get_results(‘SELECT * FROM green_life_ranks ORDER BY rankID’);
$cnt = count($ranks);
$step = 1;
$size = 14+$cnt*$step;
//$r = 0; $g=66; $b=0;
foreach($ranks as $rank) {
if($rank->name===’Life’) {
$style = sprintf(“style=\”color:#008000; font-size:%dpx\””, $size+6);
}
else {
$style = sprintf(“style=\”color:#008000; font-size:%dpx\””, $size);
// $style = sprintf(“style=\”color:#%02x%02x%02x; font-size:%dpx\””, $r, $g, $b, $size);
}
if(strpos($rank->name, ‘Sub’)===0) print ‘ ‘;
print ‘
v.s. non-living things )’;
print ‘
‘;
// $r += floor(128/$cnt*1.5);
// $g += floor(128/$cnt);
// $b += floor(128/$cnt/3);
$size -= $step;
}
[/insert_php]
Tree of Life (Three Domains)
Five Kingdoms, Six Kingdoms or Three Domains?
What do you think?