diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-09 08:29:50 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-09 08:29:50 +0000 |
commit | 11f28a1d4a752fc9aa29699c1c129e0c723fb8b7 (patch) | |
tree | f4beb32befc2972e9ea36a9a81c49bfb3f9459a3 /templates/show_album.inc.php | |
parent | af2ff07a8174ac2796fa45337bcc5c70d870e0b1 (diff) | |
download | ampache-11f28a1d4a752fc9aa29699c1c129e0c723fb8b7.tar.gz ampache-11f28a1d4a752fc9aa29699c1c129e0c723fb8b7.tar.bz2 ampache-11f28a1d4a752fc9aa29699c1c129e0c723fb8b7.zip |
made it so you could alpha_match search on artists
Diffstat (limited to 'templates/show_album.inc.php')
-rw-r--r-- | templates/show_album.inc.php | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/templates/show_album.inc.php b/templates/show_album.inc.php new file mode 100644 index 00000000..72c39ca5 --- /dev/null +++ b/templates/show_album.inc.php @@ -0,0 +1,60 @@ +<?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. + +*/ + +$web_path = Config::get('web_path'); + +// Title for this album +$title = scrub_out($album->name) . ' -- ' . $album->f_artist; +?> +<?php show_box_top($title); ?> + <div style="float:left;display:table-cell;width:140px;"> + <?php + if ($album_name != "Unknown (Orphaned)") { + $aa_url = $web_path . "/image.php?id=" . $album->id . "&type=popup&sid=" . session_id(); + echo "<a target=\"_blank\" href=\"$aa_url\" onclick=\"popup_art('$aa_url'); return false;\">"; + echo "<img border=\"0\" src=\"" . $web_path . "/image.php?id=" . $album->id . "&thumb=2&sid=" . session_id() . "\" alt=\"Album Art\" height=\"128\" />"; + echo "</a>\n"; + } + ?> + </div> + <div style="display:table-cell;vertical-align:top;"> + <?php + if (Config::get('ratings')) { + echo "<div style=\"float:left; display:inline;\" id=\"rating_" . $album->id . "_album\">"; + show_rating($album->id, 'album');} // end if ratings + echo "</div>"; + echo "<br />\n"; + ?> + <strong><?php echo _('Actions'); ?>:</strong><br /> + <a href="<?php echo $web_path; ?>/stream.php?action=album&album_id=<?php echo $album->id; ?>"><?php echo _("Play Album"); ; ?></a><br /> + <a href="<?php echo $web_path; ?>/stream.php?action=album_random&album_id=<?php echo $album->id; ?>"><?php echo _("Play Random from Album"); ; ?></a><br /> + <?php if ( ($GLOBALS['user']->has_access('75')) || (!Config::get('use_auth'))) { ?> + <a href="<?php echo $web_path; ?>/albums.php?action=clear_art&album_id=<?php echo $album->id; ?>"><?php echo _("Reset Album Art"); ; ?></a><br /> + <?php } ?> + <a href="<?php echo $web_path; ?>/albums.php?action=find_art&album_id=<?php echo $album->id; ?>"><?php echo _("Find Album Art"); ; ?></a><br /> + <?php if (($GLOBALS['user']->has_access('100')) || (!Config::get('use_auth'))) { ?> + <a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&album_id=<?php echo $album->id; ?>"><?php echo _("Update from tags"); ?></a><br /> + <?php } ?> + <?php if (Access::check_function('batch_download')) { ?> + <a href="<?php echo $web_path; ?>/batch.php?action=alb&id=<?php echo $album->id; ?>"><?php echo _('Download'); ?></a><br /> + <?php } ?> + </div> +<?php show_box_bottom(); ?> |