Файл: incfiles/headplayer.php
Строк: 107
<?php
echo '<div class="head_player for_pc" style="width:850px; margin: auto;">
<div class="sm2-bar-ui playlist-close full-width flat" style="text-align: left;width: 600px; margin-left:125px;">
<div class="bd sm2-main-controls">
<div class="sm2-inline-texture"></div>
<div class="sm2-inline-gradient"></div>
<div class="sm2-inline-element sm2-button-element">
<div class="sm2-button-bd">
<a href="#prev" title="Previous" class="sm2-inline-button previous">< previous</a>
</div>
</div>
<div class="sm2-inline-element sm2-button-element">
<div class="sm2-button-bd">
<a href="#play" class="sm2-inline-button play-pause">Play / pause</a>
</div>
</div>
<div class="sm2-inline-element sm2-button-element">
<div class="sm2-button-bd">
<a href="#next" title="Next" class="sm2-inline-button next">> next</a>
</div>
</div>
<div class="sm2-inline-element sm2-inline-status">
<div class="sm2-playlist">
<div class="sm2-playlist-target">
<noscript><p>JavaScript is required.</p></noscript>
</div>
</div>
<div class="sm2-progress">
<div class="sm2-row">
<div class="sm2-inline-time">0:00</div>
<div class="sm2-progress-bd">
<div class="sm2-progress-track">
<div class="sm2-progress-bar"></div>
<div class="sm2-progress-ball"><div class="icon-overlay"></div></div>
</div>
</div>
<div class="sm2-inline-duration">0:00</div>
</div>
</div>
</div>
<div class="sm2-inline-element sm2-button-element sm2-volume">
<div class="sm2-button-bd">
<span class="sm2-inline-button sm2-volume-control volume-shade"></span>
<a href="#volume" class="sm2-inline-button sm2-volume-control">volume</a>
</div>
</div>
<div class="sm2-inline-element sm2-button-element sm2-menu">
<div class="sm2-button-bd">
<a href="#menu" class="sm2-inline-button menu">menu</a>
</div>
</div>
<div class="sm2-inline-element sm2-button-element sm2-menu">
<a " href="'.URL.'/ajax/radio.php" onclick="FormContent_head_radio.headradio(this.href); return false"><img src="'.URL.'/design/img/FM-Radio-64.png"/></a>
</div>
</div>
<div class="bd sm2-playlist-drawer sm2-element">
<div class="sm2-inline-texture">
<div class="sm2-box-shadow"></div>
</div>
<div class="sm2-playlist-wrapper">
<ul class="sm2-playlist-bd">';
function track_playlist($id) {
$arr = mysql_fetch_array(mysql_query("SELECT * FROM `audio` WHERE `id` = '".$id."' LIMIT 1"));
return '<a href="'.URL.'/files/audio/'.$arr['dir'].'/'.$arr['file'].'"><b>'.$arr['artist'].'</b> - '.$arr['name'].'</a>';
}
if ($user['count_audio'] > 0)
{
$arr_playlist = mysql_fetch_array(mysql_query("SELECT * FROM `audioplaylist` WHERE `user_id` = '".$user_id."'"));
$q = explode("||", substr($arr_playlist['tracks'], 1, -1));
$count = count($q);
for ($i = 0; $i < $count; $i++) echo '<li>'.track_playlist($q[$i]).'</li>';
}
echo '</ul></div><div class="block"><a class="title_a_hover" id="bg_black" style="opacity:0.8;" href="/?"><small>'.lang('Обновить плейлист','Оновити плейлист').'</small></a></div></div></div></div>';
?>