summaryrefslogtreecommitdiffstats
path: root/templates/show_songs.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-06 22:19:37 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-06 22:19:37 +0000
commit0dcbad80cde204cfda078b5fc16a92c41d74c87d (patch)
treec4ed21ecdd134638c184b31fe38e863c5c0e9a5b /templates/show_songs.inc.php
parent691c838e90e759a7461cec657d95a4f1af9f46c6 (diff)
downloadampache-0dcbad80cde204cfda078b5fc16a92c41d74c87d.tar.gz
ampache-0dcbad80cde204cfda078b5fc16a92c41d74c87d.tar.bz2
ampache-0dcbad80cde204cfda078b5fc16a92c41d74c87d.zip
added in basic browse by song functionality with filtering of unplayed
Diffstat (limited to 'templates/show_songs.inc.php')
-rw-r--r--templates/show_songs.inc.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php
new file mode 100644
index 00000000..e0fa49be
--- /dev/null
+++ b/templates/show_songs.inc.php
@@ -0,0 +1,53 @@
+<?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 class="table-header" align="center">
+ <td colspan="12">
+ <?php //require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
+ </td>
+</tr>
+<tr class="table-header">
+ <th><?php echo _('Add'); ?></th>
+ <th><?php echo _('Song Title'); ?></th>
+ <th><?php echo _('Artist'); ?></th>
+ <th><?php echo _('Album'); ?></th>
+</tr>
+<?php
+ foreach ($object_ids as $song_id) {
+ $song = new Song($song_id);
+ $song->format();
+?>
+<tr class="<?php echo flip_class(); ?>">
+ <td onclick="ajaxPut('<?php echo $ajax_url; ?>?action=basket&amp;type=song&amp;id=<?php echo $song->id; ?>');return true;">
+ <?php echo get_user_icon('add'); ?>
+ </td>
+ <td><?php echo $song->f_link; ?></td>
+ <td><?php echo $song->f_artist_link; ?></td>
+ <td><?php echo $song->f_album_link; ?></td>
+</tr>
+<?php } ?>
+</table>