Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/themes/sergids/artist.tpl
<link rel="stylesheet" href="modules/topMusic/themes/sergids/css/artist.css" TYPE="text/css" MEDIA="screen">
{* Artist Details Top Music Template *}
{config_load file=$configfile section="artist"}
{if !$artistVoted && $tm_rateartists}
<script language="javascript" type="text/javascript">
imon=new Image();
imon.src='modules/{$module_name}/themes/{$tm_theme}/images/star_on.gif';
imoff=new Image();
imoff.src='modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif';
{literal}
function voteArtist(rate){{/literal}
	document.voteForm.rate.value=rate;
	{if !$tm_easyURL }
		document.voteForm.action='modules.php?name={$module_name}&op=voteArtist&idartist={$id_artist}&idalbum={$id_album}&idsong={$id_song}';
	{elseif !$tm_easyURLtype }
		document.voteForm.action='{$tm_BaseURL}/music.php/voteArtist/{$artist->getName()}';
	{elseif $tm_easyURLtype==2 }
		document.voteForm.action='voteArtist{$id_artist}.html';
	{else}
		document.voteForm.action='{$tm_BaseURL}/music.php/voteArtist/{$id_artist}';
	{/if}
	document.voteForm.submit();
{literal}}
</script>
{/literal} {/if}
<div id="tm_module">
	<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
	<div id="tm_photo">
	{if $artist->getPhoto()!=""}
			        	<a href="#" onClick="window.open('{$photo_url}','Photo','menubar=no, toolbar=no, statusbar=no')">
			        	{if $photothumb_url!=""}
			        		<img name="foto" id="tm_img" src="{$photothumb_url}" title="{$artist->getName()}">
			        	{else}
			        	    <img name="foto" id="tm_img" src="{$photo_url}" width="200" title="{$artist->getName()}">
			        	{/if}
			        	</a>
			        {else}
			        	<a href="#" onClick="window.open('{$photo_url}','Photo','menubar=no, toolbar=no, statusbar=no')"><img name="foto" id="tm_img" src="modules/{$module_name}/images/no_photo.gif" width="200" alt="{$artist->getName()}" title="{$artist->getName()}"></a>
			        {/if}
	</div>
	<div id="tm_right">
	<div id="tm_info">
				<table border="0">
				      <tr>
				      	<td colspan="2">
				      	<div id="tm_title">{$artist->getName()}</div>
				      	</td>
				      </tr>
				      <!--   tr>
				        <td align="left" scope="col"><strong>{#Name#}:</strong></td>
				        <td scope="col">{$artist->getName()}</td>
				      </tr -->
				      <tr>
				        <td align="left"><strong>{if $dead_year!=""}{#Years#}{else}{#Year#}{/if}:</strong></td>
				        <td>{$artist->getBornyear()} {$dead_year}</td>
				      </tr>
				      <tr>
				        <td align="left"><strong>{#Genre#}:</strong></td>
				        <td>{$artist->getGenrename()}</td>
				      </tr>
					  {foreach item="field" key="num" from=$custom_fields}
					  <tr>
				        <td valign="top"><strong>{$field->description}:</strong></td>
				        <td>{$genericView->printCustomField($field)}</td>
				      </tr>
					  {/foreach}
				      <tr>
				        <td colspan="2">&nbsp;
							{if $artist->getWeb()!=""} <a href="{$artist->getWeb()}" target="_blank"><img src="modules/{$module_name}/themes/{$tm_theme}/images/web.gif" hspace="2" border="0" title="{$artist->getName()} {#Official_website#}" width="22"></a> {/if}
						    {if $forum_url!=""} <a href="{$forum_url}"><img src="modules/{$module_name}/themes/{$tm_theme}/images/forum.gif" hspace="4" border="0" title="{$artistname} {#forum#}"></a> {/if}		        
				        </td>
				      </tr>
				    </table>
	</div>
	<div id="tm_rate">
				 {* RATES *}
	        		{if $message!=""}
	        			<font color="red">{$message}</font><br>
	        		{/if}
			        {if $tm_rateartists} {#Average_rate#}:<br>
						{$rate_code}<br>
						{if !$artistVoted } {#Rate_this_artist#}:<br>
			          		<a href="javascript:voteArtist(1)" onMouseOver="focusStar(1,imon)" onMouseOut="blurStar(1,imoff)"><img name="star1" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a><a href="javascript:voteArtist(2)" onMouseOver="focusStar(2,imon)" onMouseOut="blurStar(2,imoff)"><img name="star2" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a><a href="javascript:voteArtist(3)" onMouseOver="focusStar(3,imon)" onMouseOut="blurStar(3,imoff)"><img name="star3" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a><a href="javascript:voteArtist(4)" onMouseOver="focusStar(4,imon)" onMouseOut="blurStar(4,imoff)"><img name="star4" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a><a href="javascript:voteArtist(5)" onMouseOver="focusStar(5,imon)" onMouseOut="blurStar(5,imoff)"><img name="star5" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a> 
			          	{/if} 
			        {/if}
	</div>
	</div>
	<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>

{* MEMBERS *}
{if $artist->getMembers()!=""}
	<div id="tm_module">
		<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
		<div id="tm_title2">{#Members#}:</div>
		{$artist->getMembers()}
		<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
	</div>
{/if}

{* BIOGRAPHY *}
{if $artist->getBiography()!=""}
	<div id="tm_module">
		<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
		<div id="tm_title2">{#Biography#}:</div>
		<div id="tm_text"> 
		{$artist->getBiography()|truncate:400:"..."}
		</div>
		<div id="tm_rightlink"><a href="{$bio_url}">{#More#} ></a></div>
		<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
	</div>
{/if}
  
{* TOP SONGS *}
{if count($top_songs)>0}
<div id="tm_module">
	<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
	<div id="tm_title2">{#Top_Songs#}:</div>
	        <table width="100%" border="0" cellpadding="2">
	      	{foreach item="song" key="num" from=$top_songs}
	          {if $num<=10}
	          	<tr><td width="25">&nbsp;</td><td colspan="3">{$num+1}.- <a href="modules.php?name={$module_name}&op=song&idartist={$id_artist}&idalbum={$song->getIdalbum()}&idsong={$song->getId()}">{$song->getTitle()}</a></td>
	          		<td>
	          		{$genericView->printPlayer($song,"button",$module_name,$tm_config)}
	          		</td><td>&nbsp;</td></tr>
		       {/if}
	        {/foreach}
	        </table>
	<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>
  {/if}
  
{* DISCOGRAPHY *}
{if count($discography)>0}
<div id="tm_module">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div id="tm_title2">{#Discography#}:</div>

        <table width="100%" border="0" cellpadding="2">
        <tr>
      	{foreach item="album" key="num" from=$discography}
          {if $num<6}
	          <td colspan="3">
	          {if !$tm_easyURL }
				<a href="modules.php?name={$module_name}&op=album&idartist={$id_artist}&idalbum={$album->getId()}">
			  {elseif !$tm_easyURLtype }
				<a href="{$tm_BaseURL}/music.php/artist/{$album->getArtistName()}/album/{$album->getTitle()}">
			  {elseif $tm_easyURLtype==2 }
				<a href="album{$id_artist}_{$album->getId()}-{$album->getTitle()|urlencode}.html">
		      {else}
				<a href="{$tm_BaseURL}/music.php/artist/{$id_artist}/album/{$album->getId()}">
			  {/if}
	          {if $album->getFrontCoverFile()!=""}
	          	{if $album->frontcover_thumbfile!=""}
	          		<img id="tm_img" src="{$album->frontcover_thumbfile}" width="75" title="{$album->getTitle()}"><br>{$album->getTitle()}
	          	{else}
	          		<img id="tm_img" src="modules/{$module_name}/photos/albums/{$album->getFrontCoverFile()}" width="75" title="{$album->getTitle()}"><br>{$album->getTitle()}
	          	{/if}
	          {elseif $album->getFrontCoverUrl()!=""}
	          	<img id="tm_img" src="{$album->getFrontCoverUrl()}" width="75"><br>{$album->getTitle()}
	          {else}
	          	{$album->getTitle()}
	          {/if}
	          </a></td>
	       {/if}
        {/foreach}
        </tr>
        </table>
		{if count($discography)>5}
              <div id="tm_rightlink"><a href="{$discography_url}">{#More#} ></a></div>
        {/if}
    <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>
  {/if}  
 
{* RELATED ARTISTS *}
{if count($related_artists)>0}
<div id="tm_module">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div id="tm_title2">{#Related_Artists#}:</div>
        <table width="100%" border="0" cellpadding="2">
        <tr><td>
      	{foreach item="artist" key="num" from=$related_artists}
          {if $artist->getPhotoFile()!=""}
          	<a href="modules.php?name={$module_name}&op=artist&idartist={$artist->getId()}">
          	{if $artist->photo_thumbfile!=""}
          		<img id="tm_img" src="{$artist->photo_thumbfile}" title="{$artist->getName()}">
          	{else}
          		<img id="tm_img" src="modules/{$module_name}/photos/{$artist->getPhotoFile()}" width="75" title="{$artist->getName()}">
          	{/if}
          	</a>
          {elseif $artist->getPhotoUrl()!=""}
          	<a href="modules.php?name={$module_name}&op=artist&idartist={$artist->getId()}"><img id="tm_img" src="modules/{$module_name}/photos/{$artist->getPhotoUrl()}" width="75" title="{$artist->getName()}"></a>
          {else}
          	<a href="modules.php?name={$module_name}&op=artist&idartist={$artist->getId()}"><img id="tm_img" src="modules/{$module_name}/photos/compilation.jpg" width="75" title="{$artist->getName()}"></a>
          {/if}
        {/foreach}
        </td></tr>
        </table>
<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>
{/if} 

{if true}
<div id="tm_module">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div id="tm_title2">{#Related_Links#}:</div>
        <script type="text/javascript"><!--
		google_ad_client = "pub-2213784782027146";
		google_ad_width = 468;
		google_ad_height = 15;
		google_ad_format = "468x15_0ads_al_s";
		google_ad_channel = "9722253159";
		google_color_border = "FFFFFF";
		google_color_bg = "FFFFFF";
		google_color_link = "000000";
		google_color_url = "FFFFFF";
		google_color_text = "000000";
		//--></script>
		<script type="text/javascript"
		  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
    <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>
{/if}
  <form name="voteForm" method="post">
    <input type="hidden" name="rate">
  </form>
Return current item: Top Music module