mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
28 lines
752 B
PHP
28 lines
752 B
PHP
<?php
|
|
require_once './config.php';
|
|
|
|
|
|
use nntmux\Games;
|
|
|
|
$page = new AdminPage();
|
|
$game = new Games(['Settings' => $page->settings]);
|
|
|
|
$page->title = "Game List";
|
|
|
|
$gamecount = $game->getCount();
|
|
|
|
$offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
|
|
$page->smarty->assign('pagertotalitems',$gamecount);
|
|
$page->smarty->assign('pageroffset',$offset);
|
|
$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE);
|
|
$page->smarty->assign('pagerquerybase', WWW_TOP."/game-list.php?offset=");
|
|
$pager = $page->smarty->fetch("pager.tpl");
|
|
$page->smarty->assign('pager', $pager);
|
|
|
|
$gamelist = $game->getRange($offset, ITEMS_PER_PAGE);
|
|
|
|
$page->smarty->assign('gamelist',$gamelist);
|
|
|
|
$page->content = $page->smarty->fetch('game-list.tpl');
|
|
$page->render();
|