function drawPage(&$node) { global $cellspacing, $this_page, $img_play, $artist_truncate, $main_table_width, $img_random_play, $directory_level, $web_root, $root_dir, $img_more, $media_dir, $show_sub_numbers, $show_all_checkboxes, $img_more_dis, $img_play_dis, $img_random_play_dis, $url_seperator, $days_for_new, $img_rate, $enable_ratings, $enable_discussion, $img_discuss, $show_sub_numbers, $disable_random, $info_level, $enable_playlist, $track_play_only, $css, $skin, $bg_c, $text_c, $img_discuss_dis, $hierarchy, $random_albums, $frontend, $include_path, $show_frontpage_items, $show_alphabet, $chart_types, $fe, $num_artist_cols, $show_artist_art, $art_size, $artist_art_size; // Let's see if the theme is set or not, and if not set it to the default //if (isset($_SESSION['cur_theme'])){ $_SESSION['cur_theme'] = $skin; } // if you were looking this, sorry for the hack ;) // Override icons and other styles: handleFrontendOverrides(); // Let's setup the display object $blocks =& new jzBlocks(); $display =& new jzDisplay(); $fe =& new jzFrontend(); ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <td align="center" valign="top"> <?php // Now let's display the site description /*$news = $blocks->siteNews($node); if ($news <> ""){ ?> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td class="jz_block_td" colspan="3"> <strong><?php echo word("Site News"); ?></strong> </td> </tr> <tr> <td class="jz_nj_block_body" width="33%"> <?php echo $news; ?> </td> </tr> </table> <br> <?php }*/ $lvl = isset($_GET['jz_letter']) ? $_GET['jz_level'] + $node->getLevel() - 1 : $node->getLevel(); $show_art = false; switch ($hierarchy[$lvl]) { case "genre": $pg_title = word("ALL GENRES"); break; case "artist": $pg_title = word("ALL ARTISTS"); if ($show_artist_art == "true") { $show_art = true; $my_art_size = $artist_art_size; } break; case "album": $pg_title = word("ALL ALBUMS"); if ($show_album_art == "true") { $show_art = true; $my_art_size = $art_size; } break; default: $pg_title = word("ALL GENRES"); break; } ?> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <?php if (isset($_GET['jz_charts'])) { $node = new jzMediaNode(); chartHelper("newalbums"); chartHelper("recentplayalbum"); echo '</tr>'; echo '<tr><td colspan="2">'; include jzBlock('randomAlbums'); echo '</td></tr>'; return; } echo '<td class="jz_block_td" colspan="3">'; if (isset($_GET['jz_letter'])) { $genres = $node->getAlphabetical($_GET['jz_letter'], "nodes", $_GET['jz_level']); } else { $genres = $node->getSubNodes("nodes"); } // Now for the title if ($_GET['jz_path'] == "") { echo '<strong>' . $pg_title . "</strong>"; } else { echo '<strong>ARTISTS IN '; $display->link($node, $node->getName()); echo ' (' . $node->getSubNodeCount("nodes") . ")</strong>"; } ?> </td> </tr> <?php $colwidth = floor(100 / $num_artist_cols); $c = 0; foreach ($genres as $genre) { // Now let's start our row if ($c % $num_artist_cols == 0) { if ($c > 0) { echo '</tr>'; } echo '<tr>'; } echo '<td class="jz_nj_block_body" width="' . $colwidth . '%" valign="top">'; $display->playButton($genre); echo " "; $linktext = $display->returnShortName($genre->getName(), 25); if ($show_art) { if ($art = $genre->getMainArt($my_art_size . 'x' . $my_art_size)) { $linktext .= '<br/>'; $linktext .= $display->returnImage($art); } } $display->link($genre, $linktext, word("Browse: ") . $genre->getName()); //echo " (". $genre->getSubNodeCount("both"). ")"; echo '</td>'; $c++; } // Now let's finish out while ($c % $num_artist_cols != 0) { echo '<td class="jz_nj_block_body"> </td>'; $c++; } ?> </tr> </table> </td> <td align="center"> </td> <?php // Now what to show? if ($_GET['jz_path'] != "") { /* ?> <td align="center" valign="top"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td class="jz_block_td" colspan="3"> <strong>ALBUMS IN THIS GENRE [<?php $display->link($node,$node->getName()); ?>] (<?php echo $node->getSubNodeCount("nodes",2); ?>)</strong> </td> </tr> <?php $albums = $node->getSubNodes("nodes",distanceTo("album",$node)); $c=0; foreach($albums as $album){ // Now let's start our row if ($c == 0){echo '<tr>';} echo '<td class="jz_nj_block_body" nowrap width="33%">'; $display->playButton($album); echo " "; $display->randomPlayButton($album); echo " "; $display->link($album, $display->returnShortName($album->getName(),15), word("Browse: "). $album->getName()); echo " (". $album->getSubNodeCount("tracks"). ")"; echo '</td>'; $c++; if ($c==3){$c=0;} } // Now let's finish out if ($c <> 0){ while($c<3){ echo '<td class="jz_nj_block_body"> </td>'; $c++; } } ?> </table> </td> <?php */ } else { /* ?> <td align="center" valign="top"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td class="jz_block_td"> <strong>LATEST ARTISTS</strong> </td> </tr> <tr> <td class="jz_nj_block_body"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <?php // Now how many should we show? $show = round(((count($genres) / 3)) * 1.5); $blocks->showCharts($node,"newartists",$show,false,false); ?> </table> </td> </tr> </table> </td> <td align="center"> </td> <td align="center" valign="top"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td class="jz_block_td"> <strong>LATEST ALBUMS</strong> </td> </tr> <tr> <td class="jz_nj_block_body"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <?php $show = round(((count($genres) / 3)) * 1.5); $blocks->showCharts($node,"newalbums",$show,false,false); ?> </table> </td> </tr> </table> </td> <?php */ } ?> </tr> </table> <br> <?php }
function drawPage(&$node) { global $media_dir, $skin, $hierarchy, $album_name_truncate, $web_root, $root_dir, $jz_MenuItemLeft, $jz_MenuSplit, $jz_MenuItemHover, $jz_MainItemHover, $jz_MenuItem, $disable_random, $allow_download, $allow_send_email, $amg_search, $echocloud, $include_path, $img_play, $img_random_play, $this_page, $img_check, $img_check_none, $jzUSER, $img_play_dis, $img_random_play_dis, $show_sampler, $show_similar, $show_radio, $show_album_art, $days_for_new, $img_new, $num_album_cols, $show_album_art, $art_size; $display =& new jzDisplay(); $blocks =& new jzBlocks(); $fe =& new jzFrontend(); handleFrontendOverrides(); ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <?php // Now what to show? if (isset($_GET['jz_path'])) { ?> <td align="center" valign="top"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td class="jz_block_td" colspan="3"> <strong>ALBUMS BY <?php echo $display->link($node, $node->getName()); ?> </strong> </td> </tr> <?php $colwidth = floor(100 / $num_album_cols); $albums = $node->getSubNodes("nodes", distanceTo("album", $node)); $c = 0; foreach ($albums as $album) { // Now let's start our row if ($c % $num_album_cols == 0) { if ($c > 0) { echo '</tr>'; } echo '<tr>'; } echo '<td class="jz_nj_block_body" valign="top" width="' . $colwidth . '%">'; $display->playButton($album); echo " "; $linktext = $album->getName(); if ($show_album_art == "true") { if ($art = $album->getMainArt($art_size . 'x' . $art_size)) { $linktext .= '<br/>'; $linktext .= $display->returnImage($art); } } $display->link($album, $linktext, word("Browse: ") . $album->getName()); //echo " (". $album->getSubNodeCount("tracks"). ")"; echo '</td>'; $c++; } // Now let's finish out while ($c % $num_album_cols != 0) { echo '<td class="jz_nj_block_body"> </td>'; $c++; } ?> </tr> </table> <br> </td> <?php } else { /* ?> <td align="center" valign="top"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td class="jz_block_td"> <strong>LATEST ARTISTS</strong> </td> </tr> <tr> <td class="jz_nj_block_body"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <?php // Now how many should we show? $show = round(((count($genres) / 3)) * 1.5); $blocks->showCharts($node,"newartists",$show,false,false); ?> </table> </td> </tr> </table> </td> <td align="center"> </td> <td align="center" valign="top"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td class="jz_block_td"> <strong>LATEST ALBUMS</strong> </td> </tr> <tr> <td class="jz_nj_block_body"> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <?php $show = round(((count($genres) / 3)) * 1.5); $blocks->showCharts($node,"newalbums",$show,false,false); ?> </table> </td> </tr> </table> </td> <?php */ } ?> </tr> </table> <br> <?php }
function drawPage(&$node) { global $media_dir, $jinzora_skin, $hierarchy, $album_name_truncate, $row_colors, $img_download, $img_more, $img_email, $img_play, $img_random_play, $img_rate, $img_discuss, $num_other_albums, $root_dir, $enable_ratings, $short_date, $jzUSER, $img_play_dis, $img_random_play_dis, $img_download_dis, $show_similar, $show_radio, $jzSERVICES, $show_album_art, $this_page, $num_track_cols; // Let's setup the new display object $display =& new jzDisplay(); $blocks =& new jzBlocks(); $fe =& new jzFrontend(); $parent = $node->getAncestor("artist"); handleFrontendOverrides(); ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <td> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <?php $colwidth = floor(100 / $num_track_cols); $tracks = $node->getSubNodes('tracks', -1); $c = 1; $c2 = 0; echo '<tr><td class="jz_nj_block_body" colspan="2">'; $artist = $tracks[0]->getAncestor("artist"); if ($artist) { $display->playButton($artist); echo " "; $display->link($artist, $artist->getName()); } else { echo $meta['artist']; } echo " "; $display->playButton($node); echo " "; $display->link($node, $node->getName()); ?> </td></tr> <tr> <td class="jz_block_td" colspan="<?php echo $num_track_cols; ?> " nowrap> <strong>Track Names</strong> </td> </tr> <form name="tracklist" method="POST" action="<?php echo urlize(array()); ?> "> <input type="hidden" name="<?php echo jz_encode("action"); ?> " value="<?php echo jz_encode("mediaAction"); ?> "> <input type="hidden" name="<?php echo jz_encode("jz_path"); ?> " value="<?php echo htmlentities(jz_encode($node->getPath("String"))); ?> "> <input type="hidden" name="<?php echo jz_encode("jz_list_type"); ?> " value="<?php echo jz_encode("tracks"); ?> "> <input type="hidden" name="<?php echo jz_encode("sendList"); ?> " value="<?php echo jz_encode("true"); ?> "> <input type="hidden" name="randomize" value="false"> <?php foreach ($tracks as $track) { $meta = $track->getMeta(); $c = 2; if ($c2 % $num_track_cols == 0) { if ($c2 > 0) { echo '</tr>'; } echo '<tr>'; } echo '<td class="jz_nj_block_body" width="' . $colwidth . '%">'; $display->playButton($track); echo " "; $dispname = ''; $meta = $track->getMeta(); if (!isNothing($meta['number'])) { $dispname .= $meta['number'] . ' '; } $dispname .= $track->getName(); $display->playLink($track, $dispname, "Play " . $track->getName()); echo '</td>'; $c2++; if ($c2 % $num_track_cols == 0) { echo '</tr>'; } } while ($c2 % $num_track_cols != 0) { $c2++; echo '<td class="jz_nj_block_body"> </td>'; } ?> </tr> </table> </form> </td> </tr> </table> <?php }