summaryrefslogtreecommitdiffstats
path: root/templates/show_albums.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-13 18:38:19 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-13 18:38:19 +0000
commit1a6ae62569dbc5603a361a488641950cc317ac3d (patch)
tree130afc63e183c49559572e0ccf93f5cdcd89d7cf /templates/show_albums.inc.php
parentdccdeba838129a5a3805c7669ec0a6328269f738 (diff)
downloadampache-1a6ae62569dbc5603a361a488641950cc317ac3d.tar.gz
ampache-1a6ae62569dbc5603a361a488641950cc317ac3d.tar.bz2
ampache-1a6ae62569dbc5603a361a488641950cc317ac3d.zip
flushed out the album view and added a few more features removed unused icons
Diffstat (limited to 'templates/show_albums.inc.php')
-rw-r--r--templates/show_albums.inc.php24
1 files changed, 19 insertions, 5 deletions
diff --git a/templates/show_albums.inc.php b/templates/show_albums.inc.php
index 1339498f..f884b57d 100644
--- a/templates/show_albums.inc.php
+++ b/templates/show_albums.inc.php
@@ -32,6 +32,7 @@ $ajax_url = Config::get('ajax_url');
<th><?php echo _('Artist'); ?></th>
<th><?php echo _('Songs'); ?></th>
<th><?php echo _('Year'); ?></th>
+ <th><?php echo _('Actions'); ?></th>
</tr>
<?php
/* Foreach through the albums */
@@ -39,14 +40,27 @@ $ajax_url = Config::get('ajax_url');
$album = new Album($album_id);
$album->format();
?>
-<tr class="<?php echo flip_class(); ?>">
- <td 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'); ?>
+<tr id="album_<?php echo $album->id; ?>" class="<?php echo flip_class(); ?>">
+ <td>
+ <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'); ?>
+ </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'); ?>
+ </span>
</td>
- <td><?php echo $album->f_name; ?></td>
+ <td><?php echo $album->f_name_link; ?></td>
<td><?php echo $album->f_artist; ?></td>
- <td><?php echo $album->songs; ?></td>
+ <td><?php echo $album->song_count; ?></td>
<td><?php echo $album->year; ?></td>
+ <td>
+ <a href="<?php echo Config::get('web_path'); ?>/batch.php?action=album&amp;id=<?php echo $album->id; ?>">
+ <?php echo get_user_icon('batch_download'); ?>
+ </a>
+ <span onclick="ajaxPut('<?php echo Config::get('ajax_url'); ?>?action=album&amp;type=edit&amp;id=<?php echo $album->id; ?>');return true;" >
+ <?php echo get_user_icon('edit'); ?>
+ </span>
+ </td>
</tr>
<?php } //end foreach ($albums as $album) ?>
</table>