diff options
author | xgizzmo <xgizzmo@ampache> | 2006-01-11 02:59:17 +0000 |
---|---|---|
committer | xgizzmo <xgizzmo@ampache> | 2006-01-11 02:59:17 +0000 |
commit | 603f145952f39164b961ac94a46b8a459e7adac0 (patch) | |
tree | 90fb10a0f1a1ea8396af8a41e629b1e63bac30d2 /templates/show_disabled_songs.inc | |
parent | 67d76f09c28d0c6abae6d966f4cc00a5428bdc74 (diff) | |
download | ampache-603f145952f39164b961ac94a46b8a459e7adac0.tar.gz ampache-603f145952f39164b961ac94a46b8a459e7adac0.tar.bz2 ampache-603f145952f39164b961ac94a46b8a459e7adac0.zip |
More code clean up this should about cover /templates
Diffstat (limited to 'templates/show_disabled_songs.inc')
-rw-r--r-- | templates/show_disabled_songs.inc | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/templates/show_disabled_songs.inc b/templates/show_disabled_songs.inc index 92c7fc8f..20d36dbe 100644 --- a/templates/show_disabled_songs.inc +++ b/templates/show_disabled_songs.inc @@ -30,20 +30,22 @@ <td>Filename</td> <td>Addition Time</td> </tr> -<?php foreach ($songs as $song) { - $class = (++$i%2)?'odd':'even'; +<?php +foreach ($songs as $song) { + $class = (++$i%2)?'odd':'even'; +?> + <tr class="<?php echo $class; ?>"> + <td><input type="checkbox" name="song[]" value="<?php echo $song->id; ?>" /></td> + <td><?php echo $song->title; ?></td> + <td><?php echo $song->get_album_name($song->album); ?></td> + <td><?php echo $song->get_artist_name($song->album); ?></td> + <td><?php echo $song->file; ?></td> + <td><?php echo date("h:i:s, m/d/y",$song->addition_time); ?></td> + + </tr> +<?php } // end foreach ($songs as $song) +$class = (++$i%2)?'odd':'even'; ?> -<tr class="<?php echo $class; ?>"> - <td><input type="checkbox" name="song[]" value="<?php echo $song->id; ?>" /></td> - <td><?php echo $song->title; ?></td> - <td><?php echo $song->get_album_name($song->album); ?></td> - <td><?php echo $song->get_artist_name($song->album); ?></td> - <td><?php echo $song->file; ?></td> - <td><?php echo date("h:i:s, m/d/y",$song->addition_time); ?></td> - -</tr> -<?php } ?> -<?php $class = (++$i%2)?'odd':'even'; ?> <tr class="<?php echo $class; ?>"> <td> </td> <td colspan="10"> |