summaryrefslogtreecommitdiffstats
path: root/templates/show_albums.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-09 16:34:40 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-09 16:34:40 +0000
commitbcad40a05ab2dc2a341a3227e30b96668bce4500 (patch)
tree6fca27588d53a1b24705bd2834e9e643bb729bd1 /templates/show_albums.inc
downloadampache-bcad40a05ab2dc2a341a3227e30b96668bce4500.tar.gz
ampache-bcad40a05ab2dc2a341a3227e30b96668bce4500.tar.bz2
ampache-bcad40a05ab2dc2a341a3227e30b96668bce4500.zip
New Import
Diffstat (limited to 'templates/show_albums.inc')
-rw-r--r--templates/show_albums.inc82
1 files changed, 82 insertions, 0 deletions
diff --git a/templates/show_albums.inc b/templates/show_albums.inc
new file mode 100644
index 00000000..24cc4497
--- /dev/null
+++ b/templates/show_albums.inc
@@ -0,0 +1,82 @@
+<?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.
+
+*/
+/*!
+ @header Show Albums
+ @discussion shows a list of albums
+*/
+
+// Build array of the table classes we are using
+$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>
+ <a href="<?php echo conf('web_path'); ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=album.name&amp;sort_order=0"><?php echo _("Album"); ?></a>
+ </td>
+ <td> <?php echo _("Artist"); ?> </td>
+ <td> <?php echo _("Songs"); ?> </td>
+ <td>
+ <a href="<?php echo conf('web_path'); ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=album.year&amp;sort_order=0"><?php echo _("Year"); ?></>
+ </td>
+ <td> <?php echo _("Action"); ?> </td>
+
+</tr>
+<?php
+/* Foreach through the albums */
+foreach ($albums as $album) {
+?>
+<tr class="<?php echo flip_class(); ?>">
+ <td><?php echo $album->f_name; ?></td>
+ <td><?php echo $album->f_artist; ?></td>
+ <td><?php echo $album->songs; ?></td>
+ <td><?php echo $album->year; ?></td>
+ <td nowrap> <?php echo _("Play"); ?> :
+ <a href="<?php echo conf('web_path'); ?>/song.php?action=m3u&album=<?php echo $album->id; ?>"><?php echo _("All"); ?></a> |
+ <a href="<?php echo conf('web_path'); ?>/song.php?action=m3u&album_random=<?php echo $album->id; ?>"><?php echo _("Random"); ?></a>
+ <?php if( batch_ok() ) { ?>
+ | <a href="<?php echo conf('web_path'); ?>/batch.php?action=alb&id=<?php echo $album->id; ?>"><?php echo _("Download"); ?></a>
+ <?php } ?>
+ </td>
+</tr>
+<?php } ?>
+<tr class="table-header">
+ <td>
+ <a href="<?php echo conf('web_path'); ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=album.name&amp;sort_order=0"><?php echo _("Album"); ?></a>
+ </td>
+ <td> <?php echo _("Artist"); ?> </td>
+ <td> <?php echo _("Songs"); ?> </td>
+ <td> <?php echo _("Year"); ?> </td>
+ <td> <?php echo _("Action"); ?> </td>
+
+</tr>
+<tr class="even" align="center">
+ <td colspan="5">
+ <?php if ($view->offset_limit) { require (conf('prefix') . "/templates/list_header.inc"); } ?>
+ </td>
+</tr>
+</table>
+<br />