2014-01-23 14:00:36 +00:00
{if $mode=='view'}
< h2 > Flagged Videos Manager< / h2 >
<!-- DIsplaying Videos -->
< form name = "flagged_video" method = "post" id = "flagged_video" >
2014-01-31 13:52:06 +00:00
< div class = "btn-group" >
2014-01-23 14:00:36 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "activate_selected" value = "Activate" class = "button" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "deactivate_selected" value = "Deactivate" class = "button" / >
2014-02-12 13:10:18 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "delete_selected" value = "Delete Videos" class = "button" onclick = "return _cb.confirm_it('Are you sure you want to delete these videos')" / >
2014-01-23 14:00:36 +00:00
2014-02-12 13:10:18 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "delete_flags" value = "Delete Flags" class = "button" onclick = "return _cb.confirm_it('Are you sure you want to delete flags of selected videos')" / >
2014-01-23 14:00:36 +00:00
< / div >
2014-01-31 13:52:06 +00:00
< table class = "table table-bordered table-striped manageUsersTable" >
2014-01-23 14:00:36 +00:00
< tr >
2014-01-31 13:52:06 +00:00
< td >
2014-02-20 14:15:02 +00:00
< input type = "checkbox" name = "checkall" onclick = "checkUncheckAll(this);" / > < / td >
2014-01-31 13:52:06 +00:00
< td > VID< / td >
< td > Details< / td >
< td > < / td >
2014-01-23 14:00:36 +00:00
< / tr >
{assign var = bgcolor value = ""}
{section name=list loop=$videos}
2014-01-31 13:52:06 +00:00
< tr >
< td >
< input name = "check_video[]" type = "checkbox" id = "check_video" value = "{$videos[list].videoid}" / > < / td >
< td >
{$videos[list].videoid}< / td >
< td >
< div >
2014-02-04 14:07:04 +00:00
< div class = "row" >
< div class = "col-md-10" >
< div class = "row" >
< div class = "col-md-3" >
< img src = "{getThumb vdetails=$videos[list]}" width = "130" height = "80" id = "thumbs_{$videos[list].videoid}" >
< / div >
< div class = "col-md-9 labels1" >
< a href = "edit_video.php?video={$videos[list].videoid}" target = "_blank" >
{$videos[list].title|truncate:80}< / a > -({if $videos[list].duration>1}{$videos[list].duration|SetTime}{else}00:00{/if})< br >
< span class = "labels1" > {$videos[list].date_added|niceTime}
{lang code='views'} : {$videos.views|number_format}< / span >
< div class = "labels" >
2014-02-28 12:16:48 +00:00
< span class = "label {if $video.status == Ok}label-success{else}label-warning{/if}" >
{if $video.active=='yes'}Active{else}InActive{/if}< / span >
2014-02-20 14:15:02 +00:00
< span class = "label {if $videos[list].active=='yes'}label-success{else}label-warning{/if}" > {if $videos[list].active=='yes'}Active{else}InActive{/if}< / span >
2014-02-28 12:16:48 +00:00
2014-02-04 14:07:04 +00:00
< span class = "label {if $video_status == Ok}label-success{else}label-success{/if}" > {$videos[list].status}< / span >
2014-02-28 12:16:48 +00:00
< a href = "?mode=view_flags&vid={$videos[list].videoid}" > < span class = "label label-info" > Flags:{$videos[list].total_flags}< / span > < / a >
2014-02-04 14:07:04 +00:00
< / span >
< / div >
< / div >
2014-01-23 14:00:36 +00:00
< / div >
2014-02-04 14:07:04 +00:00
< / div >
2014-01-23 14:00:36 +00:00
< div class = "col-md-2" >
2014-02-28 12:16:48 +00:00
Owner< a href = "view_user.php?uid={$videos[list].userid}" > {$videos[list].username}< / a >
2014-01-23 14:00:36 +00:00
< / div >
< / div >
2014-02-04 14:07:04 +00:00
< / td >
2014-01-23 14:00:36 +00:00
< td >
< div id = "vid_opt-{$videos[list].videoid}" class = "dropdown" >
2014-01-31 13:52:06 +00:00
< button id = "dropdownMenu1" class = "btn btn-primary btn-xs dropdown-toggle" data-toggle = "dropdown" > Actions < i class = "caret" > < / i > < / button >
2014-01-23 14:00:36 +00:00
< ul class = "dropdown-menu" aria-labelledby = "dropdownMenu1" role = "menu" >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "view_video.php?video={$videos[list].videoid}" > View< / a > < / li >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "edit_video.php?video={$videos[list].videoid}" > Edit< / a > < / li >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?mode=view_flags&vid={$videos[list].videoid}" > View Flags< / a > < / li >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?delete_video={$videos[list].videoid}" > Delete Video< / a > < / li >
2014-02-20 14:15:02 +00:00
{if $videos[list].active == yes}
< li > < a role = "menuitem" tabindex = "-1" href = "?deactivate={$videos[list].videoid}" > Deactivate< / a >
< / li >
{else}
< li > < a role = "menuitem" tabindex = "-1" href = "?activate={$videos[list].videoid}" > Activate< / a >
< / li >
{/if}
2014-01-23 14:00:36 +00:00
< li class = "divider" > < / li >
2014-02-20 14:15:02 +00:00
2014-01-23 14:00:36 +00:00
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?delete_flags={$videos[list].videoid}" > Delete Flags< / a > < / li >
2014-02-20 14:15:02 +00:00
2014-01-23 14:00:36 +00:00
< / div >
< / tr >
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
< / table >
2014-01-31 13:52:06 +00:00
< div class = "btn-group" >
2014-01-23 14:00:36 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "activate_selected" value = "Activate" class = "button" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "deactivate_selected" value = "Deactivate" class = "button" / >
2014-02-12 13:10:18 +00:00
< input class = "btn btn-primary btn-xs" type = "submit" name = "delete_selected" value = "Delete Videos" class = "button" onclick = "return _cb.confirm_it('Are you sure you want to delete these videos')" / >
< input class = "btn btn-primary btn-xs" type = "submit" name = "delete_flags" value = "Delete Flags" class = "button" onclick = "return _cb.confirm_it('Are you sure you want to delete flags of selected videos')" / >
2014-01-23 14:00:36 +00:00
< / div >
2014-01-31 13:52:06 +00:00
2014-01-23 14:00:36 +00:00
< / form >
<!-- DIsplaying Videos Ends -->
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode=='view_flags'}
2014-02-04 14:07:04 +00:00
< span class = "lead" > Viewing {$video.title} flags< / span >
< div class = "dropdown" >
< button id = "dropdownMenu1" class = "btn btn-primary btn-xs dropdown-toggle pull-right" data-toggle = "dropdown" > Actions < i class = "caret" > < / i > < / button >
< ul class = "dropdown-menu pull-right" aria-labelledby = "dropdownMenu1" role = "menu" >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "{$baseurl}/watch_video.php?v={$video.videokey}" > View video< / a >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "edit_video.php?video={$video.videoid}" > Edit video< / a >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?delete_flags={$video.videoid}" > Delete Flags< / a >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "?delete_video={$video.videoid}" > Delete Video< / a >
< / li >
< / ul >
< / div > < br > < br >
2014-01-23 14:00:36 +00:00
<!-- DIsplaying Videos -->
< form name = "video_manage" method = "post" >
2014-02-04 14:07:04 +00:00
< table class = "table table-bordered table-striped manageUsersTable" >
2014-01-23 14:00:36 +00:00
< tr >
2014-02-04 14:07:04 +00:00
< td width = "30" align = "center" valign = "middle" class = "left_head" > Fid< / td >
2014-01-23 14:00:36 +00:00
< td class = "head" > Flag Details< / td >
< / tr >
{assign var = bgcolor value = ""}
{section name=list loop=$flags}
2014-02-04 14:07:04 +00:00
< tr bgcolor = "{$bgcolor}" >
< td > {$smarty.section.list.iteration}< / td >
< td > Reported as "{$flags[list].flag_type|flag_type}" by< strong > {$flags[list].userid|get_username}< / strong > {$flags[list].date_added|niceTime}< / td >
2014-01-23 14:00:36 +00:00
< / tr >
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
< / table >
< / form >
{/if}