summaryrefslogtreecommitdiffstats
path: root/templates/show_playlist_songs.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-22 05:36:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-22 05:36:07 +0000
commitdf348122a7092a24a4ae5c04cf0b5b85bd750ae0 (patch)
tree79204441a824bafe239a5e8e8de596b87c0aa999 /templates/show_playlist_songs.inc.php
parent696f35b5a3e148282c452810ac2b294a68b074e0 (diff)
downloadampache-df348122a7092a24a4ae5c04cf0b5b85bd750ae0.tar.gz
ampache-df348122a7092a24a4ae5c04cf0b5b85bd750ae0.tar.bz2
ampache-df348122a7092a24a4ae5c04cf0b5b85bd750ae0.zip
added the initial playlist view page, fixed the artist name on albums of the moment
Diffstat (limited to 'templates/show_playlist_songs.inc.php')
-rw-r--r--templates/show_playlist_songs.inc.php59
1 files changed, 59 insertions, 0 deletions
diff --git a/templates/show_playlist_songs.inc.php b/templates/show_playlist_songs.inc.php
new file mode 100644
index 00000000..d1479a90
--- /dev/null
+++ b/templates/show_playlist_songs.inc.php
@@ -0,0 +1,59 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2007 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.
+
+*/
+
+// First let's setup some vars we're going to use a lot
+$web_path = Config::get('web_path');
+$ajax_url = Config::get('ajax_url');
+?>
+<table class="tabledata" cellspacing="0" cellpadding="0">
+<tr>
+ <td colspan="8">
+ <?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
+ </td>
+</tr>
+<tr class="table-header">
+ <th><?php echo _('Track'); ?></th>
+ <th onclick="ajaxPut('<?php echo $ajax_url; ?>?action=browse&amp;sort=title');return true;" style="cursor:pointer;">
+ <?php echo _('Song Title'); ?>
+ </th>
+ <th><?php echo _('Artist'); ?></th>
+ <th><?php echo _('Album'); ?></th>
+ <th><?php echo _('Genre'); ?></th>
+ <th><?php echo _('Track'); ?></th>
+ <th><?php echo _('Time'); ?></th>
+ <th><?php echo _('Action'); ?></th>
+</tr>
+<?php
+ foreach ($object_ids as $object) {
+ $song = new Song($object['object_id']);
+ $song->format();
+ $playlist_track = $object['track'];
+?>
+<tr class="<?php echo flip_class(); ?>" id="song_<?php echo $song->id; ?>">
+ <?php require Config::get('prefix') . '/templates/show_playlist_song_row.inc.php'; ?>
+</tr>
+<?php } ?>
+<tr>
+ <td colspan="8">
+ <?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
+ </td>
+</tr>
+</table>