From eb83e81e311b846c9e161b40ea282fe1916588fb Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 8 Oct 2018 15:18:27 +0300 Subject: [PATCH] HS 2.0 server: Make user list more readable Order the rows based on identity and use a bit smaller font for some of the fields to make the table fit on the screen more easily. Signed-off-by: Jouni Malinen --- hs20/server/www/users.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hs20/server/www/users.php b/hs20/server/www/users.php index b6c62980b..869adf677 100644 --- a/hs20/server/www/users.php +++ b/hs20/server/www/users.php @@ -313,10 +313,10 @@ if ($id == 0 && $cmd != 'eventlog') { echo "[Eventlog] "; echo "
\n"; -echo "\n"; -echo "
UserRealmRemediationPolicyAccount typePhase 2 method(s)DevIdMAC AddressT&C\n"; +echo "\n"; +echo "
UserRealmRemediationPolicyAccount typePhase 2 method(s)DevIdMAC AddressT&C\n"; -$res = $db->query('SELECT rowid,* FROM users WHERE phase2=1'); +$res = $db->query('SELECT rowid,* FROM users WHERE phase2=1 ORDER BY identity'); foreach ($res as $row) { echo "
" . $row['identity'] . " "; @@ -324,7 +324,7 @@ foreach ($res as $row) { $rem = $row['remediation']; echo ""; if ($rem == "") { - echo "Not required"; + echo "-"; } else if ($rem == "user") { echo "User"; } else if ($rem == "policy") { @@ -339,18 +339,18 @@ foreach ($res as $row) { echo "shared"; else echo "default"; - echo "" . $row['methods']; + echo "" . $row['methods'] . ""; echo ""; $xml = xml_parser_create(); xml_parse_into_struct($xml, $row['devinfo'], $devinfo); foreach($devinfo as $k) { if ($k['tag'] == 'DEVID') { - echo $k['value']; + echo "" . $k['value'] . ""; break; } } - echo "" . $row['mac_addr']; - echo "" . $row['t_c_timestamp']; + echo "" . $row['mac_addr'] . ""; + echo "" . $row['t_c_timestamp'] . ""; echo "\n"; } echo "
\n";