summaryrefslogtreecommitdiffstats
path: root/templates/show_rename_artist.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-18 03:04:59 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-18 03:04:59 +0000
commit0154f3736070c0847c5912dca88954b6bebe6001 (patch)
treebb40a15d7d9b475f5ff5c0ed85d32a6e932d1428 /templates/show_rename_artist.inc.php
parent1ce04520cdadbc03726da96608a8b5bbb20ee95a (diff)
downloadampache-0154f3736070c0847c5912dca88954b6bebe6001.tar.gz
ampache-0154f3736070c0847c5912dca88954b6bebe6001.tar.bz2
ampache-0154f3736070c0847c5912dca88954b6bebe6001.zip
added ability to rename/merge artists thx spcombs
Diffstat (limited to 'templates/show_rename_artist.inc.php')
-rw-r--r--templates/show_rename_artist.inc.php55
1 files changed, 55 insertions, 0 deletions
diff --git a/templates/show_rename_artist.inc.php b/templates/show_rename_artist.inc.php
new file mode 100644
index 00000000..17ee4eda
--- /dev/null
+++ b/templates/show_rename_artist.inc.php
@@ -0,0 +1,55 @@
+<?php
+/*
+
+ Copyright (c) 2004 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.
+
+*/
+?>
+<script language='javascript'>
+ function insert () {
+ document.getElementById('artist_name').value = '<?php echo $artist->name; ?>';
+ }
+</script>
+
+<form name="rename_artist" method="post" action="<?php echo conf('web_path'); ?>/artists.php?action=rename&amp;artist=<?php echo $artist->id; ?>" style="Display:inline;">
+<table class="text-box" cellspacing="0">
+<tr>
+ <th align="left">
+ <span class="header2"><?php echo _("Rename") . " " . $artist->name . " " . _("to"); ?></span>
+ </th>
+</tr>
+<tr>
+ <td>
+ <?php show_artist_pulldown($artist->id,"artist_id",4); ?>
+ <br />
+ <?php echo _("OR"); ?><br />
+ <input type="text" name="artist_name" size="30" value="<?php echo scrub_out($_REQUEST['artist_name']); ?>" id="artist_name" />
+ <a href="javascript:insert()">[<?php echo _("Insert current"); ?>]</a>
+ <?php $GLOBALS['error']->print_error('artist_name'); ?>
+ </td>
+</tr>
+<tr>
+ <td><input type="checkbox" name="update_id3" value="1" />&nbsp; <?php echo _("Update id3 tags"); ?></td>
+</tr>
+<tr>
+ <td>
+ <input type="submit" value="<?php echo _("Rename"); ?>" />
+ </td>
+</tr>
+</table>
+</form>