diff options
author | xgizzmo <xgizzmo@ampache> | 2006-01-10 05:03:18 +0000 |
---|---|---|
committer | xgizzmo <xgizzmo@ampache> | 2006-01-10 05:03:18 +0000 |
commit | 67d76f09c28d0c6abae6d966f4cc00a5428bdc74 (patch) | |
tree | c52e3c1c1d9bf75de21b2bc812fa34aa78aa10af /templates/show_artist.inc | |
parent | 883cd9e478cf740f7b6bdd5fa089c4eefda97b7a (diff) | |
download | ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.tar.gz ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.tar.bz2 ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.zip |
Code clean up
Diffstat (limited to 'templates/show_artist.inc')
-rw-r--r-- | templates/show_artist.inc | 80 |
1 files changed, 38 insertions, 42 deletions
diff --git a/templates/show_artist.inc b/templates/show_artist.inc index a71ddaca..ac72703f 100644 --- a/templates/show_artist.inc +++ b/templates/show_artist.inc @@ -21,7 +21,7 @@ */ //FIXME: I don't like having to re-create this friggin object.. :( -global $user; +global $user; $artist_id = $artist->id; $web_path = conf('web_path'); ?> @@ -31,53 +31,49 @@ $web_path = conf('web_path'); <br /> <form name="songs" method="post" enctype="multipart/form-data" action="artists.php"> <table class="border" cellspacing="0" cellpadding="0" border="0"> - <tr class="table-header"> - <th align="center"> +<tr class="table-header"> + <th align="center"> <a href="#" onclick="check_songs(); return false;"><?php echo _("Select"); ?></a> </th> - <th><?php echo _("Cover"); ?></th> - <th><?php echo _("Album Name"); ?></th> - <th><?php echo _("Album Year"); ?></th> - <th><?php echo _("Total Tracks"); ?></th> - <th><?php echo _("Action"); ?></th> - </tr> - + <th><?php echo _("Cover"); ?></th> + <th><?php echo _("Album Name"); ?></th> + <th><?php echo _("Album Year"); ?></th> + <th><?php echo _("Total Tracks"); ?></th> + <th><?php echo _("Action"); ?></th> +</tr> <?php - foreach ($albums as $album) { - $id = $album->id; - $album_name = $album->name; - $count = $album->songs; +foreach ($albums as $album) { + $id = $album->id; + $album_name = $album->name; + $count = $album->songs; ?> - - <tr class="<?php echo flip_class(); ?>"> - <td align="center"> - <input name="song[]" value="<?php print $id; ?>" type="checkbox" /> - </td> - <td height="87"> - <a href="<?php print $web_path; ?>/albums.php?album=<?php echo $id; ?>&artist=<?php echo $artist->id; ?>"> - <img border="0" src="<?php print $web_path; ?>/albumart.php?id=<?php print $id; ?>&fast=1&thumb=1" title="<?php print scrub_out($album_name); ?>" height="75" width="75" /> - </a> - </td> - <td> - <a href="<?php echo $web_path; ?>/albums.php?album=<?php print $id; ?>&artist=<?php echo $artist->id; ?>"><?php print $album_name; ?></a> - </td> - <td><?php print $album->year; ?></td> - <td><?php print $count; ?></td> - <td> - <a href="<?php print $web_path; ?>/song.php?action=m3u&album=<?php print $id; ?>"><?php print _("Play"); ?></a> - <?php if( batch_ok() ) { ?> - | <a href="<?php echo conf('web_path'); ?>/batch.php?action=alb&id=<?php echo $album->id; ?>"><?php echo _("Download"); ?></a> - <?php } ?> - </td> - - - </tr> -<?php } ?> + <tr class="<?php echo flip_class(); ?>"> + <td align="center"> + <input name="song[]" value="<?php echo $id; ?>" type="checkbox" /> + </td> + <td height="87"> + <a href="<?php echo $web_path; ?>/albums.php?album=<?php echo $id; ?>&artist=<?php echo $artist->id; ?>"> + <img border="0" src="<?php echo $web_path; ?>/albumart.php?id=<?php echo $id; ?>&fast=1&thumb=1" title="<?php echo scrub_out($album_name); ?>" height="75" width="75" /> + </a> + </td> + <td> + <a href="<?php echo $web_path; ?>/albums.php?album=<?php echo $id; ?>&artist=<?php echo $artist->id; ?>"><?php echo $album_name; ?></a> + </td> + <td><?php echo $album->year; ?></td> + <td><?php echo $count; ?></td> + <td> + <a href="<?php echo $web_path; ?>/song.php?action=m3u&album=<?php echo $id; ?>"><?php echo _("Play"); ?></a> + <?php if (batch_ok()) { ?> + | <a href="<?php echo $web_path; ?>/batch.php?action=alb&id=<?php echo $album->id; ?>"><?php echo _("Download"); ?></a> + <?php } ?> + </td> + </tr> +<?php } //end foreach ($albums as $album)?> </table> - <br /><br /> - +<br /><br /> + <?php show_play_selected(); ?> <input type="hidden" name="type" value="album" /> -<input type="hidden" name="artist_id" value="<?php print $artist_id; ?>" /> +<input type="hidden" name="artist_id" value="<?php echo $artist_id; ?>" /> </form> |