Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/lib/com/sergids/topmusic/view/MusicMozAdminView.php
<?php
class MusicMozAdminView{
	function printHead($ThemeSel){
		print "<html>
		<head>
			<LINK REL=\"StyleSheet\" HREF=\"../../../themes/".$ThemeSel."/style/style.css\" TYPE=\"text/css\">
			<title>Top Music - MusicMoz Toolz</title>
		</head>	
		<body topmargin=0>
		";
	}
	function printFoot(){
		print "</body></html>";
	}
	function printArtistResults($results,$ThemeSel){
		MusicMozAdminView::printHead($ThemeSel);
		print "<table width=\"100%\">\n";
		if(count($results)>0){
			foreach($results as $artist){
				print "	<tr>\n";
				print "		<td>".$artist->name."</td>\n";
				print "		<td><a href=\"musicmoz_insertartist.php?path=".$artist->musicmoz_url."\">Insert</a></td>\n";
				print "	</tr>\n";
			}
		}else{
			print "	<tr>\n";
			print "		<td align=\"center\">No results found.</td>\n";
			print "	</tr>\n";
			print "	<tr>\n";
			print "		<td>&nbsp;</td>\n";
			print "	</tr>\n";
			print "	<tr>\n";
			print "		<td align=\"center\"><a href=\"#\" onClick=\"window.close()\">Close</a></td>\n";
			print "	</tr>\n";
		}
		print "</table>";
		MusicMozAdminView::printFoot();
	}
	function printAlbumResults($idartist,$results,$ThemeSel){
		MusicMozAdminView::printHead($ThemeSel);
		print "<table width=\"100%\">\n";
		if(count($results)>0){
			foreach($results as $album){
				print "	<tr>\n";
				print "		<td>";
				if($album->frontcover_url!=""){
						print "<img src=\"".$album->frontcover_url."\" width=\"80\">";
				}else
					print "&nbsp;";
				print "</td>\n";
				print "		<td>".$album->title."</td>\n";
				print "		<td><a href=\"musicmoz_insertalbum.php?idartist=".$idartist."&path=".urlencode($album->musicmoz_url)."\">Insert</a></td>\n";
				print "	</tr>\n";
			}
			print " <tr><td coslpan=\"3\">&nbsp;</td></tr>\n";
			print " <tr><td coslpan=\"3\"><a href=\"#\" onClick=\"window.close()\">Close</a></td></tr>\n";
		}else{
			print "	<tr><td>&nbsp;</td></tr>\n";
			print "	<tr><td align=\"center\">No results found.</td></tr>\n";
			print "	<tr><td>&nbsp;</td></tr>\n";
			print "	<tr><td align=\"center\"><a href=\"#\" onClick=\"window.close()\">Close</a></td></tr>\n";
		}
		print "</table>";
		MusicMozAdminView::printFoot();
	}
	function printSongResults($album,$ThemeSel){
		MusicMozAdminView::printHead($ThemeSel);
		print "<table width=\"100%\">\n";
		if(count($album->songs)>0){
			foreach($album->songs as $song){
				print "	<tr>\n";
				print "		<td>".$song->number."</td>\n";
				print "		<td>".stripslashes($song->title)."</td>\n";
				print "		<td><a href=\"musicmoz_insertsong.php?idalbum=".$album->id."&path=".urlencode($album->musicmoz_url)."&song=".urlencode(stripslashes($song->title))."\">Insert</a></td>\n";
				print "	</tr>\n";
			}
			print " <tr><td coslpan=\"3\">&nbsp;</td></tr>\n";
			print " <tr><td coslpan=\"3\"><a href=\"#\" onClick=\"window.close()\">Close</a></td></tr>\n";
		}else{
			print "	<tr><td>&nbsp;</td></tr>\n";
			print "	<tr><td align=\"center\">No results found.</td></tr>\n";
			print "	<tr><td>&nbsp;</td></tr>\n";
			print "	<tr><td align=\"center\"><a href=\"#\" onClick=\"window.close()\">Close</a></td></tr>\n";
		}
		print "</table>";
		MusicMozAdminView::printFoot();
	}
	function printSuccess($ThemeSel){
		MusicMozAdminView::printHead($ThemeSel);
		print "<table width=\"100%\">\n";
		print "	<tr>\n";
		print "		<td align=\"center\">All information added successfully</td>\n";
		print "	</tr>\n";
		print "	<tr>\n";
		print "		<td>&nbsp;</td>\n";
		print "	</tr>\n";
		print "	<tr>\n";
		print "		<td align=\"center\"><a href=\"#\" onClick=\"window.close()\">Close</a></td>\n";
		print "	</tr>\n";
		print "</table>";
		MusicMozAdminView::printFoot();
	}
	function printArtistUpdate($artist,$ThemeSel){
		MusicMozAdminView::printHead($ThemeSel);
		print "<table width=\"100%\">\n";
		print "	<tr>\n";
		print "		<td align=\"center\">No results found.</td>\n";
		print "	</tr>\n";
		print "	<tr>\n";
		print "		<td>&nbsp;</td>\n";
		print "	</tr>\n";
		print "	<tr>\n";
		print "		<td align=\"center\"><a href=\"#\" onClick=\"window.close()\">Close</a></td>\n";
		print "	</tr>\n";
		print "</table>";
		MusicMozAdminView::printFoot();
	}
}
?>
Return current item: Top Music module