summaryrefslogtreecommitdiffstats
path: root/templates/show_stats.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-02 03:23:38 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-02 03:23:38 +0000
commit181e8dfe223b4b5e7ba0dbabeb7ca5c12a58454c (patch)
tree453718179c31263049bf27a86c7756df9600af55 /templates/show_stats.inc.php
parent7a529eeb8af2b1d61e0d82066d9a6aa36e02c09f (diff)
downloadampache-181e8dfe223b4b5e7ba0dbabeb7ca5c12a58454c.tar.gz
ampache-181e8dfe223b4b5e7ba0dbabeb7ca5c12a58454c.tar.bz2
ampache-181e8dfe223b4b5e7ba0dbabeb7ca5c12a58454c.zip
add some additional stats to the catalog stats page
Diffstat (limited to 'templates/show_stats.inc.php')
-rw-r--r--templates/show_stats.inc.php50
1 files changed, 47 insertions, 3 deletions
diff --git a/templates/show_stats.inc.php b/templates/show_stats.inc.php
index a02571ec..b490851d 100644
--- a/templates/show_stats.inc.php
+++ b/templates/show_stats.inc.php
@@ -19,8 +19,10 @@
*/
$stats = Catalog::get_stats();
+$catalogs = Catalog::get_catalogs();
?>
-<?php show_box_top(_('Catalog Statistics')); ?>
+<?php show_box_top(_('Statistics')); ?>
+<em><?php echo _('Catalogs'); ?></em>
<table class="tabledata" cellpadding="3" cellspacing="1">
<tr class="th-top">
<th><?php echo _('Connected Users'); ?></th>
@@ -28,7 +30,8 @@ $stats = Catalog::get_stats();
<th><?php echo _('Albums'); ?></th>
<th><?php echo _('Artists'); ?></th>
<th><?php echo _('Songs'); ?></th>
- <th><?php echo _('Genres'); ?></th>
+ <th><?php echo _('Video'); ?></th>
+ <th><?php echo _('Tags'); ?></th>
<th><?php echo _('Catalog Size'); ?></th>
<th><?php echo _('Catalog Time'); ?></th>
</tr>
@@ -38,9 +41,50 @@ $stats = Catalog::get_stats();
<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['video']; ?></td>
+ <td><?php echo $stats['tags']; ?></td>
<td><?php echo $stats['total_size']; ?> <?php echo $stats['size_unit']; ?></td>
<td><?php echo $stats['time_text']; ?></td>
</tr>
</table>
+<hr />
+<table class="tabledata" cellpadding="0" cellspacing="0">
+<colgroup>
+ <col id="col_catalog" />
+ <col id="col_path" />
+ <col id="col_lastverify" />
+ <col id="col_lastadd" />
+ <col id="col_lastclean" />
+ <col id="col_songs" />
+ <col id="col_video" />
+ <col id="col_total" />
+</colgroup>
+<tr class="th-top">
+ <th class="cel_catalog"><?php echo _('Name'); ?></th>
+ <th class="cel_path"><?php echo _('Path'); ?></th>
+ <th class="cel_lastverify"><?php echo _('Last Verify'); ?></th>
+ <th class="cel_lastadd"><?php echo _('Last Add'); ?></th>
+ <th class="cel_lastclean"><?php echo _('Last Clean'); ?></th>
+ <th class="cel_songs"><?php echo _('Songs'); ?></th>
+ <th class="cel_video"><?php echo _('Video'); ?></th>
+ <th class="cel_total"><?php echo _('Catalog Size'); ?></th>
+</tr>
+<?php foreach ($catalogs as $catalog_id) {
+ $catalog = new Catalog($catalog_id);
+ $catalog->format();
+ $stats = Catalog::get_stats($catalog_id);
+?>
+<tr>
+ <td class="cel_catalog"><?php echo $catalog->name; ?></td>
+ <td class="cel_path"><?php echo scrub_out($catalog->f_path); ?></td>
+ <td class="cel_lastverify"><?php echo scrub_out($catalog->f_update); ?></td>
+ <td class="cel_lastadd"><?php echo scrub_out($catalog->f_add); ?></td>
+ <td class="cel_lastclean"><?php echo scrub_out($catalog->f_clean); ?></td>
+ <td class="cel_songs"><?php echo scrub_out($stats['songs']); ?></td>
+ <td class="cel_video"><?php echo scrub_out($stats['video']); ?></td>
+ <td class="cel_total"><?php echo scrub_out($stats['total_size'] . ' ' . $stats['size_unit']); ?></td>
+</tr>
+<?php } ?>
+
+</table>
<?php show_box_bottom(); ?>