Moderator options

This commit is contained in:
lopar 2018-11-01 02:29:06 +02:00
parent eb2cb4203b
commit 83fe811f10
1 changed files with 6 additions and 5 deletions

View File

@ -605,15 +605,16 @@ if (isset($_GET['do']) && $isModerator == true) {
}
$pages_str .= ($page < $pgs - 5 ? " ..." : "");
$pages_str = ($page > 4 ? "<a href='?conf=" . $_GET['conf'] . "&konftop=" . htmlspecialchars($_GET['conf']) . "&page=" . ($page - 1) . "'> &laquo; </a> ... " : "") . $pages_str . (($page < ($pgs - 1) ? "<a href='?conf=" . $_GET['conf'] . "&page=" . ($page + 1) . "' > &raquo;</a>" : ""));
?>
<div style="width: 100%; margin: 5px;">
<img src="i/ico/news.gif" width="16" height="16"/> Страницы:<?= $pages_str ?>
</div>
<?php
}
$FirstPage = (ceil($pgs) > 4 ? $_GET['page'] > 0 ? "<a href='?conf=" . $_GET['conf'] . "&konftop=" . htmlspecialchars($_GET['conf']) . "&page=0'> Первая </a>" : "" : "");
$LastPage = (ceil($pgs) > 4 ? (ceil($pgs) - 1) != $_GET['page'] ? "<a href='?conf=" . $_GET['conf'] . "&konftop=" . htmlspecialchars($_GET['conf']) . "&page=" . (ceil($pgs) - 1) . "'> Последняя </a>" : "" : "");
$pages_str = $FirstPage . $pages_str . $LastPage;
?>
<div style="width: 100%; margin: 5px;">
<img src="i/ico/news.gif" width="16" height="16"/> Страницы:<?= $pages_str ?>
</div>
<?php
if (!empty($_GET['conf'])) {
if (empty($_GET['page'])) $_GET['page'] = 0;
$data = db::c()->query('SELECT * FROM `forum` WHERE `parent` = "?s" ORDER BY `fix` DESC, `updated` DESC LIMIT ?i,20', $_GET['conf'], ($_GET['page'] * 20));