<?php
$r=0;
if ($index->topic_forum_details("locked")==0 OR $login->check_rights()>=$locked_forums_writing_rights):
if ($index->topic_details("locked")==0 OR $login->check_rights()>=$locked_topics_writing_rights):
if ($index->topic_forum_details("write_ntbl")==0 OR isset($_SESSION["user_id"])):
$r=1;
?>

<div class="post-1"><?php echo $formating->apply_on($index->post_details("text")); ?></div>

<div class="post-bottom-corners-1"><!-- --></div>

<form action="./index.php?action=response&amp;p_id=<?php echo intval($_GET["p_id"]); ?>&amp;t_id=<?php echo($_GET["t_id"]); ?>&amp;f_id=<?php echo($_GET["f_id"]); ?>" method="post">

<div class="ul-border">

<h2>Reakce na tento příspěvek</h2>

<script src="./components/formater.js" type="text/javascript"></script>

<div><textarea name="text" id="post-textarea" style="height: 100px; width: 915px;" rows="" cols=""></textarea></div>

<div class="display-none"><input type="text" name="robot" value="www" id="robot" /></div>

<script type="text/javascript">
/* <![CDATA[ */
document.getElementById("robot").value="";
/* ]]> */
</script>

</div>

<div class="ul-bottom-corners"><!-- --></div>

<div class="buttons">
<div class="float-left">
<?php $index->print_format_buttons(); ?>
</div>
<div class="float-right"><input type="reset" value="Reset" class="button" /> <input type="submit" name="submit" value="<?php echo LANG_SEND; ?>" class="button" /></div>
<div class="float-ending"><!-- --></div>
</div>

</form>
<?php
endif;
endif;
endif;
if ($r==0) echo "<h2>".LANG_YOU_HAVE_NOT_ACCESS_TO_THIS_SECTION."</h2>";
?>