diff options
author | xgizzmo <xgizzmo@ampache> | 2006-01-10 05:03:18 +0000 |
---|---|---|
committer | xgizzmo <xgizzmo@ampache> | 2006-01-10 05:03:18 +0000 |
commit | 67d76f09c28d0c6abae6d966f4cc00a5428bdc74 (patch) | |
tree | c52e3c1c1d9bf75de21b2bc812fa34aa78aa10af /templates/show_access_list.inc | |
parent | 883cd9e478cf740f7b6bdd5fa089c4eefda97b7a (diff) | |
download | ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.tar.gz ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.tar.bz2 ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.zip |
Code clean up
Diffstat (limited to 'templates/show_access_list.inc')
-rw-r--r-- | templates/show_access_list.inc | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/templates/show_access_list.inc b/templates/show_access_list.inc index a2aa79d0..25729ded 100644 --- a/templates/show_access_list.inc +++ b/templates/show_access_list.inc @@ -29,6 +29,7 @@ */ $row_classes = array('even','odd'); +$web_path = conf('web_path'); ?> <p class="header1"><?php print _("Host Access to Your Catalog"); ?></p> @@ -40,34 +41,34 @@ other Ampache servers to connect to it to share catalog information. Use tool b to add any server's IP address that you want to access your Ampache catalog or be able to stream from this server.</p> -<p><a href="<?php print conf('web_path'); ?>/admin/access.php?action=show_add_host"><?php print _("Add Entry"); ?></a></p> +<p><a href="<?php echo $web_path; ?>/admin/access.php?action=show_add_host"><?php echo _("Add Entry"); ?></a></p> <table cellspacing="1" cellpadding="3" class="border"> - <tr class="table-header" align="center"> - <td><?php print _("Name"); ?></td> - <td><?php print _("Start Address"); ?></td> - <td><?php print _("End Address"); ?></td> - <td><?php print _("Level"); ?></td> - <td><?php print _("Action"); ?></td> - </tr> +<tr class="table-header" align="center"> + <td><?php print _("Name"); ?></td> + <td><?php print _("Start Address"); ?></td> + <td><?php print _("End Address"); ?></td> + <td><?php print _("Level"); ?></td> + <td><?php print _("Action"); ?></td> +</tr> <?php if (count($list)) { -/* Start foreach List Item */ -foreach ($list as $access) { + /* Start foreach List Item */ + foreach ($list as $access) { ?> -<tr class="<?php print $row_classes[0]; ?>"> - <td><?php print scrub_out($access->name); ?></td> - <td><?php print int2ip($access->start); ?></td> - <td><?php print int2ip($access->end); ?></td> - <td><?php print $access->get_level_name(); ?></td> - <td> - <a href="<?php echo conf('web_path'); ?>/admin/access.php?action=show_edit_host&access_id=<?php echo scrub_out($access->id); ?>"><?php echo _('Edit'); ?></a> - | - <a href="<?php echo conf('web_path'); ?>/admin/access.php?action=show_confirm_delete&access_id=<?php print scrub_out($access->id); ?>"><?php print _("Revoke"); ?></a> - </td> -</tr> -<?php $row_classes = array_reverse($row_classes); ?> -<?php } // end foreach ?> + <tr class="<?php print $row_classes[0]; ?>"> + <td><?php print scrub_out($access->name); ?></td> + <td><?php print int2ip($access->start); ?></td> + <td><?php print int2ip($access->end); ?></td> + <td><?php print $access->get_level_name(); ?></td> + <td> + <a href="<?php echo $web_path; ?>/admin/access.php?action=show_edit_host&access_id=<?php echo scrub_out($access->id); ?>"><?php echo _('Edit'); ?></a> + | + <a href="<?php echo $web_path; ?>/admin/access.php?action=show_confirm_delete&access_id=<?php print scrub_out($access->id); ?>"><?php print _("Revoke"); ?></a> + </td> + </tr> + <?php $row_classes = array_reverse($row_classes); ?> + <?php } // end foreach ?> <?php } // end if count ?> </table> |