2014-05-07 14:06:39 +00:00
|
|
|
<div class="heading clearfix">
|
|
|
|
<h2 class="pull-left">Video Manager</h2>
|
2014-05-26 06:30:39 +00:00
|
|
|
|
2014-05-07 14:06:39 +00:00
|
|
|
{include file="$layout_dir/blocks/advanced_search.html" }
|
|
|
|
</div>
|
2014-01-21 13:54:05 +00:00
|
|
|
<!-- DIsplaying Videos -->
|
2014-05-07 14:06:39 +00:00
|
|
|
<form name="video_manage marginBottomLarge" 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"/>
|
2014-02-20 14:15:02 +00:00
|
|
|
{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"/>
|
2014-02-20 14:15:02 +00:00
|
|
|
{/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"
|
2014-02-12 13:10:18 +00:00
|
|
|
onclick="return _cb.confirm_it('Are you sure you want to delete selected video(s)')"/>
|
2014-01-27 07:35:20 +00:00
|
|
|
</div>
|
2014-05-06 13:36:47 +00:00
|
|
|
<table class="table table-bordered table-striped manageUsersTable marginTop">
|
2014-01-21 13:54:05 +00:00
|
|
|
<tr>
|
2014-01-30 13:57:53 +00:00
|
|
|
<td>
|
2014-02-20 14:15:02 +00:00
|
|
|
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
2014-01-30 13:57:53 +00:00
|
|
|
<td>VID</td>
|
|
|
|
<td>Videos Details</td>
|
2014-01-27 07:35:20 +00:00
|
|
|
<td> </td>
|
2014-01-21 13:54:05 +00:00
|
|
|
</tr>
|
2014-01-27 07:35:20 +00:00
|
|
|
{if $videos}
|
2014-05-26 06:30:39 +00:00
|
|
|
{foreach from=$videos item=video}
|
2014-02-21 14:09:24 +00:00
|
|
|
|
2014-01-30 13:57:53 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<input name="check_video[]" type="checkbox" id="check_video" value="{$video.videoid}"/>
|
2014-01-27 07:35:20 +00:00
|
|
|
</td>
|
2014-05-26 06:30:39 +00:00
|
|
|
<td>{$video.in_editor_pick}</td>
|
2014-01-27 07:35:20 +00:00
|
|
|
<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">
|
2014-05-26 06:30:39 +00:00
|
|
|
|
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>
|
2014-03-25 06:47:08 +00:00
|
|
|
<span class="label {if $video.status=='Successful'}label-success{else}label-warning{/if}">
|
2014-05-14 11:12:37 +00:00
|
|
|
{$video.status} </span>
|
2014-05-26 06:30:39 +00:00
|
|
|
<span class="label label-info">
|
2014-06-02 14:15:24 +00:00
|
|
|
{if $video.featured=='yes'}Featured{else}Unfeatured{/if}</span>
|
2014-05-26 06:30:39 +00:00
|
|
|
|
2014-02-20 14:03:59 +00:00
|
|
|
<span class="label label-info">
|
|
|
|
Viewed {$video.last_viewed|niceTime}</span>
|
2014-05-26 06:30:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-02 14:15:24 +00:00
|
|
|
{foreach from=$cbvid->video_manager_link_new item=links}
|
2014-05-26 06:30:39 +00:00
|
|
|
{$cbvid->video_manager_link_new($links,$video)}
|
|
|
|
{/foreach}
|
|
|
|
|
2014-02-03 12:42:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-21 13:54:05 +00:00
|
|
|
</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>
|
2014-01-21 13:54:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-27 07:35:20 +00:00
|
|
|
</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>
|
2014-04-04 12:49:51 +00:00
|
|
|
<ul class="dropdown-menu pull-right" 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>
|
2014-02-12 13:10:18 +00:00
|
|
|
<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-05-26 06:30:39 +00:00
|
|
|
<li><a role="menuitem" tabindex="-1" href="?make_unfeature={$video.videoid}">Make Unfeatured</a></li>
|
2014-01-30 13:57:53 +00:00
|
|
|
{/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>
|
2014-01-21 13:54:05 +00:00
|
|
|
<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>
|
2014-06-02 14:15:24 +00:00
|
|
|
{foreach from=$cbvid->video_manager_link item=links}
|
2014-02-21 14:09:24 +00:00
|
|
|
{$cbvid->video_manager_link($links,$video)}
|
|
|
|
{/foreach}
|
2014-01-21 13:54:05 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2014-01-30 13:57:53 +00:00
|
|
|
{/foreach}
|
2014-01-21 13:54:05 +00:00
|
|
|
</table>
|
|
|
|
{else}
|
|
|
|
<div align="center"><strong><em>No Video Found</em></strong></div>
|
|
|
|
{/if}
|
2014-05-07 14:06:39 +00:00
|
|
|
<div class="btn-group marginBotoomLarge marginTopLarge paddingBotoomLarge paddingTopLarge">
|
2014-01-30 13:57:53 +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"/>
|
|
|
|
<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"
|
2014-02-12 13:10:18 +00:00
|
|
|
onclick="return _cb.confirm_it('Are you sure you want to delete selected video(s)')"/>
|
2014-01-27 05:35:29 +00:00
|
|
|
</div>
|
2014-01-21 13:54:05 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<!-- DIsplaying Videos Ends-->
|
2014-02-03 12:42:47 +00:00
|
|
|
{include file="$style_dir/blocks/pagination.html" }
|
2014-05-07 14:06:39 +00:00
|
|
|
<div class="marginBottomLarge"></div>
|
|
|
|
|
2014-02-03 12:42:47 +00:00
|
|
|
|