diff options
author | Phil Davis <phil.davis@inf.org> | 2015-05-13 16:36:24 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-05-13 16:36:24 +0545 |
commit | 0162f9a1f078f25a935642f0b3db6a51b9b207a0 (patch) | |
tree | df456107826e6755f6e1dc5f142fa62fba441c0e /usr/local/www/load_balancer_pool.php | |
parent | c8f7068d1aaccf4ca1d1f782704289e9519233dc (diff) | |
download | pfsense-0162f9a1f078f25a935642f0b3db6a51b9b207a0.zip pfsense-0162f9a1f078f25a935642f0b3db6a51b9b207a0.tar.gz |
Code style Load Balancer
Diffstat (limited to 'usr/local/www/load_balancer_pool.php')
-rw-r--r-- | usr/local/www/load_balancer_pool.php | 77 |
1 files changed, 40 insertions, 37 deletions
diff --git a/usr/local/www/load_balancer_pool.php b/usr/local/www/load_balancer_pool.php index 46e4e1c..a2e8c54 100644 --- a/usr/local/www/load_balancer_pool.php +++ b/usr/local/www/load_balancer_pool.php @@ -110,45 +110,48 @@ include("head.inc"); <?php print_info_box_np(sprintf(gettext("The load balancer configuration has been changed%sYou must apply the changes in order for them to take effect."), "<br />"));?><br /> <?php endif; ?> <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="load balancer pools"> - <tr><td class="tabnavtbl"> - <?php - /* active tabs */ - $tab_array = array(); - $tab_array[] = array(gettext("Pools"), true, "load_balancer_pool.php"); - $tab_array[] = array(gettext("Virtual Servers"), false, "load_balancer_virtual_server.php"); - $tab_array[] = array(gettext("Monitors"), false, "load_balancer_monitor.php"); - $tab_array[] = array(gettext("Settings"), false, "load_balancer_setting.php"); - display_top_tabs($tab_array); - ?> - </td></tr> - <tr> - <td> - <div id="mainarea"> + <tr><td class="tabnavtbl"> + <?php + /* active tabs */ + $tab_array = array(); + $tab_array[] = array(gettext("Pools"), true, "load_balancer_pool.php"); + $tab_array[] = array(gettext("Virtual Servers"), false, "load_balancer_virtual_server.php"); + $tab_array[] = array(gettext("Monitors"), false, "load_balancer_monitor.php"); + $tab_array[] = array(gettext("Settings"), false, "load_balancer_setting.php"); + display_top_tabs($tab_array); + ?> + </td></tr> + <tr> + <td> + <div id="mainarea"> <?php - $t = new MainTable(); - $t->edit_uri('load_balancer_pool_edit.php'); - $t->my_uri('load_balancer_pool.php'); - $t->add_column(gettext('Name'),'name',10); - $t->add_column(gettext('Mode'),'mode',10); - $t->add_column(gettext('Servers'),'servers',15); - $t->add_column(gettext('Port'),'port',10); - $t->add_column(gettext('Monitor'),'monitor',10); - $t->add_column(gettext('Description'),'descr',25); - $t->add_button('edit'); - $t->add_button('dup'); - $t->add_button('del'); - $t->add_content_array($a_pool); - $t->display(); + $t = new MainTable(); + $t->edit_uri('load_balancer_pool_edit.php'); + $t->my_uri('load_balancer_pool.php'); + $t->add_column(gettext('Name'),'name',10); + $t->add_column(gettext('Mode'),'mode',10); + $t->add_column(gettext('Servers'),'servers',15); + $t->add_column(gettext('Port'),'port',10); + $t->add_column(gettext('Monitor'),'monitor',10); + $t->add_column(gettext('Description'),'descr',25); + $t->add_button('edit'); + $t->add_button('dup'); + $t->add_button('del'); + $t->add_content_array($a_pool); + $t->display(); ?> - - </div> - </td> - </tr> - <tr><td> - <br /><span class="red"><strong><?=gettext("Hint:");?></strong></span><br /> - <?= sprintf(gettext("The Load Balancer in %s 2.0 is for server load balancing, not Multi-WAN. For load balancing or failover for multiple WANs, use "), $g['product_name']);?> - <a href="/system_gateway_groups.php"><?= gettext("Gateway Groups"); ?></a> - </td></tr> + </div> + </td> + </tr> + <tr> + <td> + <br /> + <span class="red"><strong><?=gettext("Hint:");?></strong></span> + <br /> + <?= sprintf(gettext("The Load Balancer in %s 2.0 is for server load balancing, not Multi-WAN. For load balancing or failover for multiple WANs, use "), $g['product_name']);?> + <a href="/system_gateway_groups.php"><?= gettext("Gateway Groups"); ?></a> + </td> + </tr> </table> </form> <?php include("fend.inc"); ?> |