diff options
Diffstat (limited to 'config/haproxy-dev/haproxy_listeners.php')
-rwxr-xr-x | config/haproxy-dev/haproxy_listeners.php | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/config/haproxy-dev/haproxy_listeners.php b/config/haproxy-dev/haproxy_listeners.php index 5ffe0a09..f66b51bf 100755 --- a/config/haproxy-dev/haproxy_listeners.php +++ b/config/haproxy-dev/haproxy_listeners.php @@ -106,17 +106,26 @@ include("head.inc"); <td width="10%" class="listhdrr">Type</td> <td width="10%" class="listhdrr">Server pool</td> <td width="5%" class="list"></td> - </tr> - <?php $i = 0; foreach ($a_backend as $backend): ?> + </tr> +<?php + $i = 0; + foreach ($a_backend as $backend): + $textss = $textse = ""; + if ($backend['status'] != 'active') { + $textss = "<span class=\"gray\">"; + $textse = "</span>"; + } +?> <tr> <td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$i;?>';"> - <?=$backend['name'];?> + <?=$textss . $backend['name'] . $textse;?> </td> <td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$i;?>';"> - <?=$backend['desc'];?> + <?=$textss . $backend['desc'] . $textse;?> </td> <td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$i;?>';"> <?php + echo $textss; if($backend['extaddr'] == "any") echo "0.0.0.0"; elseif($backend['extaddr']) @@ -124,13 +133,14 @@ include("head.inc"); else echo get_current_wan_address('wan'); echo ":" . $backend['port']; + echo $textse; ?> </td> <td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$i;?>';"> - <?=$backend['type'];?> + <?=$textss . $backend['type'] . $textse;?> </td> <td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$i;?>';"> - <?=$backend['pool'];?> + <?=$textss . $backend['pool'] . $textse;?> </td> <td class="list" nowrap> <table border="0" cellspacing="0" cellpadding="1"> |