clipbucket/upload/admin_area/styles/cb_2014/layout/flagged_collections.html
umaircb ded0240207
2014-04-15 11:45:14 +00:00

147 lines
No EOL
7.9 KiB
HTML

{if $mode=='view'}
<h2>Flagged Collection Manager</h2>
<!-- DIsplaying Videos -->
<form name="flagged_video" method="post" id="flagged_video">
<div class="btn-group">
<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" />
<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')"/>
</div>
<table class="table table-bordered table-striped manageUsersTable">
<tr>
<td>
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td>VID</td>
<td>Details</td>
<td>&nbsp;</td>
</tr>
{assign var = bgcolor value = ""}
{section name=list loop=$cl}
{var_dump($cl)}
<tr>
<td>
<input name="check_collect[]" type="checkbox" id="check_collect" value="{$cl[list].collection_id}" /></td>
<td>
{$cl[list].collection_id}</td>
<td>
<div>
<div class="row">
<div class="col-md-10">
<div class="row">
<div class="col-md-3">
<img src=" {$cbgroup->get_group_thumb($cl[list])}" width="130" height="80" id="thumbs_{$cl[list].collection_id}">
</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">
<span class="label {if $video.status == Ok}label-success{else}label-warning{/if}">
{if $video.active=='yes'}Active{else}InActive{/if}</span>
<span class="label {if $videos[list].active=='yes'}label-success{else}label-warning{/if}">{if $videos[list].active=='yes'}Active{else}InActive{/if}</span>
<span class="label {if $video_status == Ok}label-success{else}label-success{/if}">{$videos[list].status}</span>
<a href="?mode=view_flags&vid={$videos[list].videoid}"><span class="label label-info">Flags:{$videos[list].total_flags}</span></a>
</span>
</div>
</div>
</div>
</div>
<div class="col-md-2">
Owner<a href="view_user.php?uid={$videos[list].userid}"> {$videos[list].username}</a>
</div>
</div>
</div>
</td>
<td>
<div id="vid_opt-{$videos[list].videoid}" class="dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions <i class="caret"></i></button>
<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>
{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}
<li class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_flags={$videos[list].videoid}">Delete Flags</a></li>
</div>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<div class="btn-group">
<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" />
<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')"/>
</div>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }
{/if}
{if $mode=='view_flags'}
<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>
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
<table class="table table-bordered table-striped manageUsersTable">
<tr>
<td width="30" align="center" valign="middle" class="left_head">Fid</td>
<td class="head">Flag Details</td>
</tr>
{assign var = bgcolor value = ""}
{section name=list loop=$flags}
<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>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
</form>
{/if}