Exemplo n.º 1
0
                        <input type="password" class="form-control" name="password" placeholder="Password" required>
                        <label class="checkbox pull-left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="remember" value="rememberme">Remember me</label>
                        <button class="btn btn-lg btn-primary btn-block" type="submit">Login</button>
                    </form>
                </div>
                <ul class="nav nav-tabs nav-stacked" role="tablist">
                    <li role="presentation" align="center"><a href="registration.php" aria-controls="registration" align="center" role="tab" data-toggle="tab"><b align="center">&nbsp&nbsp&nbsp&nbspCreate new account</b></b></a></li>
                </ul>
            </div>
        </div>
        <div class="col-md-6 col-sm-6">
            <div class="well">
                <h2 align="center"> All public posts</h2>
            </div>
            <?php 
$posts = $fontend_object->publicPosts();
if ($posts->num_rows > 0) {
    while ($row = $posts->fetch_assoc()) {
        ?>
                <div class="well">
                    <h2 style="" class="form-control">Category:<b><?php 
        echo toUpperCase($row['category_name']);
        ?>
</b></h2>
                    <h2 style="" class="form-control">Author:<b><?php 
        echo $row['name'];
        ?>
</b></h2>
                    <h2 style="" class="form-control">Title:<b><?php 
        echo $row['post_title'];
        ?>