summaryrefslogtreecommitdiffstats
path: root/templates/show_play_selected.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-27 15:54:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-27 15:54:36 +0000
commitb75f24356951b8b9d31029232be223e03dd3e8e6 (patch)
tree5790cbc9cbb7404890428500117ca94c3396dd16 /templates/show_play_selected.inc.php
parentfc45fa0230e54512edab6e0d7047a1708890d198 (diff)
downloadampache-b75f24356951b8b9d31029232be223e03dd3e8e6.tar.gz
ampache-b75f24356951b8b9d31029232be223e03dd3e8e6.tar.bz2
ampache-b75f24356951b8b9d31029232be223e03dd3e8e6.zip
added ability to mass tag songs using the play selected code
Diffstat (limited to 'templates/show_play_selected.inc.php')
-rw-r--r--templates/show_play_selected.inc.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/templates/show_play_selected.inc.php b/templates/show_play_selected.inc.php
index 4270b99c..57a234e4 100644
--- a/templates/show_play_selected.inc.php
+++ b/templates/show_play_selected.inc.php
@@ -22,8 +22,9 @@
$web_path = conf('web_path');
?>
+<form method="post" action="" enctype="multipart/form-data">
<table border="0" cellpadding="14" cellspacing="0" class="text-box">
-<tr align="left">
+<tr>
<td>
<input class="button" type="button" value="<?php echo _('Play Selected'); ?>" onclick="return SubmitToPage('songs','<?php echo $web_path; ?>/song.php?action=play_selected');" />
<?php if (batch_ok()) { ?>
@@ -42,8 +43,8 @@ if (is_object($GLOBALS['playlist'])) { ?>
</td>
</tr>
<?php } else { ?>
-<tr align="center">
-<td colspan="2">
+<tr>
+<td>
<?php echo _('Playlist'); ?>: <input type="button" value="<?php echo _('Add to'); ?>" onclick="return SubmitToPage('songs','<?php echo $web_path; ?>/playlist.php?action=add_to');" />
<?php show_playlist_select($_SESSION['data']['playlist_id']); ?>
<input class="button" type="button" value="<?php echo _('View'); ?>" onclick="return SubmitToPage('songs','<?php echo $web_path; ?>/playlist.php?action=view');" />
@@ -51,4 +52,19 @@ if (is_object($GLOBALS['playlist'])) { ?>
</td>
</tr>
<?php } ?>
+<?php if ($GLOBALS['user']->has_access('100')) { ?>
+<tr>
+<td>
+ <select name="update_field">
+ <option value="genre"><?php echo _('Genre'); ?></option>
+ <option value="album"><?php echo _('Album'); ?></option>
+ <option value="artist"><?php echo _('Artist'); ?></option>
+ <option value="year"><?php echo _('Year'); ?></option>
+ </select>
+ <input type="textbox" name="update_value" />
+ <input class="button" type="button" value="<?php echo _('Update'); ?>" onclick="return SubmitToPage('songs','<?php echo $web_path; ?>/admin/flag.php?action=mass_update');" />
+</td>
+</tr>
+<?php } ?>
</table>
+</form>