summaryrefslogtreecommitdiffstats
path: root/templates/show_playlist_edit.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-23 09:01:04 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-23 09:01:04 +0000
commit80b0748b4a43087aed6802b6b631f064f975f097 (patch)
tree045d64e4538693edbd20362085ce506758e7221c /templates/show_playlist_edit.inc.php
parent78164aefef355b07df4b28f913f38fc0b0473508 (diff)
downloadampache-80b0748b4a43087aed6802b6b631f064f975f097.tar.gz
ampache-80b0748b4a43087aed6802b6b631f064f975f097.tar.bz2
ampache-80b0748b4a43087aed6802b6b631f064f975f097.zip
fixed playlist name editing so confirmation box works, and its a little snazzier now
Diffstat (limited to 'templates/show_playlist_edit.inc.php')
-rw-r--r--templates/show_playlist_edit.inc.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/templates/show_playlist_edit.inc.php b/templates/show_playlist_edit.inc.php
new file mode 100644
index 00000000..afb12056
--- /dev/null
+++ b/templates/show_playlist_edit.inc.php
@@ -0,0 +1,51 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2006 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
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ 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.
+
+*/
+?>
+<form method="post" action="<?php echo $web_path; ?>/playlist.php" enctype="multipart/form-data">
+<table class="text-box">
+<tr>
+ <td colspan="2" class="header2"><?php echo _('Editing Playlist'); ?></td>
+</tr>
+<tr>
+ <td><?php echo _('Name'); ?>:</td>
+ <td align="left">
+ <input type="text" name="playlist_name" value="<?php echo scrub_out($playlist->name); ?>" size="<?php echo strlen($playlist->name)+3; ?>" />
+ </td>
+</tr>
+<tr>
+ <td valign="top"><?php echo _('Type'); ?>:</td>
+ <td>
+ <?php $select_name = 'selected_' . $playlist->type; ${$select_name} = "checked=\"checked\""; ?>
+ <input type="radio" name="type" value="public" <?php echo $selected_public; ?>/><?php echo _('Public'); ?><br />
+ <input type="radio" name="type" value="private" <?php echo $selected_private; ?>/><?php echo _('Private'); ?><br />
+ </td>
+</tr>
+<tr>
+ <td>&nbsp;</td>
+ <td>
+ <input type="hidden" name="playlist_id" value="<?php echo $playlist->id; ?>" />
+ <input type="hidden" name="action" value="update_playlist" />
+ <input type="submit" value="<?php echo _('Update'); ?>" />
+ </td>
+</tr>
+</table>
+</form>