/** * Draws the block that displays all tracks from an artist on the artist page * * @author Ross Carlson * @version 01/13/05 * @since 01/13/05 * @param $node The node of the item we are viewing */ function displayAllTracks($node) { $arr = array(); $arr['jz_path'] = $node->getPath("String"); $viewAll = '<a href="' . urlize($arr) . '">View Sampler</a>'; $blocks = new jzBlocks(); $blocks->blockHeader($node->getName() . " Sampler", $viewAll); $blocks->blockBodyOpen(); ?> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td width="100%"> <?php $tracks = $node->getSubNodes("tracks", -1, true); $blocks->trackTable($tracks, "sample-all"); ?> </td> </tr> </table> <?php $blocks->blockBodyClose(); }