function chartHelper($type) { global $node; $blocks = new jzBlocks(); switch ($type) { case "newartists": $title = "LATEST ARTISTS"; break; case "recentplayalbum": $title = "PLAYED ALBUMS"; break; case "newalbums": $title = "LATEST ALBUMS"; break; } ?> <td align="center" valign="top"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td class="jz_block_td" width="50%"> <strong><?php echo $title; ?> </strong> </td> </tr> <tr> <td class="jz_nj_block_body" width="50%"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <?php $blocks->showCharts($node, $type, 8, false, false, array('allow_breaks' => 'true')); ?> </table> </td> </tr> </table> </td> <?php }