Размер файла: 1.86Kb
<?php $this->display('header', array('sub_title' => $title)) ?>
<div class="title"><img src="<?php echo URL ?>views/<?php echo THEME ?>/img/titl.gif" class="ico" alt="" /><b><?php echo $title ?></b></div>
<?php if($error): ?>
<div class="error">
<?php echo $error ?>
</div>
<?php endif ?>
<form action="<?php echo a_url('forum/posting', 'new_topic='. @$_GET['new_topic'] .'&forum_id='. @$_GET['forum_id'] .'&topic_id='. @$_GET['topic_id'] .'&message_id='. $_GET['message_id']) ?>" method="post">
<div class="menu">
<?php if($action == 'new_topic'): ?>
Тема:<br />
<input name="topic_name" class="input" type="text" value="<?php echo @$topic_name ?>" /><br />
<?php endif; ?>
Сообщение:<br />
<textarea name="message" rows="5" cols="20"><?php echo @$message_text ?></textarea><br />
<?php if(USER_ID == -1): ?>
Введите код с картинки:<br />
<img src="<?php echo URL ?>utils/captcha.php" /><br />
<input name="captcha_code" type="text" value="" /><br />
<?php endif; ?>
<input type="submit" name="submit" value="<?php echo (strpos($action, 'edit') === FALSE ? 'Отправить' : 'Изменить') ?>" />
</div>
</form>
<div class="block">
<a href="<?php echo a_url('smiles', 'return_name='. urlencode('К сообщению') .'&return_url='. urlencode(a_url('forum/posting', 'new_topic='. @$_GET['new_topic'] .'&forum_id='. @$_GET['forum_id'] .'&topic_id='. @$_GET['topic_id'] .'&message_id='. $_GET['message_id'], TRUE))) ?>">Смайлы</a><br />
<a href="<?php echo a_url('main/bbcode', 'return_name='. urlencode('К сообщению') .'&return_url='. urlencode(a_url('forum/posting', 'new_topic='. @$_GET['new_topic'] .'&forum_id='. @$_GET['forum_id'] .'&topic_id='. @$_GET['topic_id'] .'&message_id='. $_GET['message_id'], TRUE))) ?>">Теги (bbcode)</a>
</div>
<?php $this->display('footer') ?>