File size: 1.37Kb
<?php
if ( $type == 'them' && $post['avtor'] != $user['id'] ) {
$name = __( 'Форум | Тема форума' );
} else if ( $type == 'them' && $post['avtor'] == $user['id'] ) {
$name = __( 'Форум | Ваша тема' );
}
if ( $type == 'them' ) {
$them = db::fetch("SELECT * FROM `forum_t` WHERE `id` = '" . $post['id_sim'] . "' LIMIT 1", ARRAY_A);
if ( $them['id'] ) {
?>
<div class="nav1">
<img src="/style/icons/forum.png" alt="*"/> <a href="/forum/<?= $them['id_forum'] ?>/<?= $them['id_razdel'] ?>/<?= $them['id'] ?>/?page=<?= $pageEnd ?>"><?= $name ?></a>
<?php
if ( $post['count'] > 0 ) {
?><b><font color='red'>+<?= $post['count'] ?></font></b><?php
}
?>
<span class="time"><?= $s1 . vremja( $post['time'] ) . $s2 ?></span>
</div>
<div class="nav2">
<b><font color='green'><?= $avtor['nick'] ?></font></b>
<?= ( $avtor['id'] != $user['id'] ? '<a href="user.settings.php?id=' . $avtor['id'] . '">[!]</a>' : '' ) ?>
<?= $avtor['medal'] ?> <?= $avtor['online'] ?> » <b><?= text( $them['name'] ) ?></b><br />
<span class="text"><?= output_text( $them['text'] ) ?></span>
</div>
<?php
} else {
?>
<div class="mess">
<?= __( 'Тема форума уже удалена =(' ) ?>
<span class="time"><?= $s1 . vremja( $post['time'] ) . $s2 ?></span>
</div>
<?php
}
}
?>