added filters to reports
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
9 additions
and
1 deletions
| ... | @@ -32,7 +32,7 @@ function array2table($arr, $width = "100%", $with_form = false) { | ... | @@ -32,7 +32,7 @@ function array2table($arr, $width = "100%", $with_form = false) { |
| 32 | HTML; | 32 | HTML; |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"$width\" class=\"cbv-report-list\">\n"; | 35 | echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"$width\" id=\"cbv-report-list\" class=\"cbv-report-list\">\n"; |
| 36 | echo "<thead>\n"; | 36 | echo "<thead>\n"; |
| 37 | echo "<tr>\n"; | 37 | echo "<tr>\n"; |
| 38 | 38 | ||
| ... | @@ -46,6 +46,13 @@ HTML; | ... | @@ -46,6 +46,13 @@ HTML; |
| 46 | echo "</th>\n"; | 46 | echo "</th>\n"; |
| 47 | } | 47 | } |
| 48 | echo "</tr>\n"; | 48 | echo "</tr>\n"; |
| 49 | echo "<tr class='filters' >\n"; | ||
| 50 | foreach(current($arr) as $key => $value){ | ||
| 51 | echo "<th valign='bottom'>"; | ||
| 52 | echo $key." "; | ||
| 53 | echo "</th>\n"; | ||
| 54 | } | ||
| 55 | echo "</tr>\n"; | ||
| 49 | echo "</thead>\n"; | 56 | echo "</thead>\n"; |
| 50 | echo "<tbody>\n"; | 57 | echo "<tbody>\n"; |
| 51 | 58 | ||
| ... | @@ -83,6 +90,7 @@ HTML; | ... | @@ -83,6 +90,7 @@ HTML; |
| 83 | if ($with_form) { | 90 | if ($with_form) { |
| 84 | echo '</form>'; | 91 | echo '</form>'; |
| 85 | } | 92 | } |
| 93 | echo '<style>.filters{display: none;}</style>'; | ||
| 86 | } | 94 | } |
| 87 | 95 | ||
| 88 | function CSVExport($arr) { | 96 | function CSVExport($arr) { | ... | ... |
-
Please register or sign in to post a comment