diff options
Diffstat (limited to 'templates/show_tv_playlist.inc.php')
-rw-r--r-- | templates/show_tv_playlist.inc.php | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/templates/show_tv_playlist.inc.php b/templates/show_tv_playlist.inc.php index 50bc7d11..f6fb87bb 100644 --- a/templates/show_tv_playlist.inc.php +++ b/templates/show_tv_playlist.inc.php @@ -21,7 +21,16 @@ /* Some defaults */ $web_path = conf('web_path'); ?> -<table cellspacing="0"> +<table class="tabledata" cellpadding="0" cellspacing="0"> +<colgroup> + <col id="col_action" /> + <col id="col_votes" /> + <col id="col_song" /> + <col id="col_time" /> + <?php if ($GLOBALS['user']->has_access(100)) { ?> + <col id="col_admin" /> + <?php } ?> +</colgroup> <?php if (!count($songs)) { $playlist = new Playlist($tmp_playlist->base_playlist); @@ -39,13 +48,13 @@ if (!count($songs)) { /* Else we have songs */ else { ?> -<tr class="table-header"> - <td><?php echo _('Action'); ?></td> - <td><?php echo _('Votes'); ?></td> - <td><?php echo _('Song'); ?></td> - <td><?php echo _('Time'); ?></td> +<tr class="th-top"> + <th class="cel_action"><?php echo _('Action'); ?></th> + <th class="cel_votes"><?php echo _('Votes'); ?></th> + <th class="cel_song"><?php echo _('Song'); ?></th> + <th class="cel_time"><?php echo _('Time'); ?></th> <?php if ($GLOBALS['user']->has_access(100)) { ?> - <td><?php echo _('Admin'); ?></td> + <th class="cel_admin"><?php echo _('Admin'); ?></th> <?php } ?> </tr> <?php @@ -56,18 +65,18 @@ foreach($songs as $row_id=>$song_id) { $song->format_song(); ?> <tr class="<?php echo flip_class(); ?>"> - <td> + <td class="cel_action"> <?php if ($tmp_playlist->has_vote($song_id)) { ?> <input class="button" type="button" value="-" onclick="ajaxPut('<?php echo conf('ajax_url'); ?>?action=vote&object_id=<?php echo $song_id; ?>&vote=-1<?php echo conf('ajax_info'); ?>')" /> <?php } else { ?> <input class="button" type="button" value="+" onclick="ajaxPut('<?php echo conf('ajax_url'); ?>?action=vote&object_id=<?php echo $song_id; ?>&vote=1<?php echo conf('ajax_info'); ?>')" /> <?php } ?> </td> - <td><?php echo scrub_out($tmp_playlist->get_vote($row_id)); ?></td> - <td><?php echo $song->f_link . " / " . $song->f_album_link . " / " . $song->f_artist_link; ?></td> - <td><?php echo $song->f_time; ?></td> + <td class="cel_votes"><?php echo scrub_out($tmp_playlist->get_vote($row_id)); ?></td> + <td class="cel_song"><?php echo $song->f_link . " / " . $song->f_album_link . " / " . $song->f_artist_link; ?></td> + <td class="cel_time"><?php echo $song->f_time; ?></td> <?php if ($GLOBALS['user']->has_access(100)) { ?> - <td> + <td class="cel_admin"> <span onclick="ajaxPut('<?php echo conf('ajax_url'); ?>?action=tv_admin&cmd=delete&track_id=<?php echo $song_id; ?><?php echo conf('ajax_info'); ?>')" /> <?php echo get_user_icon('delete'); ?> </span> @@ -75,7 +84,18 @@ foreach($songs as $row_id=>$song_id) { <?php } ?> </tr> <?php - } // end foreach + } // end foreach +?> +<tr class="th-bottom"> + <th class="cel_action"><?php echo _('Action'); ?></th> + <th class="cel_votes"><?php echo _('Votes'); ?></th> + <th class="cel_song"><?php echo _('Song'); ?></th> + <th class="cel_time"><?php echo _('Time'); ?></th> + <?php if ($GLOBALS['user']->has_access(100)) { ?> + <th class="cel_admin"><?php echo _('Admin'); ?></th> + <?php } ?> +</tr> +<?php } // end else ?> </table> |