Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/themes/sergids/albumchart_list.tpl
{config_load file=$configfile section="chart"}
<div id="tm_module">
<table class="tm_list">
	<thead>
		<tr><td colspan="2">{#Pos#}</td><td>{#Title#}</td><td>{#Artist#}</td><td>{#DaysPos#}</td><td>{#DaysChart#}</td></tr>
	</thead>
	<tbody>
{foreach item="element" from=$chart->elements}
{assign var="albumO" value=$element->element}
	<tr {cycle values="class=\"odd\","}>
		<td class="position">{$element->position}</td>
		<td class="position_ant">
		{if $element->chartsince==0}
			<img src="modules/{$module_name}/themes/{$tm_theme}/images/new.gif" align="absmiddle" title="New">
		{elseif $element->position_ant-$element->position>0}
			<img src="modules/{$module_name}/themes/{$tm_theme}/images/up.gif" align="absmiddle" title="Up">
		{elseif $element->position_ant-$element->position<0}
			<img src="modules/{$module_name}/themes/{$tm_theme}/images/down.gif" align="absmiddle" title="Down">
		{/if}
		{if $element->position_ant-$element->position!=0}
			{if $element->position_ant-$element->position>0}+{/if}{$element->position_ant-$element->position}
		{elseif $element->chartsince>0}
			<img src="modules/{$module_name}/themes/{$tm_theme}/images/equal.gif" align="absmiddle" title="Same">
		{/if}
		</td>
			{if !$tm_easyURL}
				<td><a href="modules.php?name={$module_name}&op=album&idartist={$albumO->idartist}&idalbum={$albumO->id}">{$albumO->title}</a></td>
				<td><a href="modules.php?name={$module_name}&op=artist&idartist={$albumO->idartist}&idalbum={$albumO->id}">{$albumO->artistname}</a></td>
			{elseif !$tm_easyURLtype}
				<td><a href="{$tm_BaseURL}/music.php/artist/{$albumO->getArtistname()|urlencode}/album/{$albumO->title|urlencode}">{$albumO->title}</a></td>
				<td><a href="{$tm_BaseURL}/music.php/artist/{$albumO->getArtistname()|urlencode}">{$albumO->artistname}</a></td>
			{elseif $tm_easyURLtype==2}
				<td><a href="album{$albumO->idartist}_{$albumO->id}.html">{$albumO->title}</a></td>
				<td><a href="artist{$albumO->idartist}.html">{$albumO->artistname}</a></td>
			{else}
				<td><a href="{$tm_BaseURL}/music.php/artist/{$albumO->idartist}/album/{$albumO->id}">{$albumO->title}</a></td>
				<td><a href="{$tm_BaseURL}/music.php/artist/{$albumO->idartist}">{$albumO->artistname}</a></td>
			{/if}
			<td>{$element->positionsince}</td>
			<td>{$element->chartsince}</td>
			</tr>
{/foreach}
	</tbody>
	<tfoot></tfoot>
</table>
</div>
Return current item: Top Music module