Forum cleanup
This commit is contained in:
parent
15f4ed8efe
commit
133292ae9a
15
forum.php
15
forum.php
@ -451,7 +451,7 @@ if (isset($_GET['do']) && $isModerator == true) {
|
|||||||
echo $pages_str;
|
echo $pages_str;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div id="leaf<?= $row['id'] ?>" style="background-color: #ddd;margin: 2px;overflow-x: auto;word-wrap: break-word;box-shadow: 1px 2px 3px #ccc;">
|
<div id="leaf<?= $row['id'] ?>" style="background-color: #ddd;margin: 2px;padding:5px;overflow-x: auto;word-wrap: break-word;box-shadow: 1px 2px 3px #ccc;">
|
||||||
<span class="topicTitle">
|
<span class="topicTitle">
|
||||||
<img src="i/forum/icon<?= $icons ?>.gif"> <?= $row['topic'] ?>
|
<img src="i/forum/icon<?= $icons ?>.gif"> <?= $row['topic'] ?>
|
||||||
</span>
|
</span>
|
||||||
@ -484,7 +484,7 @@ if (isset($_GET['do']) && $isModerator == true) {
|
|||||||
if (empty($_GET['page'])) $_GET['page'] = "";
|
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));
|
$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()): ?>
|
while ($row = $data->fetch_assoc()): ?>
|
||||||
<div id="leaf<?= $row['id'] ?>">
|
<div id="leaf<?= $row['id'] ?>" style="background-color: #ddd;margin: 2px;padding:5px;overflow-x: auto;word-wrap: break-word;box-shadow: 1px 2px 3px #ccc;">
|
||||||
<div class="mesTopBar">
|
<div class="mesTopBar">
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
@ -504,12 +504,13 @@ if (isset($_GET['do']) && $isModerator == true) {
|
|||||||
<td align="right">
|
<td align="right">
|
||||||
<a href="javascript:void(0);" class="quote_btn"
|
<a href="javascript:void(0);" class="quote_btn"
|
||||||
onclick="return add_cites(<?= $row['id'] ?>);" title="Цитата">
|
onclick="return add_cites(<?= $row['id'] ?>);" title="Цитата">
|
||||||
<img src="i/forum/icon13.gif">
|
<small>Цитировать</small>
|
||||||
</a>
|
</a>
|
||||||
<?php if ($isAdmin): ?>
|
<?php if ($isAdmin): ?>
|
||||||
<a href="javascript:void(0);" class="contact"
|
<a href="javascript:void(0);" class="contact"
|
||||||
id="<?= $row['id'] ?>"><img
|
id="<?= $row['id'] ?>">
|
||||||
src="i/forum/edit.png"></a>
|
<small>Редактировать</small>
|
||||||
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -520,11 +521,9 @@ if (isset($_GET['do']) && $isModerator == true) {
|
|||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
if ($pgs > 1) {
|
if ($pgs > 1) {
|
||||||
echo "<img src=i/ico/news.gif width=\"16\" height=\"16\" /> Страницы : ";
|
echo "<img src=i/ico/news.gif> Страницы: ";
|
||||||
}
|
}
|
||||||
echo $pages_str;
|
echo $pages_str;
|
||||||
$closed = '';
|
|
||||||
$closepal = '';
|
|
||||||
|
|
||||||
if ($closed == 1) {
|
if ($closed == 1) {
|
||||||
echo "<br /><div align=center>" . $closepal . "</div><br /><br />";
|
echo "<br /><div align=center>" . $closepal . "</div><br /><br />";
|
||||||
|
Loading…
Reference in New Issue
Block a user