{$myAccountLinks = $userquery->my_account_links()}
{include file="$style_dir/blocks/manage/account_menu.html"}
{include file="$style_dir/blocks/manage/userMenuLeft.html"}
{if $mode=='manage'}

## {lang code='grp_groups_title'}

| GP-ID | Details | Options
{assign var='bg' value='fff'} {section name=ugrps loop=$usr_groups} {include file="$style_dir/blocks/manage/account_group.html" group=$usr_groups[ugrps] control='full' bg=$bg} {if $bg=='fff'} {assign var='bg' value='EFF5F8'} {else} {assign var='bg' value='fff'} {/if} {sectionelse}
{lang code='you_dont_hv_any_grp'}
{/section} {include file="$style_dir/blocks/pagination.html"} {/if}

{if $mode=='joined'}

## {lang code='grp_joined_title'}

| GP-ID | Details | Options
{assign var='bg' value='fff'} {section name=ugrps loop=$usr_groups} {include file="$style_dir/blocks/manage/account_group.html" group=$usr_groups[ugrps] control='basic' bg=$bg} {if $bg=='fff'} {assign var='bg' value='EFF5F8'} {else} {assign var='bg' value='fff'} {/if} {sectionelse}
{lang code='you_dont_joined_any_grp'}
{/section} {include file="$style_dir/blocks/pagination.html"}

{/if}
{if $mode=='manage_members' && $group} {include file="$style_dir/blocks/manage/group_manage_links.html"}

## {lang code='manage_grp_mems'} - {$group.group_name}

{assign var=grp_pend_mems value=$cbgroup->get_members($group.group_id,"no")} {if $grp_pend_mems}

## {lang code='pending_mems'} ({$grp_pend_mems|@count})

|  | {lang code='username'} | views |  |
{section name=pmems loop=$grp_pend_mems} {include file="$style_dir/blocks/manage/account_user.html" user=$grp_pend_mems[pmems] status='pending'} {/section}

{/if} {if $gp_mems}

### {lang code='active_mems'} ({$gp_mems|@count})

|  | {lang code='username'} | {lang code='views'} |  |
{section name=amems loop=$gp_mems} {assign var=makeAdmin value='no'} {assign var=removeAdmin value='no'} {isGroupAdmin assign=isAdmin group=$group gid=$group.group_id user=$gp_mems[amems] uid=$gp_mems[amems].userid assign=isGroupAdmin checkowner=true} {if !$isGroupAdmin} {assign var=makeAdmin value='yes'} {/if} {if $group.userid != $gp_mems[amems].userid && $isGroupAdmin} {assign var=removeAdmin value='yes'} {/if} {include file="$style_dir/blocks/manage/account_user.html" user=$gp_mems[amems] status='active'} {/section}

{/if} {/if} {if $mode=='manage_videos' && $group} {include file="$style_dir/blocks/manage/group_manage_links.html" }

## {lang code='manage_grp_vids'} - {$group.group_name}

{assign var=grp_pend_videos value=$cbgroup->get_group_videos($group.group_id,"no")} {if $grp_pend_videos}

### {lang code='pending_vids'} ({$grp_pend_videos|@count})

| {lang code='title'} | {lang code='date_added'} | {lang code='views'} | {lang code='comments'}
{assign var='bg' value='fff'} {if $grp_pend_videos} {section name=plist loop=$grp_pend_videos} {include file="$style_dir/blocks/manage/account_video.html" video=$grp_pend_videos[plist] bg=$bg control="basic" } {if $bg=='fff'} {assign var='bg' value='EFF5F8'} {else} {assign var='bg' value='fff'} {/if} {/section} {else}
{lang code='no_pending_vids'}
{/if}

{/if} {if $grp_vids}

### {lang code='active_videos'} ({$grp_vids|@count})

| {lang code='title'} | {lang code='date_added'} | {lang code='views'} | {lang code='comments'}
{assign var='bg' value='fff'} {if $grp_vids} {section name=plist loop=$grp_vids} {include file="$style_dir/blocks/manage/account_video.html" video=$grp_vids[plist] bg=$bg control="basic" } {if $bg=='fff'} {assign var='bg' value='EFF5F8'} {else} {assign var='bg' value='fff'} {/if} {/section} {else}
{lang code='no_active_videos'}
{/if}

{/if} {/if}