Exemplo n.º 1
0
    // This is here again on purpose because sometimes the pager
    // must correct this value.
    $f_comment_start_inbox = camp_session_get('f_comment_start_inbox', 0);
    $f_comment_start_archive = camp_session_get('f_comment_start_archive', 0);

    if ($f_comment_screen == 'inbox') {
        $comments = ArticleComment::GetComments('unapproved', false,
                                                $f_comment_search,
                                                array('ORDER BY' => array($f_comment_order_by => $f_comment_order_direction),
                                                      'LIMIT' => array('START'=> $f_comment_start_inbox,
                                                                       'MAX_ROWS' => $f_comment_per_page)));
    } elseif ($f_comment_screen == 'archive') {
        $comments = ArticleComment::GetComments('approved', false,
                                                $f_comment_search,
                                                array('ORDER BY' => array($f_comment_order_by => $f_comment_order_direction),
                                                      'LIMIT' => array('START'=> $f_comment_start_archive,
                                                                       'MAX_ROWS' => $f_comment_per_page)));
    }
}

$crumbs = array();
$crumbs[] = array(getGS("Content"), "");
$crumbs[] = array(getGS("Comments"), "");
echo camp_html_content_top(getGS('Comments'), null);

?>
<script type="text/javascript" src="<?php echo $Campsite['WEBSITE_URL']; ?>/js/campsite.js"></script>

<?php camp_html_display_msgs("0.25em", "0.25em"); ?>