mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
9fc5b5576e
[ci skip] [skip ci]
30 lines
926 B
PHP
Executable File
30 lines
926 B
PHP
Executable File
<?php
|
|
|
|
use App\Models\Video;
|
|
|
|
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
|
|
|
|
$page = new AdminPage();
|
|
|
|
$page->title = 'TV Shows List';
|
|
|
|
$tvshowname = (isset($_REQUEST['showname']) && ! empty($_REQUEST['showname']) ? $_REQUEST['showname'] : '');
|
|
$offset = $_REQUEST['offset'] ?? 0;
|
|
|
|
$page->smarty->assign(
|
|
[
|
|
'showname' => $tvshowname,
|
|
'tvshowlist' => Video::getRange($offset, ITEMS_PER_PAGE, $tvshowname),
|
|
'pagertotalitems' => Video::getCount($tvshowname),
|
|
'pageroffset' => $offset,
|
|
'pageritemsperpage' => ITEMS_PER_PAGE,
|
|
'pagerquerysuffix' => '',
|
|
'pagerquerybase' => WWW_TOP.'/show-list.php?'.
|
|
($tvshowname !== '' ? 'showname='.$tvshowname.'&' : '').'&offset=',
|
|
]
|
|
);
|
|
$page->smarty->assign('pager', $page->smarty->fetch('pager.tpl'));
|
|
|
|
$page->content = $page->smarty->fetch('show-list.tpl');
|
|
$page->render();
|