* modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * 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. * */ $localplay = new Localplay(AmpConfig::get('localplay_controller')); $localplay->connect(); $status = $localplay->status(); if ($browse->get_show_header()) { require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; } ?> <table class="tabledata" cellpadding="0" cellspacing="0"> <thead> <tr class="th-top"> <th class="cel_track"><?php echo T_('Track'); ?> </th> <th class="cel_name"><?php echo T_('Name'); ?> </th>
public static function createJukeboxStatus($xml, Localplay $localplay, $elementName = 'jukeboxStatus') { $xjbox = $xml->addChild($elementName); $status = $localplay->status(); $xjbox->addAttribute('currentIndex', 0); // Not supported $xjbox->addAttribute('playing', $status['state'] == 'play' ? 'true' : 'false'); $xjbox->addAttribute('gain', $status['volume']); $xjbox->addAttribute('position', 0); // Not supported return $xjbox; }