Esempio n. 1
0
            <div class="medium-1 columns"></div>
            <div class="medium-1 columns" id="space">&nbsp;</div>
        </div>

        <div class="row" id="forum">
            <div class="medium-1 columns" id="space">&nbsp;</div>
            <div class="medium-4 columns"><?php 
    echo 'Reply on ' . displayTitle($thispost->title);
    ?>
</div>
            <div class="medium-2 columns"><?php 
    echo displayCreator($user->_userIdtoUsername($reply['user_id']));
    ?>
</div>
            <div class="medium-2 columns"><?php 
    echo stampToText($reply['date_created']);
    ?>
</div>
            <div class="medium-1 columns"><?php 
    echo $reply['id'];
    ?>
</div>
            <div class="medium-1 columns"><a href="<?php 
    echo BASE_URL . 'index.php?c=post&a=deletepost&id=' . $reply['id'];
    ?>
"><img src=" <?php 
    echo BASE_URL . 'img/delete.png';
    ?>
" width="20" height="20" alt="Delete"/></a></div>
            <div class="medium-1 columns" id="space">&nbsp;</div>
        </div>
Esempio n. 2
0
    echo BASE_URL . 'index.php?c=user&a=viewpost&id=' . $rows['id'];
    ?>
"><?php 
    echo displayTitle($rows['title']);
    ?>
</a></div>
            <div class="medium-1 columns"><?php 
    echo Post::viewCountViews($rows['id']);
    ?>
</div>
            <div class="medium-1 columns"><?php 
    echo $postsmodel->countRepliesTopPostsByPostId($rows['id']);
    ?>
</div>
            <div class="medium-2 columns"><?php 
    echo stampToText($postsmodel->timeLastPostInTopPost($rows['id']));
    ?>
</div>
            <div class="medium-1 columns" id="space">&nbsp;</div>
        <?php 
}
?>
    </div>

    <div class="row">
        <div class="medium-1 columns" id="space">&nbsp;</div>
        <div class="medium-10 columns">
            <a id="backbutton" class="tiny button" href="<?php 
echo BASE_URL . 'index.php?c=user&a=viewcreatetoppost&id=' . $_GET['id'];
?>
">New Post</a>
Esempio n. 3
0
    <div class="row" id="header">
        <div class="medium-1 columns" id="space">&nbsp;</div>
        <div class="medium-1 columns">&nbsp;</div>
        <div class="medium-6 columns">Title</div>
        <div class="medium-1 columns">Replies</div>
        <div class="medium-2 columns">Last post</div>
        <div class="medium-1 columns" id="space">&nbsp;</div>
    </div>

    <div class="row" id="forum">
        <?php 
foreach ($posts as $rows) {
    echo '<div class="medium-1 columns" id="space">&nbsp;</div>';
    echo '<div class="medium-1 columns">' . '<img src="' . BASE_URL . 'img/post.png' . '" width="20" height="20" alt="Post"/>' . '</div>';
    echo '<div class="medium-6 columns">' . '<a href="' . BASE_URL . 'index.php?c=user&a=viewpublicpost&id=' . $rows['id'] . '">' . displayTitle($rows['title']) . '</a></div>';
    echo '<div class="medium-1 columns">' . $postsmodel->countRepliesTopPostsByPostId($rows['id']) . '</div>';
    echo '<div class="medium-2 columns">' . stampToText($postsmodel->timeLastPostInTopPost($rows['id'])) . '</div>';
    echo '<div class="medium-1 columns" id="space">&nbsp;</div>';
}
?>
    </div>

    <div class="row">
        <div class="medium-1 columns" id="space">&nbsp;</div>
        <div class="medium-10 columns"><a id="backbutton" class="button tiny" href="<?php 
echo slink('main', 'viewmainpage');
?>
">Back </a></div>
        <div class="medium-1 columns" id="space">&nbsp;</div>
    </div>
Esempio n. 4
0
    <div class="row" id="forum">
        <div class="medium-1 columns" id="space">&nbsp;</div>
        <div class="medium-3 columns"><?php 
echo displayTitle($thispost->title);
?>
</div>
        <div class="medium-1 columns"><?php 
echo Post::viewCountViews($thispost->id);
?>
</div>
        <div class="medium-2 columns"><?php 
echo displayCreator($this->_userIdtoUsername($thispost->user_id));
?>
</div>
        <div class="medium-2 columns"><?php 
echo stampToText($thispost->date_created);
?>
</div>
        <div class="medium-1 columns"><?php 
echo $thispost->id;
?>
</div>
        <div class="medium-1 columns"><a href="<?php 
echo BASE_URL . 'index.php?c=post&a=deletetoppost&id=' . $thispost->id;
?>
"><img src="<?php 
echo BASE_URL . 'img/delete.png';
?>
" width="20" height="20" alt="Delete"/></a></div>
        <div class="medium-1 columns" id="space">&nbsp;</div>
    </div>
Esempio n. 5
0
                    <th>Moderator</th>
                    <th>Created on</th>
                    <th>Public</th>
                    <th>Locked</th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <?php 
foreach ($data as $category) {
    echo '<tr>';
    echo '<td>' . displayTitle($category['title']) . '</td>';
    echo '<td>' . displayDescription($category['description']) . '</td>';
    echo '<td>' . displayModerator(ucfirst($this->_userIdToUsername($category['moderator_id']))) . '</td>';
    echo '<td>' . stampToText($category['date_created']) . '</td>';
    echo '<td>' . intToImg($category['view_public']) . '</td>';
    echo '<td>' . intToImg($category['is_locked']) . '</td>';
    echo '<td>' . '<a href="' . BASE_URL . 'index.php?c=user&a=editcategory&id=' . $category['id'] . '"><img src="' . BASE_URL . 'img/edit.png' . '" width="20" height="20" alt="Edit"/></a></td>';
    echo '<td>' . '<a href="' . BASE_URL . 'index.php?c=category&a=deletecategory&id=' . $category['id'] . '"><img src="' . BASE_URL . 'img/delete.png' . '" width="20" height="20" alt="Delete"/></a></td>';
    echo '</tr>';
}
?>
            </tbody>
        </table>
        <?php 
if ($pagination->total_pages() > 1) {
    // If there is more than 1 page, show pagination
    echo '<div class="pagination">';
    echo '<ul class="pagination">';
    if ($pagination->has_previous_page()) {