summaryrefslogtreecommitdiffstats
path: root/templates/show_modules.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_modules.inc.php')
-rw-r--r--templates/show_modules.inc.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/templates/show_modules.inc.php b/templates/show_modules.inc.php
index 23c1d593..8b0b139f 100644
--- a/templates/show_modules.inc.php
+++ b/templates/show_modules.inc.php
@@ -30,25 +30,29 @@
$localplay_modules = get_localplay_controllers();
$web_path = conf('web_path');
?>
-<table class="text-box">
+<span class="header2"><?php echo _('Modules'); ?></span>
+<table class="border" border="0" cellspacing="0">
<tr class="table-header">
<th><?php echo _('Module Name'); ?></th>
<th><?php echo _('Action'); ?></th>
</tr>
<?php
foreach ($localplay_modules as $module) {
- $action = _('Active');
if (!verify_localplay_preferences($module)) {
$action = "<a href=\"" . $web_path . "/admin/modules.php?action=insert_localplay_preferences&amp;type=" . $module . "\">" .
_('Activate') . "</a>";
}
+ else {
+ $action = "<a href=\"" . $web_path . "/admin/modules.php?action=confirm_remove_localplay_preferences&amp;type=" . $module . "\">" .
+ _('Deactivate') . "</a>";
+ }
?>
-<tr>
+<tr class="<?php echo flip_class(); ?>">
<td><?php echo scrub_out($module); ?></td>
<td><?php echo $action; ?></td>
</tr>
<?php } if (!count($localplay_modules)) { ?>
-<tr>
+<tr class="<?php echo flip_class(); ?>">
<td colspan="2"><span class="error"><?php echo _('No Records Found'); ?></span></td>
</tr>
<?php } ?>