summaryrefslogtreecommitdiffstats
path: root/templates/show_localplay_controllers.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 05:41:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 05:41:26 +0000
commitf4ad61dccfd3b92760659f0382ca51a14e92a8b8 (patch)
tree3b7b5743a7d75e14c28fcccf96391c42b674e00c /templates/show_localplay_controllers.inc.php
parent83815169ceb211d4449928b21c02539795f81624 (diff)
downloadampache-f4ad61dccfd3b92760659f0382ca51a14e92a8b8.tar.gz
ampache-f4ad61dccfd3b92760659f0382ca51a14e92a8b8.tar.bz2
ampache-f4ad61dccfd3b92760659f0382ca51a14e92a8b8.zip
- Fixed missing web_path on catalog functions
- New Localplay Controller Abstract class, required for controllers - Tweaked preferences as needed for localplay mojo
Diffstat (limited to 'templates/show_localplay_controllers.inc.php')
-rw-r--r--templates/show_localplay_controllers.inc.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/templates/show_localplay_controllers.inc.php b/templates/show_localplay_controllers.inc.php
new file mode 100644
index 00000000..3a45b481
--- /dev/null
+++ b/templates/show_localplay_controllers.inc.php
@@ -0,0 +1,49 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2007 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 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.
+
+*/
+$web_path = Config::get('web_path');
+?>
+<!-- Plugin we've found -->
+<table class="tabledata" border="0" cellspacing="0">
+<tr class="table-header">
+ <th><?php echo _('Name'); ?></th>
+ <th><?php echo _('Description'); ?></th>
+ <th><?php echo _('Version'); ?></th>
+ <th><?php echo _('Action'); ?></th>
+</tr>
+<?php
+foreach ($controllers as $controller) {
+ $localplay = new Localplay($controller);
+ $localplay->format();
+?>
+<tr class="<?php echo flip_class(); ?>">
+ <td><?php echo scrub_out($localplay->f_name); ?></td>
+ <td><?php echo scrub_out($localplay->f_description); ?></td>
+ <td><?php echo scrub_out($localplay->f_version); ?></td>
+ <td><?php echo $action; ?></td>
+</tr>
+<?php } if (!count($controllers)) { ?>
+<tr class="<?php echo flip_class(); ?>">
+ <td colspan="4"><span class="error"><?php echo _('No Records Found'); ?></span></td>
+</tr>
+<?php } ?>
+</table>
+<br />
+