diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-27 05:42:11 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-27 05:42:11 +0000 |
commit | b4de052e938ef72f828be0da6323fad80479a916 (patch) | |
tree | 4bb88ac109d0725856d6c064a869308b3ea58deb /templates/rightbar.inc.php | |
parent | f9a3cf50e36c674eeff0d9f2f2682ac69bb03008 (diff) | |
download | ampache-b4de052e938ef72f828be0da6323fad80479a916.tar.gz ampache-b4de052e938ef72f828be0da6323fad80479a916.tar.bz2 ampache-b4de052e938ef72f828be0da6323fad80479a916.zip |
added ability to append to playlists
Diffstat (limited to 'templates/rightbar.inc.php')
-rw-r--r-- | templates/rightbar.inc.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/rightbar.inc.php b/templates/rightbar.inc.php index d9e3fb02..3b58459f 100644 --- a/templates/rightbar.inc.php +++ b/templates/rightbar.inc.php @@ -30,6 +30,16 @@ <li> <?php echo Ajax::text('?page=playlist&action=create',_('Add to New Playlist'),'rb_create_playlist'); ?> </li> + <?php + $playlists = Playlist::get_users($GLOBALS['user']->id); + foreach ($playlists as $playlist_id) { + $playlist = new Playlist($playlist_id); + $playlist->format(); + ?> + <li> + <?php echo Ajax::text('?page=playlist&action=append',$playlist->f_name,'rb_append_playlist_' . $playlist->id); ?> + </li> + <?php } ?> </ul> </li> <?php if (Access::check_function('batch_download')) { ?> |