diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-04-21 00:28:18 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-04-21 00:28:18 +0000 |
commit | 41db2472342bd0cdcd572f9f37bca698db6f6d2f (patch) | |
tree | 742102e58f80f1e8b715efb9ac34a4d8e8a589cf /templates/show_edit_playlist_song_row.inc.php | |
parent | d642b02e2d03c920ce8fa77cff33f24e1f407021 (diff) | |
download | ampache-41db2472342bd0cdcd572f9f37bca698db6f6d2f.tar.gz ampache-41db2472342bd0cdcd572f9f37bca698db6f6d2f.tar.bz2 ampache-41db2472342bd0cdcd572f9f37bca698db6f6d2f.zip |
fixed shoutbox typo so albums add correctly, can now edit playlist tracks and change their track in the playlist, added batch download link to single playlist view
Diffstat (limited to 'templates/show_edit_playlist_song_row.inc.php')
-rw-r--r-- | templates/show_edit_playlist_song_row.inc.php | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/templates/show_edit_playlist_song_row.inc.php b/templates/show_edit_playlist_song_row.inc.php index 520b2fb6..8a8d612c 100644 --- a/templates/show_edit_playlist_song_row.inc.php +++ b/templates/show_edit_playlist_song_row.inc.php @@ -19,29 +19,23 @@ */ ?> -<td colspan="8"> -<form method="post" id="edit_song_<?php echo $song->id; ?>" action="#"> +<td colspan="9"> +<form method="post" id="edit_track_<?php echo $track['id']; ?>" action="javascript:void(0);"> <table class="inline-edit" cellpadding="3" cellspacing="0"> <tr> <td> - <input type="textbox" name="name" value="<?php echo scrub_out($song->title); ?>" /> -</td> -<td> - <?php show_artist_select('artist',$song->artist); ?> -</td> -<td> - <?php show_album_select('album',$song->album); ?> -</td> -<td> - <?php show_genre_select('genre',$song->genre); ?> -</td> -<td> - <input type="textbox" name="track" size="3" value="<?php echo scrub_out($song->track); ?>" /> + <input type="textbox" name="track" size="3" maxlength="4" value="<?php echo intval($track['track']); ?>" /> </td> +<td class="cel_song"><?php echo $song->f_link; ?></td> +<td class="cel_artist"><?php echo $song->f_artist_link; ?></td> +<td class="cel_album"><?php echo $song->f_album_link; ?></td> +<td class="cel_genre"><?php echo $song->f_genre_link; ?></td> +<td class="cel_track"><?php echo $song->f_track; ?></td> +<td class="cel_time"><?php echo $song->f_time; ?></td> <td> <input type="hidden" name="id" value="<?php echo $song->id; ?>" /> <input type="hidden" name="type" value="song" /> - <?php echo Ajax::button('?action=edit_object&id=' . $song->id . '&type=song','download',_('Save Changes'),'save_song_' . $song->id,'edit_song_' . $song->id); ?> + <?php echo Ajax::button('?page=playlist&action=save_track&playlist_id=' . $playlist->id . '&track_id=' . $track['id'],'download',_('Save Changes'),'save_track_' . $track['id'],'edit_track_' . $track['id']); ?> </td> </tr> </table> |