Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/includes/path.php
<?php

$menuPath="<a href=\"index.php\">"._HOME."</a>";

switch($_GET['op']){
	case "AZ":
		$menuPath.=" : Top Music : "._TOPMUSIC_AZ;
		break;
	case "search":
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		$menuPath.=" : "._SEARCH."</a>";
		break;
	case "artist":
	case "voteArtist":
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistDAO.php");
		$artistDAO=new ArtistDAO($db,$prefix);
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		$artistname=$artistDAO->getArtistName($_GET['idartist']);
		$menuPath.=" : $artistname";
		break;
	case "bio":
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistDAO.php");
		$artistDAO=new ArtistDAO($db,$prefix);
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		$artistname=$artistDAO->getArtistName($_GET['idartist']);
		if(!$config->getEasyURL())
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."&op=artist&idartist=".$_GET['idartist']."&idalbum=".$_GET['idalbum']."&idsong=".$_GET['idsong']."\">$artistname</a>";
		elseif($config->getEasyURLType()==1)
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".$_GET['idartist']."\">$artistname</a>";
		elseif($config->getEasyURLType()==2)
			$menuPath.=" : <a href=\"artist".$_GET['idartist'].".html\">$artistname</a>";
		else
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".urlencode($artistname)."\">$artistname</a>";
		$menuPath.=" : "._TOPMUSIC_BIOGRAPHY;
		break;
	case "albumlist":
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistDAO.php");
		$artistDAO=new ArtistDAO($db,$prefix);
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		$artistname=$artistDAO->getArtistName($_GET['idartist']);
		if(!$config->getEasyURL())
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."&op=artist&idartist=".$_GET['idartist']."&idalbum=".$_GET['idalbum']."&idsong=".$_GET['idsong']."\">$artistname</a>";
		elseif($config->getEasyURLType()==1)
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".$_GET['idartist']."\">$artistname</a>";
		elseif($config->getEasyURLType()==2)
			$menuPath.=" : <a href=\"artist".$_GET['idartist'].".html\">$artistname</a>";
		else
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".urlencode($artistname)."\">$artistname</a>";
		$menuPath.=" : "._TOPMUSIC_LISTOFALBUMS;
		break;
	case "album":
	case "voteAlbum":
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistDAO.php");
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/AlbumDAO.php");
		$artistDAO=new ArtistDAO($db,$prefix);
		$albumDAO=new AlbumDAO($db,$prefix);
		$artistname=$artistDAO->getArtistName($_GET['idartist']);
		$albumname=$albumDAO->getAlbumTitle($_GET['idalbum']);
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		if(!$config->getEasyURL())
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."&op=artist&idartist=".$_GET['idartist']."&idalbum=".$_GET['idalbum']."&idsong=".$_GET['idsong']."\">$artistname</a>";
		elseif($config->getEasyURLType()==1)
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".$_GET['idartist']."\">$artistname</a>";
		elseif($config->getEasyURLType()==2)
			$menuPath.=" : <a href=\"artist".$_GET['idartist'].".html\">$artistname</a>";
		else
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".urlencode($artistname)."\">$artistname</a>";
		$menuPath.=" : $albumname";
		break;
	case "songlist":
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistDAO.php");
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/AlbumDAO.php");
		$artistDAO=new ArtistDAO($db,$prefix);
		$albumDAO=new AlbumDAO($db,$prefix);
		$artistname=$artistDAO->getArtistName($_GET['idartist']);
		$albumname=$albumDAO->getAlbumTitle($_GET['idalbum']);
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		if(!$config->getEasyURL())
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."&op=artist&idartist=".$_GET['idartist']."&idalbum=".$_GET['idalbum']."&idsong=".$_GET['idsong']."\">$artistname</a>";
		elseif($config->getEasyURLType()==1)
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".$_GET['idartist']."\">$artistname</a>";
		elseif($config->getEasyURLType()==2)
			$menuPath.=" : <a href=\"artist".$_GET['idartist'].".html\">$artistname</a>";
		else
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".urlencode($artistname)."\">$artistname</a>";
		if(!$config->getEasyURL())
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."&op=album&idartist=".$_GET['idartist']."&idalbum=".$_GET['idalbum']."&idsong=".$_GET['idsong']."\">$albumname</a>";
		elseif($config->getEasyURLType()==1)
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".$_GET['idartist']."/album/".$_GET['idalbum']."\">$albumname</a>";
		elseif($config->getEasyURLType()==2)
			$menuPath.=" : <a href=\"album".$_GET['idartist']."_".$_GET['idalbum'].".html\">$albumname</a>";
		else
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".urlencode($artistname)."/album/".urlencode($albumname)."\">$albumname</a>";
		$menuPath.=" : "._TOPMUSIC_SONGLIST;
		break;
	case "song":
	case "voteSong":
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistDAO.php");
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/AlbumDAO.php");
		require_once("modules/$module_name/lib/com/sergids/topmusic/model/SongDAO.php");
		$artistDAO=new ArtistDAO($db,$prefix);
		$albumDAO=new AlbumDAO($db,$prefix);
		$songDAO=new SongDAO($db,$prefix);
		$artistname=$artistDAO->getArtistName($_GET['idartist']);
		$albumname=$albumDAO->getAlbumTitle($_GET['idalbum']);
		$songname=$songDAO->getSongTitle($_GET['idsong']);
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		if(!$config->getEasyURL())
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."&op=artist&idartist=".$_GET['idartist']."&idalbum=".$_GET['idalbum']."&idsong=".$_GET['idsong']."\">$artistname</a>";
		elseif($config->getEasyURLType()==1)
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".$_GET['idartist']."\">$artistname</a>";
		elseif($config->getEasyURLType()==2)
			$menuPath.=" : <a href=\"artist".$_GET['idartist'].".html\">$artistname</a>";
		else
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".urlencode($artistname)."\">$artistname</a>";
		if(!$config->getEasyURL())
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."&op=album&idartist=".$_GET['idartist']."&idalbum=".$_GET['idalbum']."&idsong=".$_GET['idsong']."\">$albumname</a>";
		elseif($config->getEasyURLType()==1)
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".$_GET['idartist']."/album/".$_GET['idalbum']."\">$albumname</a>";
		elseif($config->getEasyURLType()==2)
			$menuPath.=" : <a href=\"album".$_GET['idartist']."_".$_GET['idalbum'].".html\">$albumname</a>";
		else
			$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php/artist/".urlencode($artistname)."/album/".urlencode($albumname)."\">$albumname</a>";
		$menuPath.=" : $songname";
		break;
	case "ranking":
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		$menuPath.=" : "._TOPMUSIC_RANKING;
		break;
	case "charts":
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		$menuPath.=" : "._TOPMUSIC_CHARTS;
		break;
	default:
		if($config->getEasyURL()){
			if($config->getEasyURLType()==2)
				$menuPath.=" : <a href=\"topmusic.html\">Top Music</a>";
			else
				$menuPath.=" : <a href=\"".$config->getBaseURL()."/music.php\">Top Music</a>";
		}else
			$menuPath.=" : <a href=\"modules.php?name=".$module_name."\">Top Music</a>";
		$menuPath.=" : ".$config->main_page;
 }

$smarty_path = new Smarty;
$smarty_path->caching = false;
$smarty_path->template_dir = "modules/$module_name/themes/".$tm_theme."/";
$smarty_path->compile_dir = "modules/$module_name/themes_c/".$tm_theme."/";
$smarty_path->cache_dir = $smarty->compile_dir;

$smarty_path->assign("menupath",$menuPath);

$tm_content_path=$smarty_path->fetch('path.tpl');
?>
Return current item: Top Music module