diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-07-16 07:00:01 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-07-16 07:00:01 +0000 |
commit | 39ea881cc5ec586b70650246b7fc1471e5fcca8a (patch) | |
tree | 039078e1c44253b066efdac73c659bba7b785989 /templates | |
parent | 3d1fbbfb7491bcab9d32b017d2c09dcea7b7b14f (diff) | |
download | ampache-39ea881cc5ec586b70650246b7fc1471e5fcca8a.tar.gz ampache-39ea881cc5ec586b70650246b7fc1471e5fcca8a.tar.bz2 ampache-39ea881cc5ec586b70650246b7fc1471e5fcca8a.zip |
initial placeholder stuff for genre browsing
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_browse_menu.inc | 6 | ||||
-rw-r--r-- | templates/show_genres.inc.php | 55 |
2 files changed, 58 insertions, 3 deletions
diff --git a/templates/show_browse_menu.inc b/templates/show_browse_menu.inc index a36b24e7..63b7b4fb 100644 --- a/templates/show_browse_menu.inc +++ b/templates/show_browse_menu.inc @@ -32,9 +32,9 @@ $web_path = conf('web_path'); $items = array( - _("Artist") => "$web_path/browse.php?action=artist", - _("Albums") => "$web_path/browse.php?action=albums", - _("Genre") => "$web_path/browse.php?action=genre", + _("Artist") => "$web_path/artists.php", + _("Albums") => "$web_path/albums.php", + _("Genre") => "$web_path/genres.php", ); ?> 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> |