Файл: adultscript-2.0.3-pro/files/admin/templates/default/video_manage.tpl.php
Строк: 913
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
<link href="<?php echo TPL_REL; ?>/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
<script src="<?php echo TPL_REL; ?>/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript">
var lang_question_suspend = "Are you sure you want to suspend this video?";
var lang_question_activate = "Are you sure you want to activate this video?";
var lang_question_delete = "Are you sure you want to delete this video?";
var lang_question_unassign = "Are you sure you want to remove the assigned banner from this video?";
var lang_question_sponsor = "Are you sure you want to remove this video from sponsor?";
var lang_question_convert = "Are you sure you want to convert this video?";
function mass_tools(ids, action) {
var form = '<form id="mass-tools" method="post" action="' + action + '">';
jQuery.each(ids, function(key, value) {
var id = $(value).attr('name').replace('checkbox_video_', '');
form = form + '<input name="videos[]" type="hidden" value="' + id + '" />';
});
var form = form + '</form>';
jQuery('body').prepend(form);
$("#mass-tools").submit();
}
$(document).ready(function() {
$("a[id^='manage_video_']").click(function(e) {
e.preventDefault();
var click_id = $(this).attr('id');
var click_arr = click_id.split('_');
var action = click_arr[2];
var video_id = click_arr[3];
if (action == 'suspend') {
var answer = confirm(lang_question_suspend);
} else if (action == 'activate') {
var answer = confirm(lang_question_activate);
} else if (action == 'delete') {
var answer = confirm(lang_question_delete);
} else if (action == 'unassign') {
var answer = confirm(lang_question_unassign);
} else if (action == 'sponsor') {
var answer = confirm(lang_question_sponsor);
} else if (action == 'convert') {
var answer = confirm(lang_question_convert);
}
if (answer) {
$("input[name='action']").val(action);
$("input[name='video_id']").val(video_id);
$("#manage_video_form").submit();
}
});
$("a[id^='remove_']").click(function(e) {
e.preventDefault();
var click_id = $(this).attr('id');
var click_arr = click_id.split('_');
var video_id = click_arr[1];
$("input[name='id']").val(video_id);
$("#remove_ad_form").submit();
});
$("a[id^='adv_add_']").click(function(e) {
e.preventDefault();
$("input[name='id']").val($(this).attr('id').match(/adv_add_(.*)/)[1]);
$("a[id^='assign_adv_']").css("background-image", "url('<?php echo TPL_URL; ?>/images/coins.png')");
$("#dialog").dialog({
width: 600,
height: 360
});
});
$("a[id^='preview-video-']").click(function(e) {
e.preventDefault();
var video_id = $(this).attr('id').match(/preview-video-(.*)/)[1];
$.ajax({
url: base_url + '/ajax.php?s=preview_video&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: { video_id: video_id },
success: function(response){
var preview = window.open("","wildebeast","width=690,height=510,scrollbars=1,resizable=1")
preview.document.open()
preview.document.write(response.code)
preview.document.close()
}
});
});
$("a[id^='assign_adv_']").live('click', function(e) {
e.preventDefault();
var video_id = $("input[name='id']").val();
var adv_id = $(this).attr('id').match(/assign_adv_(.*)/)[1];
$(this).css("background-image", "url('<?php echo TPL_URL; ?>/images/ajax-loader.gif')");
$.ajax({
url: base_url + '/ajax.php?s=assign_video_adv&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: { video_id: video_id, adv_id: adv_id },
success: function(response) {
if (response.status == '1') {
$("a[id='assign_adv_" + adv_id + "']").css("background-image", "url('<?php echo TPL_URL; ?>/images/coins_add.png')");
$("span[id='adv_" + video_id + "']").html('<a href="#unassign_adv" id="manage_video_adv_' + video_id + '" title="Unassign video advertising from this video!"><img src="<?php echo TPL_URL; ?>/images/coins_delete.png" alt="" /></a>');
} else {
$("a[id='assign_adv_" + adv_id + "']").css("background-image", "url('<?php echo TPL_URL; ?>/images/coins.png')");
}
$("#dialog").dialog({ buttons: { "Done": function() { $(this).dialog("close"); }}});
}
});
});
$("#dialog-pornstar").dialog({
autoOpen: false,
width: 600,
height: 360
});
$("a[id^='manage_pornstar_']").live('click', function(e) {
e.preventDefault();
var video_id = $(this).attr('id').match(/manage_pornstar_(.*)/)[1];
$.ajax({
url: base_url + '/ajax.php?s=manage_pornstar&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: {video_id: video_id},
success: function(response) {
$("#dialog-pornstar").html(response.code);
$("#dialog-pornstar").dialog('open');
}
});
});
$("a[id^='pornstar-pagination-']").live('click', function(e) {
e.preventDefault();
var click_id = $(this).attr('id');
var click_arr = click_id.split('-');
var video_id = click_arr[2];
var letter = click_arr[3];
$.ajax({
url: base_url + '/ajax.php?s=manage_pornstar&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: {video_id: video_id, page: letter},
success: function(response) {
$("#dialog-pornstar").dialog('close');
$("#dialog-pornstar").html(response.code);
$("#dialog-pornstar").dialog('open');
}
});
});
$("a[id^='assign-pornstar-']").live('click', function(e) {
e.preventDefault();
var click_id = $(this).attr('id');
var click_arr = click_id.split('-');
var model_id = click_arr[2];
var video_id = click_arr[3];
$.ajax({
url: base_url + '/ajax.php?s=assign_pornstar&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: {model_id: model_id, video_id: video_id},
success: function(response) {
alert(response.msg);
$("#dialog-pornstar").dialog('close');
$.ajax({
url: base_url + '/ajax.php?s=manage_pornstar&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: {video_id: video_id},
success: function(response) {
$("#dialog-pornstar").html(response.code);
$("#dialog-pornstar").dialog('open');
}
});
}
});
});
$("a[id^='remove-pornstar-']").live('click', function(e) {
e.preventDefault();
var click_id = $(this).attr('id');
var click_arr = click_id.split('-');
var model_id = click_arr[2];
var video_id = click_arr[3];
$.ajax({
url: base_url + '/ajax.php?s=unassign_pornstar&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: {model_id: model_id, video_id: video_id},
success: function(response) {
alert(response.msg);
$("#dialog-pornstar").dialog('close');
$.ajax({
url: base_url + '/ajax.php?s=manage_pornstar&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: {video_id: video_id},
success: function(response) {
$("#dialog-pornstar").html(response.code);
$("#dialog-pornstar").dialog('open');
}
});
}
});
});
function submit_dialog_form(options)
{
$.ajax({
url: base_url + '/ajax.php?s=manage_player&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: {options: options}
});
}
$("#dialog-player-adv").dialog({
autoOpen: false,
width: 600,
height: 340,
buttons: {
"Update": function() {
var args = $("#manage-player-form").serializeArray();
submit_dialog_form($.param(args));
$(this).dialog('close');
}
},
beforeClose: function(event, ui) {
var args = $("#manage-player-form").serializeArray();
submit_dialog_form($.param(args));
}
});
$("a[id^='manage_player_']").live('click', function(e) {
e.preventDefault();
var video_id = $(this).attr('id').match(/manage_player_(.*)/)[1];
$.ajax({
url: base_url + '/ajax.php?s=manage_player&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: {video_id: video_id},
success: function(response) {
$("#dialog-player-adv").html(response.code);
$("#dialog-player-adv").dialog('open');
}
});
});
$("#dialog-shedule").dialog({
autoOpen: false,
width: 300,
height: 310,
modal: true,
resizable: false,
buttons: {
"Shedule": function() {
$(this).dialog("close");
var ids = $("input[name^='checkbox_video_']:checked");
ids = $.param(ids).replace(/checkbox_video_/g, '');
$("input[name='sub_action']").val('shedule');
$("input[name='sub_date']").val($("input[name='datepicker']").val());
$("input[name='sub_ids']").val(ids);
$("#sub_form").submit();
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
$("#actionsForm").submit(function(e) {
var action = $("select[name='action']").val();
if (action == 'shedule') {
e.preventDefault();
$("input[name='datepicker']").datepicker({ dateFormat: 'yy-mm-dd' });
$("#dialog-shedule").dialog('open');
} else if (action == 'edit') {
e.preventDefault();
var ids = $("input[name^='checkbox_video_']:checked");
mass_tools(ids, base_url + '/admin/index.php?q=video/mass_edit');
} else if (action == 'bulk') {
e.preventDefault();
var ids = $("input[name^='checkbox_video_']:checked");
mass_tools(ids, base_url + '/admin/index.php?q=video/mass_update');
} else if (action == 'pornstar') {
e.preventDefault();
var ids = $("input[name^='checkbox_video_']:checked");
window.location = base_url + '/admin/index.php?q=pornstar/assign&' + $.param(ids);
} else if (action == 'assign') {
e.preventDefault();
$("#dialog-adv").dialog('open');
} else if (action == 'sponsor') {
e.preventDefault();
$("#dialog-sponsor").dialog('open');
}
});
$("#dialog-adv").dialog({
autoOpen: false,
width: 600,
height: 410,
modal: true,
resizable: false,
buttons: {
"Assign": function() {
$(this).dialog("close");
var ids = $("input[name^='checkbox_video_']:checked");
ids = $.param(ids).replace(/checkbox_video_/g, '');
var id = $("input[name='adv']:checked").val();
$("input[name='sub_action']").val('assign');
$("input[name='sub_id']").val(id);
$("input[name='sub_ids']").val(ids);
$("#sub_form").submit();
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
$("#dialog-sponsor").dialog({
autoOpen: false,
width: 600,
height: 410,
modal: true,
resizable: false,
buttons: {
"Assign": function() {
$(this).dialog("close");
var ids = $("input[name^='checkbox_video_']:checked");
ids = $.param(ids).replace(/checkbox_video_/g, '');
var id = $("input[name='sponsor']:checked").val();
$("input[name='sub_action']").val('assign');
$("input[name='sub_id']").val(id);
$("input[name='sub_ids']").val(ids);
$("#sub_form").submit();
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
});
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('video_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('video_manage_menu'); ?>
<?php echo $this->fetch('video_search'); ?>
<?php if ($this->videos): ?>
<form name="manage_video_form" id="manage_video_form" method="post" action="<?php echo CURRENT_URL; ?>">
<input name="action" type="hidden" value="" />
<input name="video_id" type="hidden" value="" />
</form>
<form id="sub_form" method="post" action="<?php echo CURRENT_URL; ?>">
<input name="sub_id" type="hidden" value="" />
<input name="sub_ids" type="hidden" value="" />
<input name="sub_date" type="hidden" value="" />
<input name="sub_action" type="hidden" value="1" />
</form>
<form name="actionsForm" id="actionsForm" method="post" action="<?php echo CURRENT_URL; ?>">
<div class="box_menu">
<div class="box_menu_left">
<select name="action" id="actions_top">
<option value="suspend">Suspend</option>
<option value="activate">Activate</option>
<option value="delete">Delete</option>
<option value="assign">Assign Advertising</option>
<option value="unassign">Remove Advertising</option>
<option value="sponsor">Assign Sponsor</option>
<option value="unsponsor">Remove Sponsor</option>
<option value="thumb">Generate Thumbs</option>
<option value="duration">Generate Duration</option>
<option value="mobile">Convert Mobile</option>
<?php if (VModule::enabled('pornstar')): echo '<option value="pornstar">Assign Pornstar</option>'; endif; ?>
<?php if (VModule::enabled('premium')): echo '<option value="premium">Premium</option>'; endif; ?>
<option value="feature">Feature</option>
<option value="unfeature">Unfeature</option>
<option value="shedule">Schedule</option>
<option value="shuffle">Shuffle</option>
<option value="edit">Mass Edit</option>
<option value="bulk">Bulk Edit</option>
<option value="mark">Mark Deleted</option>
<option value="categorize">Categorize</option>
<option value="synonyms">Spin Text</option>
</select>
<input name="submit_actions" type="submit" class="button butDef" value="Go!" />
</div>
<div class="box_menu_right">
<div class="barNav clearfix">Found <strong><?php echo $this->pagination['total_items']; ?></strong> videos, displaying page <strong><?php echo $this->pagination['page']; ?></strong> of <strong><?php echo $this->pagination['total_pages']; ?></strong> <strong>·</strong> <?php echo p('pagination', $this->pagination, CURRENT_URL); ?></div>
</div>
<div class="clear"></div>
</div>
<div id="dialog" title="Assign Video Advertising Banner" style="display: none;">
<input name="id" type="hidden" value="" />
<?php if ($this->advs): ?>
<ul class="dialog-list">
<?php foreach ($this->advs as $adv): ?>
<li><a href="#" id="assign_adv_<?php echo $adv['adv_id']; ?>"><?php echo e($adv['adv_name']); ?></a></li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<div class="none">No advertising banners found for the Video Player group! Click <a href="<?php echo ADMIN_URL; ?>/index.php?q=adv/add">here</a> to add banners!</div>
<?php endif; ?>
</div>
<div id="dialog-pornstar" title="Manage Video Pornstars" style="display: none;"></div>
<div id="dialog-player-adv" title="Manage Player Advertising" style="display: none;"></div>
<div id="dialog-adv" title="Assign Video Player Advertising to Selected Videos" style="display: none;">
<?php if ($this->advs): ?>
<ul class="dialog-list">
<?php foreach ($this->advs as $adv): ?>
<li><input name="adv" type="radio" id="adv-<?php echo $adv['adv_id']; ?>" class="radio" value="<?php echo $adv['adv_id']; ?>" /> <?php echo e($adv['adv_name']); ?></li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<div class="none">No advertising banners found for the Video Player Group! Click <a href="<?php echo ADMIN_URL; ?>/index.php?q=adv/add">here</a> to add banners!</div>
<?php endif; ?>
</div>
<div id="dialog-sponsor" title="Assign Selected Videos to Sponsor" style="display: none;">
<?php if ($this->sponsors): ?>
<ul class="dialog-list">
<?php foreach ($this->sponsors as $sponsor): ?>
<li><input name="sponsor" type="radio" id="sponsor-<?php echo $sponsor['sponsor_id']; ?>" class="radio" value="<?php echo $sponsor['sponsor_id']; ?>" /> <?php echo e($sponsor['sponsor_name']); ?></li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<div class="none">No sponsor found!</div>
<?php endif; ?>
</div>
<div id="dialog-shedule" class="dialog" title="Shedule Selected Videos" style="display: none;">
<input name="datepicker" type="text" value="<?php echo date('Y-m-d', strtotime('+1 day')); ?>" />
</div>
<table cellpadding="0" cellspacing="0" border="0" id="table" class="uiTable">
<thead>
<tr>
<th class="nosort" style="width: 12px; text-align: center;"><input name="checkbox_all" type="checkbox" id="check_all" /></th>
<th width="30%"><h3>Title</h3></th>
<th><h3>Categories</h3></th>
<th><h3>Username</h3></th>
<th style="min-width: 10%;"><h3>Properties</h3></th>
<?php if ($this->mserver): ?>
<th><h3>Server</h3></th>
<?php endif; ?>
<?php if ($this->option['flagged'] == '1'): ?>
<th><h3>Reason</h3></th>
<?php endif; ?>
<th><h3>Add Date</h3></th>
<th><h3>Status</h3></th>
<th style="width: 10%;"><h3>Actions</h3></th>
</tr>
</thead>
<tbody>
<?php $count = count($this->videos);
foreach ($this->videos as $video):
if ($video['status'] == '1'):
$status_image = 'accept.png';
$status = 'suspend';
$alt = 'Active';
else:
$status_image = 'cancel.png';
$status = 'activate';
$alt = 'Suspended';
endif;
?>
<tr id="row_<?php echo $video['video_id']; ?>">
<td><input name="checkbox_video_<?php echo $video['video_id']; ?>" type="checkbox" id="checkbox_item_<?php echo $video['video_id']; ?>" /></td>
<td width="30%">
<a href="<?php echo ADMIN_URL; ?>/index.php?q=video/view&id=<?php echo $video['video_id']; ?>">
<strong><?php echo e($video['title']); ?></strong><br /><br />
<img src="<?php echo THUMB_URL,'/',path($video['video_id']),'/',$video['thumb']; ?>.jpg" alt="<?php echo e($video['title']); ?>" class="thumb" />
</a>
</td>
<td>
<?php $categories = explode(',', $video['category']);
$names = explode(',', $video['name']);
foreach ($categories as $key => $value) {
echo '<strong><a href="'.ADMIN_URL.'/index.php?q=video/manage&c='.$value.'">'.e($names[$key]).'</a></strong><br />';
}
?>
</td>
<td><strong><a href="<?php echo ADMIN_URL; ?>/index.php?q=user/view&id=<?php echo $video['user_id']; ?>"><?php echo e($video['username']); ?></strong></td>
<td style="min-width: 10%;">
<div class="highlight">
<?php if ($video['embed_code'] != ''): ?>
<strong>Embedded</strong>
<?php elseif ($video['url'] != ''): ?>
<strong>Hotlinked</strong>
<?php else: ?>
<strong>Hosted</strong>
<?php endif; ?>
</div>
<?php if ($video['premium'] == '1'): echo '<div class="highlight"><strong>Premium</strong></div>'; endif; ?>
<strong><?php echo $video['ext']; if ($video['hd'] == '1'): echo ', hd'; endif; if ($video['mobile']): echo ', mobile'; endif; ?></strong><br />
Views: <strong><?php echo $video['total_views']; ?></strong><br />
Comments: <strong><?php echo $video['total_comments']; ?></strong><br />
Downloads: <strong><?php echo $video['total_downloads']; ?></strong><br /><br />
Rating: <strong><?php echo $video['rating']; ?></strong><br />
Votes: <strong><?php echo $video['rated_by']; ?></strong><br /><br />
Featured: <strong><?php if ($video['featured'] == '1'): echo 'yes'; else: echo 'no'; endif; ?></strong><br />
Flagged: <strong><?php if ($video['flagged'] == '1'): echo 'yes'; else: echo 'no'; endif; ?></strong>
</td>
<?php if ($this->mserver): ?>
<td>
<?php if ($video['server'] == '0'): ?>
<strong>Main Server</strong>
<?php else: ?>
<a href="<?php echo ADMIN_URL; ?>/index.php?q=video/server/edit&id=<?php echo $video['server']; ?>"><strong><?php echo e($video['server_name']); ?></strong></a>
<?php endif; ?>
</td>
<?php endif; ?>
<?php if ($this->option['flagged'] == '1'): ?>
<td><strong><a href="<?php echo ADMIN_URL; ?>/index.php?q=video/flags&id=<?php echo $video['video_id']; ?>"><?php echo e($this->reasons[$video['reason']]); ?></a></strong></td>
<?php endif; ?>
<td><?php echo $video['add_date']; ?></td>
<td>
<?php if ($video['status'] == '0' OR $video['status'] == '1'): ?>
<a href="#status" id="manage_video_<?php echo $status; ?>_<?php echo $video['video_id']; ?>" title="Click to <?php echo $status; ?> this video!"><img src="<?php echo TPL_REL; ?>/images/<?php echo $status_image; ?>" alt="<?php echo $alt; ?>" /></a>
<?php else: ?>
<strong><?php echo $this->statuses[$video['status']]; ?></strong>
<?php endif; ?>
</td>
<td>
<a href="<?php echo ADMIN_URL; ?>/index.php?q=video/view&id=<?php echo $video['video_id']; ?>" title="View Video"><img src="<?php echo TPL_REL; ?>/images/film.png" alt="View" /></a>
<?php if ($video['status'] == '1' OR $video['status'] == '0' OR $video['status'] == '2'): ?>
<a href="#preview-video" id="preview-video-<?php echo $video['video_id']; ?>" title="Preview Video"><img src="<?php echo TPL_REL; ?>/images/film_go.png" alt="View" /></a>
<?php endif; ?>
<a href="<?php echo ADMIN_URL; ?>/index.php?q=video/edit&id=<?php echo $video['video_id']; ?>" title="Edit Video"><img src="<?php echo TPL_REL; ?>/images/film_edit.png" alt="Edit" /></a>
<a href="#delete_video" id="manage_video_delete_<?php echo $video['video_id']; ?>" title="Delete Video" /><img src="<?php echo TPL_REL; ?>/images/film_delete.png" alt="Delete" /></a>
<?php if ($video['status'] == '6'): ?>
<a href="#convert_video" id="manage_video_convert_<?php echo $video['video_id']; ?>" title="Convert Video"><img src="<?php echo TPL_REL; ?>/images/film_go.png" alt="Convert" /></a>
<?php endif; ?>
<br />
<span id="adv_<?php echo $video['video_id']; ?>">
<?php if ($video['adv'] == '0'): ?>
<a href="#assign_adv" id="adv_add_<?php echo $video['video_id']; ?>" title="Assign a advertising banner to this video!"><img src="<?php echo TPL_REL; ?>/images/coins_add.png" alt="" /></a>
<?php else: ?>
<a href="#unassign_adv" id="manage_video_unassign_<?php echo $video['video_id']; ?>" title="Unassign video advertising from this video!"><img src="<?php echo TPL_REL; ?>/images/coins_delete.png" alt="" /></a>
<?php endif; ?>
</span>
<a href="#remove_sponsor" id="manage_video_sponsor_<?php echo $video['video_id']; ?>" title="Remove video from current sponsor!"><img src="<?php echo TPL_REL; ?>/images/folder_delete.png" alt="" /></a>
<a href="#manage_player" id="manage_player_<?php echo $video['video_id']; ?>" title="Manage Player Advertising"><img src="<?php echo TPL_REL; ?>/images/shape_square_edit.png" alt="" /></a>
<?php if (VModule::enabled('pornstar')): ?>
<a href="#manage_pornstars" id="manage_pornstar_<?php echo $video['video_id']; ?>" title="Manage pornstars for this video!"><img src="<?php echo TPL_REL; ?>/images/user.png" alt="" /></a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="box_menu">
<div class="box_menu_left">
<select name="action" id="actions_bottom">
<option value="suspend">Suspend</option>
<option value="activate">Activate</option>
<option value="delete">Delete</option>
<option value="assign">Assign Advertising</option>
<option value="unassign">Remove Advertising</option>
<option value="sponsor">Assign Sponsor</option>
<option value="unsponsor">Remove Sponsor</option>
<option value="thumb">Generate Thumbs</option>
<option value="duration">Generate Duration</option>
<option value="mobile">Convert Mobile</option>
<?php if (VModule::enabled('pornstar')): echo '<option value="pornstar">Assign Pornstar</option>'; endif; ?>
<?php if (VModule::enabled('premium')): echo '<option value="premium">Premium</option>'; endif; ?>
<option value="feature">Feature</option>
<option value="unfeature">Unfeature</option>
<option value="shedule">Schedule</option>
<option value="shuffle">Shuffle</option>
<option value="edit">Mass Edit</option>
<option value="bulk">Bulk Edit</option>
<option value="mark">Mark Deleted</option>
<option value="categorize">Categorize</option>
<option value="synonyms">Spin Text</option>
</select>
<input name="submit_actions" type="submit" class="button butDef" value="Go!" />
</div>
<div class="box_menu_right">
<div class="barNav clearfix">Found <strong><?php echo $this->pagination['total_items']; ?></strong> videos, displaying page <strong><?php echo $this->pagination['page']; ?></strong> of <strong><?php echo $this->pagination['total_pages']; ?></strong> <strong>·</strong> <?php echo p('pagination', $this->pagination, CURRENT_URL); ?></div>
</div>
<div class="clear"></div>
</div>
<?php else: ?>
<div class="none">No videos found!</div>
<?php endif; ?>
</div>
<div class="legend">
<img src="<?php echo TPL_REL; ?>/images/film.png" alt="film_view" /> View Video
<img src="<?php echo TPL_REL; ?>/images/film_edit.png" alt="film_edit" /> Edit Video
<img src="<?php echo TPL_REL; ?>/images/film_delete.png" alt="film_delete" /> Delete Video
<img src="<?php echo TPL_REL; ?>/images/coins_add.png" alt="coins_add" /> Assign Advertising
<img src="<?php echo TPL_REL; ?>/images/coins_delete.png" alt="coins_delete" /> Remove Advertising<br />
<img src="<?php echo TPL_REL; ?>/images/folder_delete.png" alt="folder delete" /> Remove Video from Sponsor</a>
<img src="<?php echo TPL_REL; ?>/images/shape_square_edit.png" alt="shape_square_edit" /> Manage Player Advertising
<?php if (VModule::enabled('pornstar')): ?>
<img src="<?php echo TPL_REL; ?>/images/user.png" alt="" /> Manage Models
<?php endif; ?>
<img src="<?php echo TPL_REL; ?>/images/accept.png" alt="accept" /> Active - Action Suspend
<img src="<?php echo TPL_REL; ?>/images/cancel.png" alt="cancel" /> Suspended - Action Activate
</div>
</div>
</div>