summaryrefslogtreecommitdiffstats
path: root/templates/show_stats_popular.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 06:03:47 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 06:03:47 +0000
commit46ffeca144b7ef44572a5805061da246c8be5f3c (patch)
tree2b338376bb6e4a77839607131c22f20e6a59cb8d /templates/show_stats_popular.inc.php
parent0d2c89e90d7c64eba058ae375760a350d336578b (diff)
downloadampache-46ffeca144b7ef44572a5805061da246c8be5f3c.tar.gz
ampache-46ffeca144b7ef44572a5805061da246c8be5f3c.tar.bz2
ampache-46ffeca144b7ef44572a5805061da246c8be5f3c.zip
database update, cleaned up some stuff
Diffstat (limited to 'templates/show_stats_popular.inc.php')
-rw-r--r--templates/show_stats_popular.inc.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/show_stats_popular.inc.php b/templates/show_stats_popular.inc.php
new file mode 100644
index 00000000..648945a9
--- /dev/null
+++ b/templates/show_stats_popular.inc.php
@@ -0,0 +1,42 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2007 Ampache.org
+ All rights reserved.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License v2
+ as published by the Free Software Foundation.
+
+ This program 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 this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+*/
+?>
+<div>
+<?php
+ $objects = Stats::get_top('album');
+ $headers = array('f_link'=>_('Most Popular Albums'));
+ show_box_top('','info-box box_popular_albums');
+ require Config::get('prefix') . '/templates/show_objects.inc.php';
+ show_box_bottom();
+
+ $objects = Stats::get_top('artist');
+ $headers = array('f_name_link'=>_('Most Popular Artists'));
+ show_box_top('','info-box box_popular_artists');
+ require Config::get('prefix') . '/templates/show_objects.inc.php';
+ show_box_bottom();
+
+ $objects = Stats::get_top('genre');
+ $headers = array('f_link'=>_('Most Popular Genres'));
+ show_box_top('','info-box box_popular_genres');
+ require Config::get('prefix') . '/templates/show_objects.inc.php';
+ show_box_bottom();
+?>
+</div>