diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-07 07:20:01 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-07 07:20:01 +0000 |
commit | af2ff07a8174ac2796fa45337bcc5c70d870e0b1 (patch) | |
tree | 9ebaecb008ef72d3b07cc1984de6e8249a13719a /templates/show_artist.inc.php | |
parent | 96334a0e8c1c59077e6f9c067dbdee14f6b07be7 (diff) | |
download | ampache-af2ff07a8174ac2796fa45337bcc5c70d870e0b1.tar.gz ampache-af2ff07a8174ac2796fa45337bcc5c70d870e0b1.tar.bz2 ampache-af2ff07a8174ac2796fa45337bcc5c70d870e0b1.zip |
- Fixed Ratings
- Tweaked RSS, still needs work
- Show Single artist mostly finished
Diffstat (limited to 'templates/show_artist.inc.php')
-rw-r--r-- | templates/show_artist.inc.php | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php new file mode 100644 index 00000000..0e7613a1 --- /dev/null +++ b/templates/show_artist.inc.php @@ -0,0 +1,76 @@ +<?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'); + +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 } ?> + <?php if ($GLOBALS['user']->has_access('100')) { ?> + <a href="<?php echo $web_path; ?>/admin/flag.php?action=show_edit_album&album_id=<?php echo $album->id; ?>"> + <?php echo get_user_icon('edit'); ?> + </a> + <?php } ?> + </td> +</tr> +<?php } //end foreach ($albums as $album)?> +</table> +<?php show_box_bottom(); ?> |