foreach ($fields as $key => $field) { ?> <td><?php echo $instance[$key]; ?> </td> <?php } ?> <td> <a href="<?php echo AmpConfig::get('web_path'); ?> /localplay.php?action=edit_instance&instance=<?php echo $uid; ?> "><?php echo UI::get_icon('edit', T_('Edit Instance')); ?> </a> <?php echo Ajax::button('?page=localplay&action=delete_instance&instance=' . $uid, 'delete', T_('Delete'), 'delete_instance_' . $uid); ?> </td> </tr> <?php } ?> </table> <?php UI::show_box_bottom();
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ ?> <td class="cel_play"> <span class="cel_play_content"> </span> <div class="cel_play_hover"> <?php if (AmpConfig::get('directplay')) { echo Ajax::button('?page=stream&action=directplay&object_type=tvshow_season&object_id=' . $libitem->id, 'play', T_('Play'), 'play_season_' . $libitem->id); if (Stream_Playlist::check_autoplay_append()) { echo Ajax::button('?page=stream&action=directplay&object_type=tvshow_season&object_id=' . $libitem->id . '&append=true', 'play_add', T_('Play last'), 'addplay_season_' . $libitem->id); } } ?> </div> </td> <?php if (Art::is_enabled()) { ?> <td class="cel_cover"> <?php Art::display('tvshow_season', $libitem->id, $libitem->f_name, 6, $libitem->link); ?> </td> <?php }
</select> </td> </tr> <tr> <td> <?php echo Ajax::button('?page=random&action=add_rule', 'add', T_('Add Rule'), 'add_random_rule'); echo T_('Add Rule'); ?> </td> <td> <?php echo Ajax::button('?page=random&action=save_rules', 'download', T_('Save Rules As'), 'save_random_rules'); echo T_('Save Rules As'); ?> </td> <td colspan="2"> <?php echo Ajax::button('?page=random&action=load_rules', 'cog', T_('Load Saved Rules'), 'load_random_rules'); echo T_('Load Saved Rules'); ?> </td> </tr> <tr> <td colspan="4"> <div id="rule_status"></div> </td> </tr> </table> <?php UI::show_box_bottom();
?> <div class="album_group_disks_title"><span> <?php echo $c_title; ?> </span></div> <div class="album_group_disks_actions"> <?php if ($show_direct_play) { echo Ajax::button('?page=stream&action=directplay&object_type=album&' . $c_album->get_http_album_query_ids('object_id'), 'play', T_('Play'), 'directplay_full_' . $c_album->id); if (Stream_Playlist::check_autoplay_append()) { echo Ajax::button('?page=stream&action=directplay&object_type=album&' . $c_album->get_http_album_query_ids('object_id') . '&append=true', 'play_add', T_('Play last'), 'addplay_album_' . $c_album->id); } } if ($show_playlist_add) { echo Ajax::button('?action=basket&type=album&' . $c_album->get_http_album_query_ids('id'), 'add', T_('Add to temporary playlist'), 'play_full_' . $c_album->id); echo Ajax::button('?action=basket&type=album_random&' . $c_album->get_http_album_query_ids('id'), 'random', T_('Random to temporary playlist'), 'play_random_' . $c_album->id); } ?> <?php if (Access::check('interface', '25')) { ?> <?php if (AmpConfig::get('sociable')) { ?> <a href="<?php echo AmpConfig::get('web_path'); ?> /shout.php?action=show_add_shout&type=album&id=<?php echo $c_album->id; ?> "><?php
<?php } ?> <?php } ?> </div> </td> <td class="cel_song"><?php echo $song->f_link; ?> </td> <td class="cel_add"> <span class="cel_item_add"> <?php echo Ajax::button('?action=basket&type=song&id=' . $song->id, 'add', T_('Add to temporary playlist'), 'add_' . $nb . '_' . $song->id); ?> <a id="<?php echo 'add_playlist_' . $nb . '_' . $song->id; ?> " onclick="showPlaylistDialog(event, 'song', '<?php echo $song->id; ?> ')"> <?php echo UI::get_icon('playlist_add', T_('Add to existing playlist')); ?> </a> </span> </td> <td class="cel_album"><?php
<?php echo UI::get_icon('batch_download', T_('Batch Download')); ?> </a> <?php } if ($libitem->has_access()) { ?> <a id="<?php echo 'edit_playlist_' . $libitem->id; ?> " onclick="showEditDialog('search_row', '<?php echo $libitem->id; ?> ', '<?php echo 'edit_playlist_' . $libitem->id; ?> ', '<?php echo T_('Smart Playlist edit'); ?> ', 'smartplaylist_row_')"> <?php echo UI::get_icon('edit', T_('Edit')); ?> </a> <?php echo Ajax::button('?page=browse&action=delete_object&type=smartplaylist&id=' . $libitem->id, 'delete', T_('Delete'), 'delete_playlist_' . $libitem->id); } ?> </td>
} switch ($_REQUEST['action']) { case 'flip_state': if (!Access::check('interface', '75')) { debug_event('DENIED', $GLOBALS['user']->username . ' attempted to change the state of a song', '1'); exit; } $song = new Song($_REQUEST['song_id']); $new_enabled = $song->enabled ? false : true; $song->update_enabled($new_enabled, $song->id); $song->enabled = $new_enabled; $song->format(); //Return the new Ajax::button $id = 'button_flip_state_' . $song->id; $button = $song->enabled ? 'disable' : 'enable'; $results[$id] = Ajax::button('?page=song&action=flip_state&song_id=' . $song->id, $button, T_(ucfirst($button)), 'flip_state_' . $song->id); break; case 'shouts': ob_start(); $type = $_REQUEST['object_type']; $id = $_REQUEST['object_id']; if ($type == "song") { $media = new Song($id); $shouts = Shoutbox::get_shouts($type, $id); echo "<script type='text/javascript'>\r\n"; echo "shouts = {};\r\n"; foreach ($shouts as $id) { $shout = new Shoutbox($id); $shout->format(); $key = intval($shout->data); echo "if (shouts['" . $key . "'] == undefined) { shouts['" . $key . "'] = new Array(); }\r\n";
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU Affero General Public License, version 3 (AGPLv3) * Copyright 2001 - 2015 Ampache.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ ?> <div id="localplay-control"> <?php echo Ajax::button('?page=localplay&action=command&command=prev', 'prev', T_('Previous'), 'localplay_control_previous'); echo Ajax::button('?page=localplay&action=command&command=stop', 'stop', T_('Stop'), 'localplay_control_stop'); echo Ajax::button('?page=localplay&action=command&command=pause', 'pause', T_('Pause'), 'localplay_control_pause'); echo Ajax::button('?page=localplay&action=command&command=play', 'play', T_('Play'), 'localplay_control_play'); echo Ajax::button('?page=localplay&action=command&command=next', 'next', T_('Next'), 'localplay_control_next'); ?> </div>
echo 'edit_podcast_' . $libitem->id; ?> ', '<?php echo T_('Podcast edit'); ?> ', 'podcast_')"> <?php echo UI::get_icon('edit', T_('Edit')); ?> </a> <span id="button_sync_<?php echo $libitem->id; ?> "> <?php echo Ajax::button('?page=podcast&action=sync&podcast_id=' . $libitem->id, 'file_refresh', T_('Sync'), 'sync_podcast_' . $libitem->id); ?> </span> <?php } if (Access::check('interface', '75')) { ?> <a id="<?php echo 'delete_podcast_' . $libitem->id; ?> " href="<?php echo AmpConfig::get('web_path'); ?> /podcast.php?action=delete&podcast_id=<?php echo $libitem->id; ?>
$current_class = $key == '0' ? 'row-highlight' : UI::flip_class(); $button = $song->enabled ? 'disable' : 'enable'; ?> <tr id="<?php echo $row_key; ?> " class="<?php echo $current_class; ?> "> <td class="cel_disable" id="<?php echo $button_flip_state_id; ?> "> <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song_id, $button, T_(ucfirst($button)), 'flip_state_' . $song_id); ?> </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_length"><?php
</td> <td><?php echo $democratic->f_level; ?> </td> <td><?php echo $democratic->f_primary; ?> </td> <td><?php echo $democratic->count_items(); ?> </td> <td> <?php echo Ajax::button('?page=democratic&action=send_playlist&democratic_id=' . $democratic->id, 'all', T_('Play'), 'play_democratic'); ?> <a href="<?php echo AmpConfig::get('web_path'); ?> /democratic.php?action=delete&democratic_id=<?php echo scrub_out($democratic->id); ?> "><?php echo UI::get_icon('delete', T_('Delete')); ?> </a> </td> </tr> <?php }
<?php echo UI::get_icon('edit', T_('Edit')); ?> </a> <?php } if (Access::check('interface', '75') || $libitem->user_upload == $GLOBALS['user']->id && AmpConfig::get('upload_allow_edit')) { $icon = $libitem->enabled ? 'disable' : 'enable'; $button_flip_state_id = 'button_flip_state_' . $libitem->id; ?> <span id="<?php echo $button_flip_state_id; ?> "> <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $libitem->id, $icon, T_(ucfirst($icon)), 'flip_song_' . $libitem->id); ?> </span> <?php } if (Catalog::can_remove($libitem)) { ?> <a id="<?php echo 'delete_song_' . $libitem->id; ?> " href="<?php echo AmpConfig::get('web_path'); ?> /song.php?action=delete&song_id=<?php echo $libitem->id; ?>
?> </td> <td class="cel_artist"><?php echo $media->f_artist_link; ?> </td> <td class="cel_time"><?php echo $media->f_time; ?> </td> <?php if (Access::check('interface', '100')) { ?> <td class="cel_admin"> <?php echo Ajax::button('?page=democratic&action=delete&row_id=' . $item['id'], 'disable', T_('Delete'), 'delete_row_' . $item['id']); ?> </td> <?php } ?> </tr> <?php } // end foreach ?> </tbody> <tfoot> <tr class="th-bottom"> <th class="cel_action"><?php echo T_('Action');
* 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ ?> <td class="cel_play"> <span class="cel_play_content"> </span> <div class="cel_play_hover"> <?php if (AmpConfig::get('directplay')) { echo Ajax::button('?page=stream&action=directplay&object_type=broadcast&object_id=' . $libitem->id, 'play', T_('Play'), 'play_broadcast_' . $libitem->id); } ?> </div> </td> <td class="cel_name"><?php echo $libitem->name; ?> </td> <td class="cel_genre"><?php echo $libitem->f_tags; ?> </td> <td class="cel_started"><?php echo $libitem->started ? T_('Yes') : T_('No'); ?>
<?php echo Ajax::button('?page=stream&action=directplay&object_type=tvshow&object_id=' . $tvshow->id, 'play', T_('Play all'), 'directplay_full_' . $tvshow->id); ?> <?php echo Ajax::text('?page=stream&action=directplay&object_type=tvshow&object_id=' . $tvshow->id, T_('Play all'), 'directplay_full_text_' . $tvshow->id); ?> </li> <?php } ?> <?php if (Stream_Playlist::check_autoplay_append()) { ?> <li> <?php echo Ajax::button('?page=stream&action=directplay&object_type=tvshow&object_id=' . $tvshow->id . '&append=true', 'play_add', T_('Play all last'), 'addplay_tvshow_' . $tvshow->id); ?> <?php echo Ajax::text('?page=stream&action=directplay&object_type=tvshow&object_id=' . $tvshow->id . '&append=true', T_('Play all last'), 'addplay_tvshow_text_' . $tvshow->id); ?> </li> <?php } ?> <?php if (Access::check('interface', '50')) { ?> <li> <a id="<?php echo 'edit_tvshow_' . $tvshow->id; ?>
_id=<?php echo $libitem->id; ?> "> <?php echo UI::get_icon('download', T_('Download')); ?> </a> <?php } if (Access::check('interface', '25')) { if (AmpConfig::get('share')) { Share::display_ui($object_type, $libitem->id, false); } } if (get_class($playlist) == "Playlist" && $playlist->has_access()) { echo Ajax::button('?page=playlist&action=delete_track&playlist_id=' . $playlist->id . '&track_id=' . $object['track_id'], 'delete', T_('Delete'), 'track_del_' . $object['track_id']); } ?> </td> <?php if (Access::check('interface', '50') && get_class($playlist) == "Playlist") { ?> <td class="cel_drag"> <?php echo UI::get_icon('drag', T_('Reorder')); ?> </td> <?php } }
public function get_display($details = true, $jsbuttons = false) { $object = Shoutbox::get_object($this->object_type, $this->object_id); $object->format(); $img = $this->get_image(); $html = "<div class='shoutbox-item'>"; $html .= "<div class='shoutbox-data'>"; if ($details && $img) { $html .= "<div class='shoutbox-img'>" . $img . "</div>"; } $html .= "<div class='shoutbox-info'>"; if ($details) { $html .= "<div class='shoutbox-object'>" . $object->f_link . "</div>"; $html .= "<div class='shoutbox-date'>" . date("Y/m/d H:i:s", $this->date) . "</div>"; } $html .= "<div class='shoutbox-text'>" . $this->f_text . "</div>"; $html .= "</div>"; $html .= "</div>"; $html .= "<div class='shoutbox-footer'>"; if ($details) { $html .= "<div class='shoutbox-actions'>"; if ($jsbuttons) { $html .= Ajax::button('?page=stream&action=directplay&playtype=' . $this->object_type . '&' . $this->object_type . '_id=' . $this->object_id, 'play', T_('Play'), 'play_' . $this->object_type . '_' . $this->object_id); $html .= Ajax::button('?action=basket&type=' . $this->object_type . '&id=' . $this->object_id, 'add', T_('Add'), 'add_' . $this->object_type . '_' . $this->object_id); } if (Access::check('interface', '25')) { $html .= "<a href=\"" . AmpConfig::get('web_path') . "/shout.php?action=show_add_shout&type=" . $this->object_type . "&id=" . $this->object_id . "\">" . UI::get_icon('comment', T_('Post Shout')) . "</a>"; } $html .= "</div>"; } $html .= "<div class='shoutbox-user'>" . T_('by') . " "; if ($this->user > 0) { $user = new User($this->user); $user->format(); if ($details) { $html .= $user->f_link; } else { $html .= $user->username; } } else { $html .= T_('Guest'); } $html .= "</div>"; $html .= "</div>"; $html .= "</div>"; return $html; }
?> </a> </li> <?php if ($democratic->is_enabled()) { ?> <li> <?php echo Ajax::button('?page=democratic&action=send_playlist&democratic_id=' . $democratic->id, 'all', T_('Play'), 'play_democratic'); ?> <?php echo Ajax::text('?page=democratic&action=send_playlist&democratic_id=' . $democratic->id, T_('Play Democratic Playlist'), 'play_democratic_full_text'); ?> </li> <li> <?php echo Ajax::button('?page=democratic&action=clear_playlist&democratic_id=' . $democratic->id, 'delete', T_('Clear Playlist'), 'clear_democratic'); ?> <?php echo Ajax::text('?page=democratic&action=clear_playlist&democratic_id=' . $democratic->id, T_('Clear Playlist'), 'clear_democratic_full_text'); ?> </li> <?php } } ?> </ul> </div> <?php UI::show_box_bottom();
/** * Get unbroadcast link. * @param int $id * @return string */ public static function get_unbroadcast_link($id) { $link = "<div class=\"broadcast-action\">"; $link .= Ajax::button('?page=player&action=unbroadcast&broadcast_id=' . $id, 'broadcast', T_('Unbroadcast'), 'broadcast_action'); $link .= "</div>"; $link .= "<div class=\"broadcast-info\">(<span id=\"broadcast_listeners\">0</span>)</div>"; return $link; }
echo $playlist->id; ?> "><?php echo UI::get_icon('batch_download', T_('Batch Download')); ?> </a> <?php echo T_('Batch Download'); ?> </li> <?php } ?> <li> <?php echo Ajax::button('?action=basket&type=search&id=' . $playlist->id, 'add', T_('Add All'), 'play_playlist'); ?> <?php echo T_('Add All'); ?> </li> <?php if ($playlist->has_access()) { ?> <li> <a href="<?php echo AmpConfig::get('web_path'); ?> /smartplaylist.php?action=delete_playlist&playlist_id=<?php echo $playlist->id; ?>
echo Ajax::button('?page=stream&action=directplay&object_type=video&object_id=' . $libitem->id, 'play', T_('Play'), 'play_video_' . $libitem->id); ?> <?php if (Stream_Playlist::check_autoplay_append()) { ?> <?php echo Ajax::button('?page=stream&action=directplay&object_type=video&object_id=' . $libitem->id . '&append=true', 'play_add', T_('Play last'), 'addplay_video_' . $libitem->id); ?> <?php } ?> <?php if (Stream_Playlist::check_autoplay_next()) { ?> <?php echo Ajax::button('?page=stream&action=directplay&object_type=video&object_id=' . $libitem->id . '&playnext=true', 'play_next', T_('Play next'), 'nextplay_video_' . $libitem->id); ?> <?php } } ?> </div> </td> <?php if (Art::is_enabled()) { ?> <td class="cel_cover"> <?php $art_showed = false; if ($libitem->get_default_art_kind() == 'preview') { $art_showed = Art::display('video', $libitem->id, $libitem->f_title, 9, $libitem->link, false, 'preview');
echo Ajax::button('?page=stream&action=directplay&object_type=video&object_id=' . $video->id, 'play', T_('Play'), 'play_video_' . $video->id); ?> <?php if (Stream_Playlist::check_autoplay_append()) { ?> <?php echo Ajax::button('?page=stream&action=directplay&object_type=video&object_id=' . $video->id . '&append=true', 'play_add', T_('Play last'), 'addplay_video_' . $video->id); ?> <?php } ?> <?php } ?> <?php echo Ajax::button('?action=basket&type=video&id=' . $video->id, 'add', T_('Add to temporary playlist'), 'add_video_' . $video->id); ?> <?php if (!AmpConfig::get('use_auth') || Access::check('interface', '25')) { ?> <?php if (AmpConfig::get('sociable')) { ?> <a href="<?php echo AmpConfig::get('web_path'); ?> /shout.php?action=show_add_shout&type=video&id=<?php echo $video->id; ?> "><?php echo UI::get_icon('comment', T_('Post Shout'));
/** * display_home * This display the module in home page */ public function display_home() { if (AmpConfig::get('userflags')) { $userflags = Userflag::get_latest(null, -1, $this->maxitems); $i = 0; echo '<div class="home_plugin"><table class="tabledata">'; foreach ($userflags as $userflag) { $item = new $userflag['type']($userflag['id']); $item->format(); $user = new User($userflag['user']); $user->format(); if ($item->id) { echo '<tr class="' . ($i % 2 == 0 ? 'even' : 'odd') . '"><td>'; echo '<div>'; echo '<div style="float: left;">'; echo '<span style="font-weight: bold;">' . $item->f_link . '</span> '; echo '<span style="margin-right: 10px;">'; if (AmpConfig::get('directplay')) { echo Ajax::button('?page=stream&action=directplay&object_type=' . $userflag['type'] . '&object_id=' . $userflag['id'], 'play', T_('Play'), 'play_' . $userflag['type'] . '_' . $userflag['id']); if (Stream_Playlist::check_autoplay_append()) { echo Ajax::button('?page=stream&action=directplay&object_type=' . $userflag['type'] . '&object_id=' . $userflag['id'] . '&append=true', 'play_add', T_('Play last'), 'addplay_' . $userflag['type'] . '_' . $userflag['id']); } } echo Ajax::button('?action=basket&type=' . $userflag['type'] . '&id=' . $userflag['id'], 'add', T_('Add to temporary playlist'), 'play_full_' . $userflag['id']); echo '</span>'; echo '</div>'; echo '<div style="float: right; opacity: 0.5;">' . T_('recommended by') . ' ' . $user->f_link . '</div>'; echo '</div><br />'; echo '<div style="margin-left: 30px;">'; echo '<div style="float: left; margin-right: 20px;">'; $thumb = UI::is_grid_view('album') ? 2 : 11; $item->display_art($thumb); echo '</div>'; echo '<div style="white-space: normal;">' . $item->get_description() . '</div>'; echo '</div>'; echo '</td></tr>'; $i++; } } echo '</table></div>'; } }
?> </li> <?php } ?> <li> <?php echo Ajax::button('?action=basket&type=playlist&id=' . $playlist->id, 'add', T_('Add all to temporary playlist'), 'play_playlist'); ?> <?php echo Ajax::text('?action=basket&type=playlist&id=' . $playlist->id, T_('Add all to temporary playlist'), 'play_playlist_text'); ?> </li> <li> <?php echo Ajax::button('?action=basket&type=playlist_random&id=' . $playlist->id, 'random', T_('Random all to temporary playlist'), 'play_playlist_random'); ?> <?php echo Ajax::text('?action=basket&type=playlist_random&id=' . $playlist->id, T_('Random all to temporary playlist'), 'play_playlist_random_text'); ?> </li> <?php if ($GLOBALS['user']->has_access('50') && AmpConfig::get('channel')) { ?> <li> <a href="<?php echo AmpConfig::get('web_path'); ?> /channel.php?action=show_create&type=playlist&id=<?php echo $playlist->id; ?>
* 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ ?> <td class="cel_play"> <span class="cel_play_content"> </span> <div class="cel_play_hover"> <?php if (AmpConfig::get('directplay')) { echo Ajax::button('?page=stream&action=directplay&object_type=channel&object_id=' . $libitem->id, 'play', T_('Play'), 'play_channel_' . $libitem->id); } ?> </div> </td> <td class="cel_id"><?php echo $libitem->id; ?> </td> <td class="cel_name"><?php echo $libitem->name; ?> </td> <td class="cel_interface"><?php echo $libitem->interface; ?>
<td class="cel_track"> <?php echo scrub_out($object['track']); ?> </td> <td<?php echo $class; ?> > <?php echo $localplay->format_name($object['name'], $object['id']); ?> </td> <td class="cel_action"> <?php echo Ajax::button('?page=localplay&action=delete_track&id=' . intval($object['id']), 'delete', T_('Delete'), 'localplay_delete_' . intval($object['id'])); ?> </td> </tr> <?php } if (!count($object_ids)) { ?> <tr class="<?php echo UI::flip_class(); ?> "> <td colspan="3"><span class="error"><?php echo T_('No Records Found'); ?> </span></td>
} if (Access::check('interface', '25')) { if (AmpConfig::get('share')) { Share::display_ui('playlist', $libitem->id, false); } } if ($libitem->has_access()) { ?> <a id="<?php echo 'edit_playlist_' . $libitem->id; ?> " onclick="showEditDialog('playlist_row', '<?php echo $libitem->id; ?> ', '<?php echo 'edit_playlist_' . $libitem->id; ?> ', '<?php echo T_('Playlist edit'); ?> ', 'playlist_row_')"> <?php echo UI::get_icon('edit', T_('Edit')); ?> </a> <?php echo Ajax::button('?page=browse&action=delete_object&type=playlist&id=' . $libitem->id, 'delete', T_('Delete'), 'delete_playlist_' . $libitem->id, '', '', T_('Do you really want to delete the playlist?')); } ?> </td>
/** * Show action buttons. */ public function show_action_buttons() { if ($this->id) { if (!$this->accepted) { if ($GLOBALS['user']->has_access('75')) { echo Ajax::button('?page=index&action=accept_wanted&mbid=' . $this->mbid, 'enable', T_('Accept'), 'wanted_accept_' . $this->mbid); } } if ($GLOBALS['user']->has_access('75') || Wanted::has_wanted($this->mbid) && $this->accepted != '1') { echo " " . Ajax::button('?page=index&action=remove_wanted&mbid=' . $this->mbid, 'disable', T_('Remove'), 'wanted_remove_' . $this->mbid); } } else { echo Ajax::button('?page=index&action=add_wanted&mbid=' . $this->mbid . ($this->artist ? '&artist=' . $this->artist : '&artist_mbid=' . $this->artist_mbid) . '&name=' . urlencode($this->name) . '&year=' . $this->year, 'add_wanted', T_('Add to wanted list'), 'wanted_add_' . $this->mbid); } }
} } ?> </div> </td> <td class="cel_artist"><?php echo $artist->f_name_link; ?> </td> <td class="cel_add"> <span class="cel_item_add"> <?php echo Ajax::button('?action=basket&type=artist&id=' . $artist->id, 'add', T_('Add to temporary playlist'), 'add_artist_' . $artist->id); ?> <?php echo Ajax::button('?action=basket&type=artist_random&id=' . $artist->id, 'random', T_('Random to temporary playlist'), 'random_artist_' . $artist->id); ?> <a id="<?php echo 'add_playlist_' . $artist->id; ?> " onclick="showPlaylistDialog(event, 'artist', '<?php echo $artist->id; ?> ')"> <?php echo UI::get_icon('playlist_add', T_('Add to existing playlist')); ?> </a> </span> </td> <td class="cel_songs"><?php
</dt> <dd class="<?php echo $rowparity; ?> "> <?php if (AmpConfig::get('directplay')) { ?> <?php echo Ajax::button('?page=stream&action=directplay&object_type=video&object_id=' . $video->id, 'play', T_('Play'), 'play_video_' . $video->id); ?> <?php if (Stream_Playlist::check_autoplay_append()) { ?> <?php echo Ajax::button('?page=stream&action=directplay&object_type=video&object_id=' . $video->id . '&append=true', 'play_add', T_('Play last'), 'addplay_video_' . $video->id); ?> <?php } ?> <?php } ?> <?php if (!AmpConfig::get('use_auth') || Access::check('interface', '25')) { ?> <?php if (AmpConfig::get('sociable')) { ?> <a href="<?php echo AmpConfig::get('web_path');