From b784c171d59acb666ce4ee76f7ac3c895fa824ce Mon Sep 17 00:00:00 2001 From: cfapress Date: Thu, 22 Jan 2009 18:04:04 +0000 Subject: [PATCH] cleaned up report display --- interface/forms/ros/report.php | 67 ++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 28 deletions(-) rewrite interface/forms/ros/report.php (73%) diff --git a/interface/forms/ros/report.php b/interface/forms/ros/report.php dissimilarity index 73% index 0c3e69bfc..42bf7fb91 100755 --- a/interface/forms/ros/report.php +++ b/interface/forms/ros/report.php @@ -1,28 +1,39 @@ - $value) { -if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") { - continue; -} -if ($value == "on") { -$value = "yes"; -} -$key=ucwords(str_replace("_"," ",$key)); -print "$key: $value"; -$count++; -if ($count == $cols) { -$count = 0; -print "\n"; -} -} -} -print ""; -} -?> +"; + + foreach($data as $key => $value) { + if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || + $key == "authorized" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") + { + continue; + } + + // skip the N/A values -- cfapress, Jan 2009 + if ($value == "N/A") { continue; } + + if ($value == "on") { $value = "yes"; } + + $key=ucwords(str_replace("_"," ",$key)); + print ""; + $count++; + + if ($count == $cols) { + $count = 0; + print "\n"; + } + } + } + print "
$key: $value
"; +} +?> -- 2.11.4.GIT