diff options
author | spocky <spocky@ampache> | 2007-10-24 21:15:58 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2007-10-24 21:15:58 +0000 |
commit | e855988af2850d8d8105b56bc0ce9eae8b7d9dc0 (patch) | |
tree | 9e05a256144165aca01e6bfe9a02bd2d81dbdfb4 /templates/show_recently_played.inc.php | |
parent | 06a5efcc717cd28ea69bd75f11063c51ee455b82 (diff) | |
download | ampache-e855988af2850d8d8105b56bc0ce9eae8b7d9dc0.tar.gz ampache-e855988af2850d8d8105b56bc0ce9eae8b7d9dc0.tar.bz2 ampache-e855988af2850d8d8105b56bc0ce9eae8b7d9dc0.zip |
renamed a few files (missing php extension)
updated most of the tables so that every column is independently customizable by css rules
Diffstat (limited to 'templates/show_recently_played.inc.php')
-rw-r--r-- | templates/show_recently_played.inc.php | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/templates/show_recently_played.inc.php b/templates/show_recently_played.inc.php index 0e1ee595..4d3b416d 100644 --- a/templates/show_recently_played.inc.php +++ b/templates/show_recently_played.inc.php @@ -23,13 +23,20 @@ $time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days ago'),_('weeks ago'),_('months ago'),_('years ago')); ?> -<table class="table-data" cellspacing="0"> -<tr class="table-header"> - <th><?php echo _('Username'); ?></th> - <th><?php echo _('Song'); ?></th> - <th><?php echo _('Album'); ?></th> - <th><?php echo _('Artist'); ?></th> - <th><?php echo _('Last Played'); ?></th> +<table class="tabledata" cellpadding="0" cellspacing="0"> +<colgroup> + <col id="col_username" /> + <col id="col_song" /> + <col id="col_album" /> + <col id="col_artist" /> + <col id="col_lastplayed" /> +</colgroup> +<tr class="th-top"> + <th class="cel_username"><?php echo _('Username'); ?></th> + <th class="cel_song"><?php echo _('Song'); ?></th> + <th class="cel_album"><?php echo _('Album'); ?></th> + <th class="cel_artist"><?php echo _('Artist'); ?></th> + <th class="cel_lastplayed"><?php echo _('Last Played'); ?></th> </tr> <?php foreach ($data as $row) { $row_user = new User($row['user']); @@ -62,15 +69,22 @@ $time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days a $song->format(); ?> <tr class="<?php echo flip_class(); ?>"> - <td> + <td class="cel_username"> <a href="<?php echo Config::get('web_path'); ?>/stats.php?action=show_user&user_id=<?php echo scrub_out($row_user->id); ?>"> <?php echo scrub_out($row_user->fullname); ?> </a> </td> - <td><?php echo $song->f_link; ?></td> - <td><?php echo $song->f_album_link; ?></td> - <td><?php echo $song->f_artist_link; ?></td> - <td><?php echo $time_string; ?></td> + <td class="cel_song"><?php echo $song->f_link; ?></td> + <td class="cel_album"><?php echo $song->f_album_link; ?></td> + <td class="cel_artist"><?php echo $song->f_artist_link; ?></td> + <td class="cel_lastplayed"><?php echo $time_string; ?></td> </tr> <?php } ?> +<tr class="th-bottom"> + <th class="cel_username"><?php echo _('Username'); ?></th> + <th class="cel_song"><?php echo _('Song'); ?></th> + <th class="cel_album"><?php echo _('Album'); ?></th> + <th class="cel_artist"><?php echo _('Artist'); ?></th> + <th class="cel_lastplayed"><?php echo _('Last Played'); ?></th> +</tr> </table> |