コード例 #1
0
$self = basename(__FILE__);
$self_params = $self.'?';
if ($f_entry_id) $self_params .= "f_entry_id=$f_entry_id&";
if ($f_start)    $self_params .= "f_start=$f_start&";

$BlogCommentsList = new BlogCommentsList($f_start, $parameters);
$total = $BlogCommentsList->getTotalCount();
$count = $BlogCommentsList->getLength();
$pager = new SimplePager($total, $f_length, "f_start", "index.php?f_order=$f_order&", false);

$TotalList = new BlogCommentsList();
$total = $TotalList->count;

if ($f_entry_id) {
    $BlogEntry = new BlogEntry($f_entry_id);
    $Blog = $BlogEntry->getBlog();
    echo camp_html_breadcrumbs(array(
        array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'),
        array(getGS('Blogs'), $Campsite['WEBSITE_URL'] . '/admin/blog/admin/list_blogs.php'),
        array($Blog->getSubject(), 'list_entries.php?f_blog_id=' . $BlogEntry->getProperty('fk_blog_id')),
        array(getGS('List comments') . ': ' . $BlogEntry->getSubject(), ''),
    ));
} else {
    echo camp_html_breadcrumbs(array(
        array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'),
        array(getGS('Blogs'), $Campsite['WEBSITE_URL'] . '/admin/blog/admin/list_blogs.php'),
        array(getGS('List all comments'), ''),
    ));
}

include_once($GLOBALS['g_campsiteDir']."/$ADMIN_DIR/javascript_common.php");