diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-10 15:54:39 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-10 15:54:39 -0500 |
commit | 3eeb82dc97a29353c00f359de01604eb6558670e (patch) | |
tree | 18e31bcd059159ad2bb70a330be72644ab1ac53f /src/usr/local/www/status_lb_vs.php | |
parent | 4419e274fdef609c408b0126203302185fb6708d (diff) | |
download | pfsense-3eeb82dc97a29353c00f359de01604eb6558670e.zip pfsense-3eeb82dc97a29353c00f359de01604eb6558670e.tar.gz |
Fixed #5405
Diffstat (limited to 'src/usr/local/www/status_lb_vs.php')
-rw-r--r-- | src/usr/local/www/status_lb_vs.php | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/src/usr/local/www/status_lb_vs.php b/src/usr/local/www/status_lb_vs.php index ad50b5c..9e8f72a 100644 --- a/src/usr/local/www/status_lb_vs.php +++ b/src/usr/local/www/status_lb_vs.php @@ -98,8 +98,9 @@ if(empty($a_vs)) print('<div class="alert alert-danger">No load balancers have been configured!</div>'); else { ?> - <div class="table-responsive"></div> - <table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable> +<div class="table-responsive"></div> + <table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable> + <thead> <tr> <th><?=gettext("Name"); ?></th> <th><?=gettext("Address"); ?></th> @@ -107,6 +108,8 @@ else { <th><?=gettext("Status"); ?></th> <th><?=gettext("Description"); ?></th> </tr> + </thead> + <tbody> <?php $i = 0; foreach ($a_vs as $vsent): ?> @@ -150,18 +153,24 @@ else { ?> <td bgcolor="<?=$bgcolor?>"> <?=$rdr_a[$vsent['name']]['status']?> - </td> - <td> + +<?php + if (!empty($rdr_a[$vsent['name']]['total'])) { +?> + Total Sessions: <?=$rdr_a[$vsent['name']]['total']?><br>/> <?php - if (!empty($rdr_a[$vsent['name']]['total'])) { ?> - Total Sessions: <?=$rdr_a[$vsent['name']]['total']?><br>/><?php } - if (!empty($rdr_a[$vsent['name']]['last'])) { ?> - Last: <?=$rdr_a[$vsent['name']]['last']?><br>/><?php + if (!empty($rdr_a[$vsent['name']]['last'])) { +?> + Last: <?=$rdr_a[$vsent['name']]['last']?><br>/> +<?php } - if (!empty($rdr_a[$vsent['name']]['average'])) { ?> - Average: <?=$rdr_a[$vsent['name']]['average']?><?php - } ?> + if (!empty($rdr_a[$vsent['name']]['average'])) { +?> + Average: <?=$rdr_a[$vsent['name']]['average']?> +<?php + } +?> </td> <td> <?=htmlspecialchars($vsent['descr'])?> @@ -169,8 +178,9 @@ else { </tr> <?php $i++; endforeach; ?> - </table> - </div> + </tbody> + </table> +</div> <?php } |