Moderator options
This commit is contained in:
parent
eb2cb4203b
commit
83fe811f10
11
forum.php
11
forum.php
@ -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) . "'> « </a> ... " : "") . $pages_str . (($page < ($pgs - 1) ? "<a href='?conf=" . $_GET['conf'] . "&page=" . ($page + 1) . "' > »</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));
|
||||
|
Loading…
Reference in New Issue
Block a user