summaryrefslogtreecommitdiffstats
path: root/templates/show_artist.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 05:53:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 05:53:26 +0000
commitf0addeb4a1700b6ad625726fe8c0793cdafa9fed (patch)
treeed2e4fef6759867bed8229116ae2e91b3b3da239 /templates/show_artist.inc.php
parent69b204fb1dcca77c177d3ac5ec7fb686fb5a5b58 (diff)
downloadampache-f0addeb4a1700b6ad625726fe8c0793cdafa9fed.tar.gz
ampache-f0addeb4a1700b6ad625726fe8c0793cdafa9fed.tar.bz2
ampache-f0addeb4a1700b6ad625726fe8c0793cdafa9fed.zip
added ability to view album art on browse ablums and removed redundent code in show_artist, props to the first person who finds the bug with this re-use of code
Diffstat (limited to 'templates/show_artist.inc.php')
-rw-r--r--templates/show_artist.inc.php48
1 files changed, 3 insertions, 45 deletions
diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php
index 17558b42..ae5d5006 100644
--- a/templates/show_artist.inc.php
+++ b/templates/show_artist.inc.php
@@ -23,49 +23,7 @@ $web_path = Config::get('web_path');
require Config::get('prefix') . '/templates/show_artist_box.inc.php';
-show_box_top();
?>
-<table class="tabledata" cellspacing="0" cellpadding="0" border="0">
-<tr class="table-header">
- <th align="center"><?php echo _('Add'); ?></th>
- <th><?php echo _('Cover'); ?></th>
- <th><?php echo _('Album Name'); ?></th>
- <th><?php echo _('Album Year'); ?></th>
- <th><?php echo _('Tracks'); ?></th>
- <th><?php echo _('Action'); ?></th>
-</tr>
-<?php
-foreach ($albums as $album_id) {
- $album = new Album($album_id);
- $album->format();
-?>
-<tr class="<?php echo flip_class(); ?>">
- <td align="center">
- <span onclick="ajaxPut('<?php echo Config::get('ajax_url'); ?>?action=basket&amp;type=album&amp;id=<?php echo $album->id; ?>');return true;" >
- <?php echo get_user_icon('add',_('Add')); ?>
- </span>
- <span onclick="ajaxPut('<?php echo Config::get('ajax_url'); ?>?action=basket&amp;type=album_random&amp;id=<?php echo $album->id; ?>');return true;" >
- <?php echo get_user_icon('random',_('Random')); ?>
- </span>
- </td>
- <td height="87">
- <a href="<?php echo $web_path; ?>/albums.php?action=show&amp;album=<?php echo $album->id; ?>&amp;artist=<?php echo $artist->id; ?>">
- <img border="0" src="<?php echo $web_path; ?>/image.php?id=<?php echo $album->id; ?>&amp;thumb=1&amp;sid=<?php echo session_id(); ?>" alt="<?php echo scrub_out($album->name); ?>" title="<?php echo scrub_out($album->name); ?>" height="75" width="75" />
- </a>
- </td>
- <td>
- <?php echo $album->f_name_link; ?>
- </td>
- <td><?php echo $album->year; ?></td>
- <td><?php echo $album->song_count; ?></td>
- <td>
- <?php if (Access::check_function('batch_download')) { ?>
- <a href="<?php echo $web_path; ?>/batch.php?action=album&amp;id=<?php echo $album->id; ?>">
- <?php echo get_user_icon('batch_download'); ?>
- </a>
- <?php } ?>
- </td>
-</tr>
-<?php } //end foreach ($albums as $album)?>
-</table>
-<?php show_box_bottom(); ?>
+<div id="browse_content">
+<?php Browse::set_type('album'); Browse::show_objects($albums); ?>
+</div>