Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/themes/sergids/albumlist.tpl
{config_load file=$configfile section="discography"}
<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_title">{$artist->getName()} {#discography#}</div>
<br>
<div id="tm_text">
{if $albumList!=""}
<table cellspacing="0" cellpadding="2" border="0">
		<!--   tr><td>&nbsp;</td><td>&nbsp;</td><td><b>{#Title#}</b></td><td>&nbsp;</td><td><b>{#Year#}</b></td><td>&nbsp;</td><td></td></tr -->
		{foreach key="key" item=albumO from=$albumList}
    		<tr>
    			<td>
    			<a href="{if !$tm_easyURL}
    				modules.php?name={$module_name}&op=album&idartist={$albumO->getIdartist()}&idalbum={$albumO->getId()}
				{elseif !$tm_easyURLtype}
					{$tm_BaseURL}/music.php/artist/{$albumO->getArtistname()|urlencode}/album/{$albumO->getTitle()|urlencode}
				{elseif $tm_easyURLtype==2}
					album{$albumO->getIdartist()}_{$albumO->getId()}.html
				{else}
					{$tm_BaseURL}/music.php/artist/{$albumO->getIdartist()}/album/{$albumO->getId()}
				{/if}">
    			{if $albumO->frontcover_file!=""}
	          		{if $albumO->frontcover_thumbfile!=""}
	          			<img id="tm_img" src="{$albumO->frontcover_thumbfile}" title="{$albumO->getTitle()}">
	          		{else}
	          			<img id="tm_img" src="modules/{$module_name}/photos/albums/{$albumO->getFrontCoverFile()}" width="75" title="{$albumO->getTitle()}">
	          		{/if}
	          {elseif $albumO->getFrontCoverUrl()!=""}
	          	<img id="tm_img" src="{$albumO->getFrontCoverUrl()}" width="75" border="0"  title="{$albumO->getTitle()}">
	          {/if}</a>
    			</td>
    			<td>&nbsp;</td>
    			<td>{$albumO->getTitle()}</td><td>&nbsp;</td>
    			<td>{if $albumO->getYeardate()!=""}({$albumO->getYeardate()}){/if}</td><td>&nbsp;</td>
    			<td><a href="{if !$tm_easyURL}
    				modules.php?name={$module_name}&op=album&idartist={$albumO->getIdartist()}&idalbum={$albumO->getId()}
				{elseif !$tm_easyURLtype}
					{$tm_BaseURL}/music.php/artist/{$albumO->getArtistname()|urlencode}/album/{$albumO->getTitle()|urlencode}
				{elseif $tm_easyURLtype==2}
					album{$albumO->getIdartist()}_{$albumO->getId()}.html
				{else}
					{$tm_BaseURL}/music.php/artist/{$albumO->getIdartist()}/album/{$albumO->getId()}
				{/if}">{#View#}</a></td>
			</tr>
  		{/foreach}
		</table>
{else}
	{#No_albums_listed#}
{/if}
</div>
<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>


{if count($top_albums)>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_albums#}:</div>
        <table width="100%" border="0" cellpadding="2">
        <tr><td>
      	{foreach item="top_album" key="num" from=$top_albums}
          {if $num<6}
	          {if $top_album->getFrontCoverFile()!=""}
	          	<td colspan="3"><a href="modules.php?name={$module_name}&op=album&idartist={$id_artist}&idalbum={$top_album->getId()}">
	          		{if $top_album->frontcover_thumbfile!=""}
	          			<img id="tm_img" src="{$top_album->frontcover_thumbfile}" title="{$top_album->getTitle()}"><br>{$top_album->getTitle()}
	          		{else}
	          			<img id="tm_img" src="modules/{$module_name}/photos/albums/{$top_album->getFrontCoverFile()}" width="75" title="{$top_album->getTitle()}"><br>{$top_album->getTitle()}
	          		{/if}
	          		</a></td>
	          {elseif $top_album->getFrontCoverUrl()!=""}
	          	<td colspan="3"><a href="modules.php?name={$module_name}&op=album&idartist={$id_artist}&idalbum={$top_album->getId()}"><img id="tm_img" src="{$top_album->getFrontCoverUrl()}" width="75" title="{$top_album->getTitle()}"><br>{$top_album->getTitle()}</a></td>
	          {else}
	          	<td colspan="3"><a href="modules.php?name={$module_name}&op=album&idartist={$id_artist}&idalbum={$top_album->getId()}">{$top_album->getTitle()}</a></td>
	          {/if}
	       {else}
	       		{php}break;{/php}
	       {/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}
Return current item: Top Music module