clipbucket/upload/admin_area/styles/cb_2014/layout/video_manager.html
2014-01-30 13:57:53 +00:00

111 lines
No EOL
6.4 KiB
HTML

<h2>Video Manager</h2>
{include file="$layout_dir/blocks/advanced_search.html" }
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
<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="make_featured_selected" value="Make Featured"
class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured"
class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button"
onclick="return confirm_it('Are you sure you want to delete selected video(s)')"/>
</div>
<table class="table table-bordered table-striped manageUsersTable">
<tr>
<td>
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td>VID</td>
<td>Videos Details</td>
<td>&nbsp;</td>
</tr>
{if $videos}
{foreach from=$videos item=video}
<tr>
<td>
<input name="check_video[]" type="checkbox" id="check_video" value="{$video.videoid}"/>
</td>
<td>{$video.videoid}</td>
<td>
<div class="videoTitle row">
<div class="col-md-10">
<img src="{getThumb vdetails=$video}" width="130" height="80" id="thumbs_{$video.videoid}"
title=""/>
<a href="edit_video.php?video={$video.videoid}" target="_blank" style="text-indent:10px">
{$video.title|truncate:80} </a>({if
$video.duration>1}{$video.duration|SetTime}{else}00:00{/if})<br>
</div>
<div class="col-md-2">
<a href="view_user.php?uid={$video.userid}">{$video.username}</a>
</div>
</div>
<div class="stats">
<span> <strong>{$video.date_added|niceTime}</strong>
{lang code='views'} : <strong>{$video.views|number_format}</strong></span>
</div>
<div class="labels">
<span class="label label-primary">{if $video.featured=='yes'}Featured{else}UnFeatured{/if}</span>
<span class="label {if $video.active=='yes'}label-success{else}label-warning{/if}">{if $video.active=='yes'}Active{else}NotActive{/if} </span>
<span class="label label-info">{$video.status} </span>
</div>
</td>
<td>
<div 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="edit_video.php?video={$video.videoid}" class="">Edit</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1"
href="{$baseurl}/watch_video.php?v={$video.videokey}"
target="_blank">Watch</a> {if $video.featured == yes}
</li>
<li role="presentation"><a role="menuitem" tabindex="-1"
href="javascript:Confirm_Delete('?delete_video={$video.videoid}')">Delete</a>
</li>
<li role="presentation"><a role="menuitem" tabindex="-1"
href="?make_unfeature={$video.videoid}">Make Unfeatured</a></li>
{/if}
{if $video.featured == no}
<li role="presentation"><a role="menuitem" tabindex="-1" href="?make_feature={$video.videoid}">Make
Featured</a></li>
{/if}
{if $video.active == yes}
<li role="presentation"><a role="menuitem" tabindex="-1" href="?deactivate={$video.videoid}">Deactivate</a>
</li>
{else}
<li role="presentation"><a role="menuitem" tabindex="-1" href="?activate={$video.videoid}">Activate</a>
</li>
{/if}
<li role="presentation"><a role="menuitem" tabindex="-1"
href="view_conversion_log.php?file_name={$video.file_name}">File
conversion details</a></li>
<li class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_video={$video.videoid}">Delete</a>
</li>
</ul>
</div>
</td>
</tr>
{/foreach}
</table>
{else}
<div align="center"><strong><em>No Video Found</em></strong></div>
{/if}
<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="make_featured_selected" value="Make Featured"
class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured"
class="button"/>
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button"
onclick="return confirm_it('Are you sure you want to delete selected video(s)')"/>
</div>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }