diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-05 20:59:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-05 20:59:45 +0000 |
commit | ad3d2363c4c20d6b5049c8db92d08786650bd2ae (patch) | |
tree | b72355de5d27c9560d22947efd2d43c77c3e7b9e /templates | |
parent | aef507d64420f2c82359d5219e83e3e0671522b7 (diff) | |
download | ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.tar.gz ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.tar.bz2 ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.zip |
year another bump on openstrands, removed redundent files, fixed bug with config gen and started work on playlists
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_playlists.inc.php | 30 | ||||
-rw-r--r-- | templates/sidebar_browse.inc.php | 1 |
2 files changed, 8 insertions, 23 deletions
diff --git a/templates/show_playlists.inc.php b/templates/show_playlists.inc.php index a8c376ab..ca07c5ef 100644 --- a/templates/show_playlists.inc.php +++ b/templates/show_playlists.inc.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2006 Ampache.org + Copyright (c) 2001 - 2007 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -19,20 +19,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/** - * Show Playlists - * This takes an array of playlists and displays them for the default view of - * /playlists.php $type is always passed - */ -$web_path = conf('web_path'); -$title = $type . ' ' . _('Playlists'); + ?> -<?php show_box_top($title); ?> -<form id="playlists<?php echo $type;?>" method="post" enctype="multipart/form-data" action="playlist.php"> <table class="tabledata" cellspacing="0" cellpadding="0" border="0"> <!-- Playlist Table --> <tr class="table-header"> <th align="center"> - <a href="#" onclick="check_select('playlist','<?php echo $type;?>'); return false;"><?php echo _('Select'); ?></a> + </th> <th><?php echo _('Playlist Name'); ?></th> <th><?php echo _('# Songs'); ?></th> @@ -40,12 +32,12 @@ $title = $type . ' ' . _('Playlists'); <th><?php echo _('Actions'); ?></th> </tr> <?php -foreach ($playlists as $playlist) { - $playlist_user = new User($playlist->user); - $count = $playlist->get_song_count(); ?> +foreach ($object_ids as $playlist_id) { + $playlist = new Playlist($playlist_id); + $count = $playlist->get_song_count(); +?> <tr class="<?php echo flip_class(); ?>"> <td align="center"> - <input name="playlist[]" value="<?php echo $playlist->id; ?>" type="checkbox" /> </td> <td> <a href="<?php echo $web_path; ?>/playlist.php?action=show_playlist&playlist_id=<?php echo $playlist->id; ?>"> @@ -77,12 +69,4 @@ foreach ($playlists as $playlist) { </td> </tr> <?php } // end foreach ($playlists as $playlist) ?> -<?php if (!count($playlists)) { ?> -<tr class="<?php echo flip_class(); ?>"> - <td colspan="5"><?php echo _('No Playlists Found'); ?></td> -</tr> -<?php } ?> </table> -</form> -<?php show_box_bottom(); ?> - diff --git a/templates/sidebar_browse.inc.php b/templates/sidebar_browse.inc.php index 82c7902a..b7266868 100644 --- a/templates/sidebar_browse.inc.php +++ b/templates/sidebar_browse.inc.php @@ -10,6 +10,7 @@ <li id="sb_BB_Album"><a href="<?php echo $web_path; ?>/browse.php?action=album"><?php echo _('Albums'); ?></a></li> <li id="sb_BB_Artist"><a href="<?php echo $web_path; ?>/browse.php?action=artist"><?php echo _('Artist'); ?></a></li> <li id="sb_BB_Genre"><a href="<?php echo $web_path; ?>/browse.php?action=genre"><?php echo _('Genre'); ?></a></li> +<li id="sb_BB_Playlist"><a href="<?php echo $web_path; ?>/browse.php?action=playlist"><?php echo _('Playlist'); ?></a></li> <li id="sb_BB_RadioStation"><a href="<?php echo $web_path; ?>/browse.php?action=live_stream"><?php echo _('Radio Stations'); ?></a></li> </ul> <hr /> |