{$myAccountLinks = $userquery->my_account_links()}
{if $mode =='manage_playlist'}

## {lang code='manage_playlists'}

{include file="$layout_dir/blocks/advanced_playlist_search.html" }

| {lang code='vdo_title'} | {lang code='Details'} | {lang code='date_added'} | {lang code='total_items'} | {lang code='view_edit_playlist'} | {lang code='delete'}
{if $playlists!=true}

#### {lang code='no_playlist_found'}

{/if} {section name=plist loop=$playlists}
| {$playlists[plist].playlist_name|truncate:100} | {lang code='playlist_owner'} : {assign var=obj value=$userquery->get_user_details($playlists[plist].userid)} {$obj['username']} {lang code='playlist_privacy'} : {$playlists[plist].privacy} | {$playlists[plist].date_added|date_format} | {$cbvid->action->count_playlist_items($playlists[plist].playlist_id)|number_format} | {lang code='view_edit_playlist'} | {lang code='delete'}
{/section}

{/if} {if $mode =='edit_playlist'}

## {lang code='manage_playlists'}

### {lang code='edit_playlist'}

{assign var='playlist_fields' value=$cbvid->action->load_playlist_fields($playlist)} {foreach from=$playlist_fields item=group} {foreach from=$group.fields item=field}
{$field.title} {$field.class='form-control'} {$formObj->createField($field)}
{/foreach} {/foreach}
{if $items}
{/if}

| {lang code='vdo_title'} | {lang code='date_added'} | {lang code='views'} | {lang code='comments'}
{section name=plist loop=$items} {include file="$style_dir/blocks/manage/account_video.html" video=$items[plist] bg=$bg control="playlist" pid=$playlist.playlist_id} {sectionelse}
{lang code='no_video_in_playlist'}
{/section}

{/if}
{include file="$style_dir/blocks/pagination.html" }