diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-06 05:53:26 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-06 05:53:26 +0000 |
commit | f0addeb4a1700b6ad625726fe8c0793cdafa9fed (patch) | |
tree | ed2e4fef6759867bed8229116ae2e91b3b3da239 /templates/show_artist.inc.php | |
parent | 69b204fb1dcca77c177d3ac5ec7fb686fb5a5b58 (diff) | |
download | ampache-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.php | 48 |
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&type=album&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&type=album_random&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&album=<?php echo $album->id; ?>&artist=<?php echo $artist->id; ?>"> - <img border="0" src="<?php echo $web_path; ?>/image.php?id=<?php echo $album->id; ?>&thumb=1&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&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> |