clipbucket/upload/admin_area/styles/cb_2014/layout/video_manager.html

126 lines
7 KiB
HTML
Raw Normal View History

<h2>Video Manager</h2>
{include file="$layout_dir/blocks/advanced_search.html" }
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
2014-01-30 13:57:53 +00:00
<div class="btn-group">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
{if $smarty.get.active!='no'}
2014-01-30 13:57:53 +00:00
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate"
class="button"/>
{/if}
2014-01-30 13:57:53 +00:00
<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 _cb.confirm_it('Are you sure you want to delete selected video(s)')"/>
</div>
<table class="table table-bordered table-striped manageUsersTable">
<tr>
2014-01-30 13:57:53 +00:00
<td>
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
2014-01-30 13:57:53 +00:00
<td>VID</td>
<td>Videos Details</td>
<td>&nbsp;</td>
</tr>
{if $videos}
{*$smarty.post|print_r*}
2014-01-30 13:57:53 +00:00
{foreach from=$videos item=video}
2014-01-30 13:57:53 +00:00
<tr>
<td>
<input name="check_video[]" type="checkbox" id="check_video" value="{$video.videoid}"/>
</td>
2014-01-30 13:57:53 +00:00
<td>{$video.videoid}</td>
<td>
2014-02-03 12:42:47 +00:00
<div class="row">
2014-01-30 13:57:53 +00:00
<div class="col-md-10">
2014-02-03 12:42:47 +00:00
<div class="row">
<div class="col-md-3">
<img src="{getThumb vdetails=$video}" width="130" height="80" id="thumbs_{$video.videoid}" title=""/>
</div>
<div class="col-md-9">
<a href="edit_video.php?video={$video.videoid}">
{$video.title|truncate:80} </a>({if
$video.duration>1}{$video.duration|SetTime}{else}00:00{/if})<br>
<span class="labels1"> <strong>{$video.date_added|niceTime}</strong>
{lang code='views'} : <strong>{$video.views|number_format}</strong></span>
<div class="labels">
{if $video.featured=='yes'}<span class="label label-primary">Featured{else}{/if}</span>
2014-02-20 14:03:59 +00:00
<span class="label {if $video.active=='yes'}label-success{else}label-warning{/if}">
{if $video.active=='yes'}Active{else}InActive{/if} </span>
<span class="label {if $video.status=='yes'}label-success{else}label-warning{/if}">
{if $video.status=='yes'}Successful{else}Processing{/if}</span>
<span class="label label-info">
Viewed {$video.last_viewed|niceTime}</span>
2014-02-03 12:42:47 +00:00
</div>
</div>
</div>
</div>
2014-01-30 13:57:53 +00:00
<div class="col-md-2">
<a href="view_user.php?uid={$video.userid}">{$video.username}</a>
</div>
</div>
</td>
<td>
2014-01-30 13:57:53 +00:00
<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">
2014-02-04 14:07:35 +00:00
<li><a role="menuitem" tabindex="-1"
2014-01-30 13:57:53 +00:00
href="edit_video.php?video={$video.videoid}" class="">Edit</a></li>
2014-02-04 14:07:35 +00:00
<li><a role="menuitem" tabindex="-1"
href="{$baseurl}/watch_video.php?v={$video.videokey}"target="_blank">Watch</a>
{if $video.featured == yes}
2014-01-30 13:57:53 +00:00
</li>
<li><a role="menuitem" tabindex="-1" href="javascript:_cb.Confirm_Delete('?delete_video={$video.videoid}')">Delete</a>
2014-01-30 13:57:53 +00:00
</li>
2014-02-04 14:07:35 +00:00
<li><a role="menuitem" tabindex="-1"
2014-01-30 13:57:53 +00:00
href="?make_unfeature={$video.videoid}">Make Unfeatured</a></li>
{/if}
{if $video.featured == no}
2014-02-04 14:07:35 +00:00
<li><a role="menuitem" tabindex="-1" href="?make_feature={$video.videoid}">Make
2014-01-30 13:57:53 +00:00
Featured</a></li>
{/if}
{if $video.active == yes}
2014-02-04 14:07:35 +00:00
<li><a role="menuitem" tabindex="-1" href="?deactivate={$video.videoid}">Deactivate</a>
2014-01-30 13:57:53 +00:00
</li>
{else}
2014-02-04 14:07:35 +00:00
<li><a role="menuitem" tabindex="-1" href="?activate={$video.videoid}">Activate</a>
2014-01-30 13:57:53 +00:00
</li>
{/if}
2014-02-04 14:07:35 +00:00
<li><a role="menuitem" tabindex="-1"
2014-01-30 13:57:53 +00:00
href="view_conversion_log.php?file_name={$video.file_name}">File
conversion details</a></li>
<li class="divider"></li>
2014-02-04 14:07:35 +00:00
<li><a role="menuitem" tabindex="-1" href="?delete_video={$video.videoid}">Delete</a>
2014-01-30 13:57:53 +00:00
</li>
{foreach from=$cbvid->video_manager_links item=links}
{$cbvid->video_manager_link($links,$video)}
{/foreach}
</ul>
</div>
</td>
</tr>
2014-01-30 13:57:53 +00:00
{/foreach}
</table>
{else}
<div align="center"><strong><em>No Video Found</em></strong></div>
{/if}
2014-01-30 13:57:53 +00:00
<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 _cb.confirm_it('Are you sure you want to delete selected video(s)')"/>
</div>
</form>
<!-- DIsplaying Videos Ends-->
2014-02-03 12:42:47 +00:00
{include file="$style_dir/blocks/pagination.html" }