Пример #1
0
function show_features_boxes()
{
    global $HTML, $Language;
    $return .= $HTML->box1_top($Language->SYSTEM_STATISTICS, 0);
    $return .= show_sitestats();
    //	$return .= $HTML->box1_middle($Language->SFOS);
    //	$return .= show_sfos();
    $return .= $HTML->box1_middle($Language->TOP_PROJECT_DOWNLOADS);
    $return .= show_top_downloads();
    $return .= $HTML->box1_middle($Language->NEWEST_PROJECTS);
    $return .= show_newest_projects();
    //	$return .= $HTML->box1_middle($Language->HIGHEST_RANKED_USERS);
    //	$return .= show_highest_ranked_users();
    $return .= $HTML->box1_middle($Language->MOST_ACTIVE_THIS_WEEK);
    $return .= show_highest_ranked_projects();
    $return .= $HTML->box1_bottom(0);
    return $return;
}
Пример #2
0
function show_features_boxes()
{
    global $HTML, $sys_use_ratings;
    $return = '';
    $return .= $HTML->boxTop(sprintf(_('%1$s Statistics'), $GLOBALS['sys_name']), 0);
    $return .= show_sitestats();
    $return .= $HTML->boxMiddle(_('Top Project Downloads'));
    $return .= show_top_downloads();
    if ($sys_use_ratings) {
        $return .= $HTML->boxMiddle(_('Highest Ranked Users'));
        $return .= show_highest_ranked_users();
    }
    $return .= $HTML->boxMiddle(_('Most Active This Week'));
    $return .= show_highest_ranked_projects();
    $return .= $HTML->boxMiddle(_('Recently Registered Projects'));
    $return .= show_newest_projects();
    $return .= $HTML->boxBottom(0);
    return $return;
}
Пример #3
0
function show_features_boxes()
{
    global $HTML, $Language;
    $return = "";
    $w = new Widget_Static($GLOBALS['sys_name'] . ' ' . $Language->getText('include_features_boxes', 'stats'));
    $w->setContent(show_sitestats());
    $w->display();
    $w = new Widget_Static($Language->getText('include_features_boxes', 'top_download_yesterday'));
    $w->setContent(show_top_downloads());
    $w->display();
    $w = new Widget_Static($Language->getText('include_features_boxes', 'newest_releases'));
    $w->setContent(show_newest_releases());
    $w->setRssUrl('/export/rss_sfnewreleases.php');
    $w->display();
    $w = new Widget_Static($Language->getText('include_features_boxes', 'newest_projects'));
    $w->setContent(show_newest_projects());
    $w->setRssUrl('/export/rss_sfprojects.php?type=rss&option=newest');
    $w->display();
    $w = new Widget_Static($Language->getText('include_features_boxes', 'most_active_week'));
    $w->setContent(show_highest_ranked_projects());
    $w->display();
}
<?php

/**
 * Copyright (c) Enalean 2011. All rights reserved
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */
?>
    <h3><?php 
echo $GLOBALS['sys_name'];
?>
 Statistics</h3>
    <p><?php 
echo show_sitestats();
?>
</p>