<div id="content">
    <div class="left span-300">
        {include file='user_info.tpl'}
    </div>
    <div class="right span-650">
          <div class="box">
              
              <div class="btitle">
                  <div class="btitlel"><h2>{$username|upper}'S PLAYLIST</h2></div>
                  <div class="btitler">
                      {if isset($smarty.session.uid) && $smarty.session.uid == $user.UID}
                      <a href="{$relative}/user/{$username}/playlist?clear=yes" title="Clear Playlist" onclick="javascript:return confirm('Are you sure you want to clear the playlist?');">Clear All</a>
                      {/if}
                  </div>
                  <div class="clear"></div>
              </div>
              {if $playlist}
              <div class="blinkp">&nbsp;Showing <strong>{$start_num}</strong> to <strong>{$end_num}</strong> of <strong>{$playlist_total}</strong> videos.</div>
              <div id="remove_playlist_message" class="posting" style="display:none"></div>
              {section name=i loop=$playlist}              
              <div id="playlist_video_{$playlist[i].VID}" class="video_box_small">
                  <a href="{$relative}/video/{$playlist[i].VID}/{$playlist[i].title|clean}"><img src="{$relative}/media/videos/tmb/{$playlist[i].VID}/{$playlist[i].thumb}.jpg" title="{$playlist[i].title|escape:'html'}" alt="{$playlist[i].title|escape:'html'}" width="140" id="playlistrotate_{$playlist[i].VID}" /><br /><span class="font-12 font-bold">{$playlist[i].title|truncate:23:' ...':true|escape:'html'}</span><br />{if $playlist[i].type == 'private'}<img alt="" style="position: absolute; left: 0px; top: +14px; width: 140px; height: 105px;" src="{$relative_tpl}/images/private-video.png" />{/if}</a>
                  <div class="vbox_small_left">
                      {insert name=duration assign=duration duration=$playlist[i].duration}
                      {$duration}<br />
                  </div>
                  <div class="vbox_small_right">
                      {insert name=rating_small assign=video_rating rating=$playlist[i].rate}
                      {$video_rating}
                      <div class="clear_right"></div>
                      {$playlist[i].viewnumber} views                                                                                           
                  </div>
                  <div class="clear"></div>
                  {if isset($smarty.session.uid) && $smarty.session.uid == $user.UID}
                  <div class="vbox_small_remove">
                      <a href="#remove_video" id="remove_video_from_playlist_{$playlist[i].VID}" class="remove">Remove</a>
                  </div>
                  {/if}
              </div>                                                  
              {/section}
              <br />
              <div class="clear_left"></div>
              <div class="pagination"><ul>{$page_link}</ul></div><br />
              {else}
              <p>&nbsp;&nbsp;&nbsp;No playlist found.</p>
              {/if}
          </div>
    </div>
    <div class="clear"></div>
</div>
