summaryrefslogtreecommitdiffstats
path: root/templates/show_recently_played.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-26 04:04:24 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-26 04:04:24 +0000
commita41697ea25a58ea5db5ed46a251fb62364626b1b (patch)
tree9754a325a5c700135e69e341b47d2658d2344762 /templates/show_recently_played.inc.php
parent0635397ab2bd5afc6789cef56b9a9d87bd52bcfd (diff)
downloadampache-a41697ea25a58ea5db5ed46a251fb62364626b1b.tar.gz
ampache-a41697ea25a58ea5db5ed46a251fb62364626b1b.tar.bz2
ampache-a41697ea25a58ea5db5ed46a251fb62364626b1b.zip
tweaked icons to use built in functions and removed them from where there were not icons for every optin, added recently played
Diffstat (limited to 'templates/show_recently_played.inc.php')
-rw-r--r--templates/show_recently_played.inc.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/show_recently_played.inc.php b/templates/show_recently_played.inc.php
new file mode 100644
index 00000000..eeae6186
--- /dev/null
+++ b/templates/show_recently_played.inc.php
@@ -0,0 +1,46 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2006 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.
+
+*/
+?>
+<?php show_box_top(_('Recently Played')); ?>
+<table>
+<tr class="table-header">
+ <td><?php echo _('Username'); ?></td>
+ <td><?php echo _('Song'); ?></td>
+ <td><?php echo _('Date'); ?></td>
+</tr>
+<?php foreach ($data as $row) {
+ $row_user = new User($row['user']);
+ $song = new Song($row['object_id']);
+ $song->format_song();
+ /* Prepare the variables */
+ $title = scrub_out(truncate_with_ellipse($song->title,'25'));
+ $album = scrub_out(truncate_with_ellipse($song->f_album_full,'25'));
+ $artist = scrub_out(truncate_with_ellipse($song->f_artist_full,'25'));
+ $song_name = $title . ' - ' . $album . '/' . $artist;
+?>
+<tr>
+ <td><?php echo scrub_out($row_user->fullname); ?></td>
+ <td><?php echo $song_name; ?></td>
+ <td><?php echo date("d/m/Y H:i:s",$row['date']); ?></td>
+</tr>
+<?php } ?>
+</table>
+<?php show_box_bottom(); ?>