diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-03-02 01:39:10 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-03-02 01:39:10 +0000 |
commit | 7a529eeb8af2b1d61e0d82066d9a6aa36e02c09f (patch) | |
tree | cafd383d330cd5e0e643a0593ac7e867ca7b4dd8 /templates/show_stats.inc.php | |
parent | a313222ab7b51df79469c6082a856463248006e9 (diff) | |
download | ampache-7a529eeb8af2b1d61e0d82066d9a6aa36e02c09f.tar.gz ampache-7a529eeb8af2b1d61e0d82066d9a6aa36e02c09f.tar.bz2 ampache-7a529eeb8af2b1d61e0d82066d9a6aa36e02c09f.zip |
move around stats information and split it up, tweak quicktime tag detection
Diffstat (limited to 'templates/show_stats.inc.php')
-rw-r--r-- | templates/show_stats.inc.php | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/templates/show_stats.inc.php b/templates/show_stats.inc.php index f4f6da6f..a02571ec 100644 --- a/templates/show_stats.inc.php +++ b/templates/show_stats.inc.php @@ -18,10 +18,29 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +$stats = Catalog::get_stats(); ?> -<?php show_box_top(_('Statistics')); ?> -<?php require_once Config::get('prefix') . '/templates/show_local_catalog_info.inc.php'; ?> -<?php require_once Config::get('prefix') . '/templates/show_stats_newest.inc.php'; ?> - - +<?php show_box_top(_('Catalog Statistics')); ?> +<table class="tabledata" cellpadding="3" cellspacing="1"> +<tr class="th-top"> + <th><?php echo _('Connected Users'); ?></th> + <th><?php echo _('Total Users'); ?></th> + <th><?php echo _('Albums'); ?></th> + <th><?php echo _('Artists'); ?></th> + <th><?php echo _('Songs'); ?></th> + <th><?php echo _('Genres'); ?></th> + <th><?php echo _('Catalog Size'); ?></th> + <th><?php echo _('Catalog Time'); ?></th> +</tr> +<tr> + <td><?php echo $stats['connected']; ?></td> + <td><?php echo $stats['users'] ?></td> + <td><?php echo $stats['albums']; ?></td> + <td><?php echo $stats['artists']; ?></td> + <td><?php echo $stats['songs']; ?></td> + <td><?php echo $stats['genres']; ?></td> + <td><?php echo $stats['total_size']; ?> <?php echo $stats['size_unit']; ?></td> + <td><?php echo $stats['time_text']; ?></td> +</tr> +</table> <?php show_box_bottom(); ?> |