<div class="right-menu">
<?php
if($singer_list != true){
?>
	<div class="main-block">
		<div class="block-title">
			<img src="<?=URL?>style/img/right.png" alt="Лучшие музыканты"><h3>Лучшие музыканты</h3>
		</div>
		
		<div class="main-block-content">
			<?php 
				$data_top = $db->getAll("SELECT `artist`,`id`, COUNT(*) `count` FROM `files` GROUP BY `artist` ORDER BY `count` DESC LIMIT 15");
				foreach($data_top as $artist_top){
					
					if(file_exists('style/artist/'.md5($artist_top['artist']).'_small.png')){
						$cover = URL.'style/artist/'.md5($artist_top['artist']).'_small.png';
					}if(file_exists('style/artist/'.md5($artist_top['artist']).'_small.jpg')){
						$cover = URL.'style/artist/'.md5($artist_top['artist']).'_small.jpg';
					}else{
						$cover = URL.'style/img/no-cover_small.png';
					}
					
					echo '<a href="/artist/'.$artist_top['id'].'/'.rus2eng(str2url($artist_top['artist'])).'/" class="right-artist" title="'.$artist_top['artist'].'"><img style="margin: 0 5px 0 0;border-radius:10px" src="/style/img/right_item.png">'.$artist_top['artist'].'</a>';
				}
			?>
			
		</div>
		
	</div>
	<a href="/artist-all/" class="btn btn-primary btn-block btn-large" style="margin: -20px 0 0 0; border-radius:0 0 5px 5px;background-color:#E74C3C;">Все исполнители</a>
<?php }else{ ?>
	<div class="main-block">
		<div class="block-title">
			<img src="<?=URL?>style/img/right.png" alt="По алфавиту"><h3>По алфавиту</h3>
		</div>
		
		<div class="main-block-content">
			
		<div class="singer">
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/a/" class="singer">A</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/b/" class="singer">B</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/c/" class="singer">C</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/d/" class="singer">D</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/e/" class="singer">E</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/f/" class="singer">F</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/g/" class="singer">G</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/h/" class="singer">H</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/i/" class="singer">I</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/j/" class="singer">J</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/k/" class="singer">K</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/l/" class="singer">L</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/m/" class="singer">M</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/n/" class="singer">N</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/o/" class="singer">O</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/p/" class="singer">P</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/q/" class="singer">Q</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/r/" class="singer">R</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/s/" class="singer">S</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/t/" class="singer">T</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/u/" class="singer">U</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/v/" class="singer">V</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/w/" class="singer">W</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/x/" class="singer">X</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/y/" class="singer">Y</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/z/" class="singer">Z</a>
			<div class="clear"></div>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/aRU/">А</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/bRU/">Б</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/vRU/">В</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/gRU/">Г</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/dRU/">Д</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/eRU/">Е</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/zhRU/">Ж</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/zRU/">З</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/iRU/">И</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/kRU/">К</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/lRU/">Л</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/mRU/">М</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/nRU/">Н</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/oRU/">О</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/pRU/">П</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/rRU/">Р</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/sRU/">С</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/sRU/">Т</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/uRU/">У</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/fRU/">Ф</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/hRU/">Х</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/cRU/">Ц</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/chRU/">Ч</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/shRU/">Ш</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/schRU/">Щ</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/eeRU/">Э</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/yuRU/">Ю</a>
			<a class="singer" href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/yaRU/">Я</a>
			<div class="clear"></div>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/1/" class="singer">1</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/2/" class="singer">2</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/3/" class="singer">3</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/4/" class="singer">4</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/5/" class="singer">5</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/6/" class="singer">6</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/7/" class="singer">7</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/8/" class="singer">8</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/9/" class="singer">9</a>
			<a href="/singer-<?=($singer_type == 'artist' ? 'artist' : 'song')?>/0/" class="singer">0</a>
		</div>
		</div>
	</div>
<?php } ?>
		
</div>