Moderator options
This commit is contained in:
parent
2b6466b58c
commit
708bf417be
33
forum.php
33
forum.php
@ -416,7 +416,7 @@ if (isset($_GET['do']) && $isModerator == true) {
|
||||
$close = "<a href='?topic={$_GET['topic']}&do=close'>🔒Закрыть</a>";
|
||||
}
|
||||
if ($row['fix'] == 1) {
|
||||
$fix = "<a href='?topic={$_GET['topic']}&do=unfix'>Открепить</a>";
|
||||
$fix = "<a href='?topic={$_GET['topic']}&do=unfix'>📄Открепить</a>";
|
||||
} else {
|
||||
$fix = "<a href='?topic={$_GET['topic']}&do=fix'>📌Прикрепить</a>";
|
||||
}
|
||||
@ -453,28 +453,29 @@ if (isset($_GET['do']) && $isModerator == true) {
|
||||
echo $pages_str;
|
||||
|
||||
?>
|
||||
<div class="rc6 mBodyBlock" id="leaf<?= $row['id'] ?>">
|
||||
<span class="topicTitle">
|
||||
<img height=15 src="i/forum/icon<?= $icons ?>.gif" width=15 border=0/>
|
||||
<a href='?'><?= $row['topic'] ?></a>
|
||||
</span>
|
||||
<div id="leaf<?= $row['id'] ?>">
|
||||
<span class="topicTitle">
|
||||
<img src="i/forum/icon<?= $icons ?>.gif"> <?= $row['topic'] ?>
|
||||
</span>
|
||||
<div class="auth_str">
|
||||
"<?= $row['author'] ?>"
|
||||
<div class="date_abs">("<?= $row['date'] ?>")</div>
|
||||
<?= $row['author'] ?><span class="date">(<?= $row['date'] ?>)</span>
|
||||
<a href='#' class='cite' onclick="add_cites(<?= $row['id'] ?>);" title="Цитата">
|
||||
<img src="i/forum/icon13.gif"/>
|
||||
<small>Цитировать</small>
|
||||
</a>
|
||||
<?php if ($isAdmin): ?>
|
||||
<a href="javascript:void(0);" class="contact" id="<?= $row['id'] ?>"><img
|
||||
src="i/forum/edit.png"></a>
|
||||
| <a href="javascript:void(0);" class="contact" id="<?= $row['id'] ?>">
|
||||
<small>Редактировать</small>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($isModerator AND isset($_GET['conf']) AND isset($_GET['page'])): ?>
|
||||
<?php if ($isModerator AND (isset($_GET['conf']) OR isset($_GET['page']))): ?>
|
||||
<a href="?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&dp=<?= $row['id'] ?>">
|
||||
<img src="i/clear.gif">
|
||||
</a>
|
||||
<small>Удалить</small>
|
||||
</a> |
|
||||
<a onclick="var obj; if (obj = prompt('Введите комментарий','')) { window.location='forum.php?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&cpr='+obj+'&com=<?= $row['id'] ?>'; }"
|
||||
href='#'><small>Комментарий</small></a>
|
||||
href='#'>
|
||||
<small>Комментарий</small>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<br>
|
||||
<br>
|
||||
@ -485,7 +486,7 @@ if (isset($_GET['do']) && $isModerator == true) {
|
||||
if (empty($_GET['page'])) $_GET['page'] = "";
|
||||
$data = db::c()->query('SELECT * FROM `forum` WHERE `parent` = "?s" ORDER BY `id` ASC LIMIT ?i,20', $_GET['topic'], ($_GET['page'] * 20));
|
||||
while ($row = $data->fetch_assoc()): ?>
|
||||
<div class="rc6 mBodyBlock" id="leaf<?= $row['id'] ?>">
|
||||
<div id="leaf<?= $row['id'] ?>">
|
||||
<div class="mesTopBar">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user