diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-11-18 11:40:47 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-11-18 11:40:47 -0200 |
commit | e91a43d6febae9826a9ef7261ba8cf234f3eeae9 (patch) | |
tree | be530e62ad959f1052a485690a7cfade2aa3b279 | |
parent | d56dc72a43405ef7276f2b22ce4dc204ac1469fe (diff) | |
download | pfsense-e91a43d6febae9826a9ef7261ba8cf234f3eeae9.zip pfsense-e91a43d6febae9826a9ef7261ba8cf234f3eeae9.tar.gz |
Fix whitespace and indent
-rw-r--r-- | usr/local/www/widgets/widgets/captive_portal_status.widget.php | 61 |
1 files changed, 38 insertions, 23 deletions
diff --git a/usr/local/www/widgets/widgets/captive_portal_status.widget.php b/usr/local/www/widgets/widgets/captive_portal_status.widget.php index 4726ba1..9fa2709 100644 --- a/usr/local/www/widgets/widgets/captive_portal_status.widget.php +++ b/usr/local/www/widgets/widgets/captive_portal_status.widget.php @@ -88,7 +88,7 @@ if ($_GET['order']) { else if ($_GET['order'] == "mac") $order = 3; else if ($_GET['order'] == "user") - $order = 4; + $order = 4; else if ($_GET['order'] == "lastact") $order = 5; else if ($_GET['order'] == "zone") @@ -99,26 +99,41 @@ if ($_GET['order']) { } ?> <table class="sortable" id="sortabletable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="captive portal status"> - <tr> - <td class="listhdrr"><a href="?order=ip&showact=<?=$_GET['showact'];?>">IP address</a></td> - <td class="listhdrr"><a href="?order=mac&showact=<?=$_GET['showact'];?>">MAC address</a></td> - <td class="listhdrr"><a href="?order=user&showact=<?=$_GET['showact'];?>"><?=gettext("Username");?></a></td> - <?php if ($_GET['showact']): ?> - <td class="listhdrr"><a href="?order=start&showact=<?=$_GET['showact'];?>"><?=gettext("Session start");?></a></td> - <td class="listhdrr"><a href="?order=start&showact=<?=$_GET['showact'];?>"><?=gettext("Last activity");?></a></td> - <?php endif; ?> - </tr> -<?php foreach ($cpdb_all as $cpent): ?> - <tr> - <td class="listlr"><?=$cpent[2];?></td> - <td class="listr"><?=$cpent[3];?> </td> - <td class="listr"><?=$cpent[4];?> </td> - <?php if ($_GET['showact']): ?> - <td class="listr"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?></td> - <td class="listr"><?php if ($cpent[11] && ($cpent[11] > 0)) echo htmlspecialchars(date("m/d/Y H:i:s", $cpent[11]));?></td> - <?php endif; ?> - <td valign="middle" class="list nowrap"> - <a href="?order=<?=$_GET['order'];?>&showact=<?=$_GET['showact'];?>&act=del&zone=<?=$cpent[10];?>&id=<?=$cpent[5];?>" onclick="return confirm('Do you really want to disconnect this client?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="x" /></a></td> - </tr> -<?php endforeach; ?> + <tr> + <td class="listhdrr"><a href="?order=ip&showact=<?=$_GET['showact'];?>">IP address</a></td> + <td class="listhdrr"><a href="?order=mac&showact=<?=$_GET['showact'];?>">MAC address</a></td> + <td class="listhdrr"><a href="?order=user&showact=<?=$_GET['showact'];?>"><?=gettext("Username");?></a></td> +<?php + if ($_GET['showact']): +?> + <td class="listhdrr"><a href="?order=start&showact=<?=$_GET['showact'];?>"><?=gettext("Session start");?></a></td> + <td class="listhdrr"><a href="?order=start&showact=<?=$_GET['showact'];?>"><?=gettext("Last activity");?></a></td> +<?php + endif; +?> + </tr> +<?php +foreach ($cpdb_all as $cpent): +?> + <tr> + <td class="listlr"><?=$cpent[2];?></td> + <td class="listr"><?=$cpent[3];?> </td> + <td class="listr"><?=$cpent[4];?> </td> +<?php + if ($_GET['showact']): +?> + <td class="listr"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?></td> + <td class="listr"><?php if ($cpent[11] && ($cpent[11] > 0)) echo htmlspecialchars(date("m/d/Y H:i:s", $cpent[11]));?></td> +<?php + endif; +?> + <td valign="middle" class="list nowrap"> + <a href="?order=<?=$_GET['order'];?>&showact=<?=$_GET['showact'];?>&act=del&zone=<?=$cpent[10];?>&id=<?=$cpent[5];?>" onclick="return confirm('Do you really want to disconnect this client?')"> + <img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="x" /> + </a> + </td> + </tr> +<?php +endforeach; +?> </table> |