summaryrefslogtreecommitdiffstats
path: root/templates/show_genres.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-16 07:00:01 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-16 07:00:01 +0000
commit39ea881cc5ec586b70650246b7fc1471e5fcca8a (patch)
tree039078e1c44253b066efdac73c659bba7b785989 /templates/show_genres.inc.php
parent3d1fbbfb7491bcab9d32b017d2c09dcea7b7b14f (diff)
downloadampache-39ea881cc5ec586b70650246b7fc1471e5fcca8a.tar.gz
ampache-39ea881cc5ec586b70650246b7fc1471e5fcca8a.tar.bz2
ampache-39ea881cc5ec586b70650246b7fc1471e5fcca8a.zip
initial placeholder stuff for genre browsing
Diffstat (limited to 'templates/show_genres.inc.php')
-rw-r--r--templates/show_genres.inc.php55
1 files changed, 55 insertions, 0 deletions
diff --git a/templates/show_genres.inc.php b/templates/show_genres.inc.php
new file mode 100644
index 00000000..cf9faf72
--- /dev/null
+++ b/templates/show_genres.inc.php
@@ -0,0 +1,55 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2005 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
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ 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.
+
+*/
+
+/**
+ * Show Genres
+ * Takes an array of genre objects and displays them out
+ */
+$total_items = $view->total_items;
+?>
+<table class="border" cellspacing="0" cellpadding="0" border="0">
+<tr class="even" align="center">
+ <td colspan="5">
+ <?php if ($view->offset_limit) { require (conf('prefix') . "/templates/list_header.inc"); } ?>
+ </td>
+</tr>
+<tr class="table-header">
+ <td><?php echo _("Genre"); ?></td>
+ <td><?php echo _("Songs"); ?></td>
+ <td><?php echo _("Action"); ?></td>
+</tr>
+<?php
+ foreach ($genres as $genre) {
+
+?>
+<tr>
+ <td><?php echo $genre->link; ?></td>
+ <td><?php echo $genre->get_song_count(); ?></td>
+ <td>Play | Download</td>
+</tr>
+<? } // end foreach genres ?>
+<tr class="even" align="center">
+ <td colspan="5">
+ <?php if ($view->offset_limit) { require (conf('prefix') . "/templates/list_header.inc"); } ?>
+ </td>
+</tr>
+</table>