Размер файла: 1.53Kb
<div class="title"><b><?=Lang::get('news_comments', 'news'); ?> - <?=$details['name']; ?></b></div>
<?php if(User::loged()): ?>
<div class="menu">
<form action="/news/comments-<?=$details['id']?>?comment=add" method="post">
<?=System::textarea(); ?><br/>
<input type="submit" value="<?=Lang::get('add'); ?>" />
</form>
</div>
<?php endif; ?>
<?php if($array->rowCount() == 0): ?>
<div class="menu"><?=Lang::get('news_no_comments', 'news'); ?></div>
<?php else: ?>
<?php foreach($array as $comments): ?>
<div id="<?=$comments['id']?>" class="post">
<?=User::nick($comments['user_id'], '<span style="color: gray;">'.Filters::viewTime($comments['time']).'</span>'); ?> <span style="float:right;"><?php if ($comments['user_id'] != User::Id() and User::loged()): ?> [<a href="#area" onclick="return bbtags('[quote][b]<?=User::tnick($comments['user_id'])?>[/b]\r\n<?=$comments['text']?>\r\n', '[/quote]', '<?=$comments['id']; ?>', 'area')">Re.</a>]
<?php endif; ?>
<?php if(User::level() > 1): ?>[<a href="/news/comments-<?=$details['id']; ?>?comment=delete&this_id=<?=$comments['id']?>">x</a>]<?php endif; ?></span>
<?=Filters::output($comments['text']); ?>
</div>
<?php endforeach; ?>
<?php endif; ?>
<?=$pages->view(); ?>
<div class="block">
<?=System::image('back.png'); ?> <a href="/news/article-<?=$details['id']; ?>"><?=$details['name']; ?></a><br/>
<?=System::image('back.png'); ?> <a href="/news/"><?=Lang::get('news_title', 'news'); ?></a><br/>
<?=System::image('back.png'); ?> <a href="/"><?=Lang::get('mainpage'); ?></a>
</div>