<!--<?php
if($page==1){print <<<EOT
-->
<p>{#title}:$rt[subject]</p>
<p>{#author}:$rt[author]</p>
<p>{#date}:$rt[postdate]</p>
<p>{#content}:$rt[content]<br/></p>
<!--
EOT;
}if($postdb){print <<<EOT
-->
<p>{#reply}:</p>
<!--
EOT;
foreach($postdb as $key=>$val){print <<<EOT
-->
<p>$val[id].$val[subject]</p>
<p>$val[content]</p>
<p>$val[postdate]</p>
<p>$val[author]<br/></p>
<!--
EOT;
}}print <<<EOT
-->
<p><a href="read.php?tid=$tid&amp;page=$pre">{#wap_pre}</a> <a href="read.php?tid=$tid&amp;page=$next">{#wap_next}</a></p>
<p><a href="post.php?action=reply&amp;tid=$tid">{#wap_reply}</a></p>
<!--
EOT;
?>-->