Exemplo n.º 1
0
	</div>
	
<div class="panel-body">

<p class="col-md-5"><i class="fa fa-tablet fa-fw"></i><b>Topic Title</p>
<p class="col-md-2"><i class="fa fa-thumb-tack fa-fw"></i>Posts</p>
<p class="col-md-2"><i class="fa fa-reply fa-fw"></i>Replies</p>
<p class="col-md-3"><i class="fa fa-calendar fa-fw"></i>Date Created</b></p>';
        while ($tpc = $topicresults->fetch_assoc()) {
            if ($row['forumCatID'] == $tpc['forumCatID']) {
                echo '';
                echo '<p class="col-md-5"><a href="forum.php?page=topic&action=display&topicid=' . $tpc["topicID"] . '"><i class="fa fa-link fa-fw"></i>' . $tpc["topicTitle"] . '</p></a>';
                include_once "query.php";
                $q = new query();
                $post = $tpc["topicID"];
                $post = $q->posts($post);
                $reply = $tpc["topicID"];
                $reply = $q->replies($reply);
                echo '<p class="col-md-2" ><i class="fa fa-thumb-tack fa-fw"></i>&nbsp;&nbsp;&nbsp;' . $post . ' </p>';
                echo '<p class="col-md-2"><i class="fa fa-reply fa-fw"></i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $reply . '</p>';
                echo '<p class="col-md-3">&nbsp;' . $tpc["dateCreated"] . '</p>';
            } else {
            }
        }
        echo '</div>
	</div>
	</div>		
</div>
</div>
</div></div></div></div>';
    }