<?php

echo '<div class="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="#play" class="sm2-inline-button play-pause">Play / pause</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">
   <div class="sm2-button-bd">
    <a href="#prev" title="Previous" class="sm2-inline-button previous">&lt; previous</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">&gt; next</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>

 <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">';
	
		
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>';

?>