<?php $this->display('header.tpl', array('sub_title' => $post['title'])) ?>

<?php if ($error) echo '<div class="error">'. $error .'</div>' ?>

<?php $this->display('title.tpl', array('text' => $post['title'])) ?>

<div class="menu">
    Автор: <a href="<?php echo URL .'profile/'. $post['username'] ?>"><?php echo $post['username'] ?></a><br />
    Время добавления: <?php echo date('d.m.Y в H:i', $post['time']) ?><br />
    <img src="<?php echo URL ?>modules/comments/images/comment.png" alt="" /> <a href="<?php echo a_url('comments', 'module=blog&amp;item_id='. $post['id'] .'&amp;return='. urlencode(a_url('blog/read_more', 'post_id='. $post['id']))) ?>">Комментарии</a> (<?php echo $post['comments'] ?>)
</div>

<div class="menu">
    <?php echo $post['message'] ?><br />
    <?php echo $post['rating_stars'] ?> (<?php echo $post['rating_voices'] ?> гол.)<?php if ( ! $post['rated']): echo '<form method="post" action="'. a_url('blog/rating_change', 'post_id='. $post['id']) .'"><select size="1" name="rate"><option value="5">Отлично</option><option value="4">Хорошо</option><option value="3">Нормально</option><option value="2">Плохо</option><option value="1">Ужасно</option></select><input type="submit" value="Ok" /></form>' ?><?php else: ?><br /><?php endif ?>
    <img src="<?php echo URL ?>modules/comments/images/comment.png" alt="" /> <a href="<?php echo a_url('comments', 'module=blog&amp;item_id='. $post['id'] .'&amp;return='. urlencode(a_url('blog/my'))) ?>">Комментарии</a> (<?php echo $post['comments'] ?>)<br />
    <?php if (a_check_rights($post['user_id'], $post['user_status'])): ?>[<a href="<?php echo a_url('blog/my', 'action=edit&amp;post_id='. $post['id']) ?>">Изменить</a>] [<a href="<?php echo a_url('blog/my', 'action=delete&amp;post_id='. $post['id']) ?>">Удалить</a>]<?php endif ?>
</div>

<div class="block">
    <a href="<?php echo a_url('blog') ?>">Вернуться</a><br />
    <a href="<?php echo URL ?>">На главную</a>
</div>

<?php $this->display('footer') ?>