e0fee74c by Jeff Balicki

added filters to reports

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent b1d519b4
......@@ -32,7 +32,7 @@ function array2table($arr, $width = "100%", $with_form = false) {
HTML;
}
echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"$width\" class=\"cbv-report-list\">\n";
echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"$width\" id=\"cbv-report-list\" class=\"cbv-report-list\">\n";
echo "<thead>\n";
echo "<tr>\n";
......@@ -46,6 +46,13 @@ HTML;
echo "</th>\n";
}
echo "</tr>\n";
echo "<tr class='filters' >\n";
foreach(current($arr) as $key => $value){
echo "<th valign='bottom'>";
echo $key."&nbsp;";
echo "</th>\n";
}
echo "</tr>\n";
echo "</thead>\n";
echo "<tbody>\n";
......@@ -83,6 +90,7 @@ HTML;
if ($with_form) {
echo '</form>';
}
echo '<style>.filters{display: none;}</style>';
}
function CSVExport($arr) {
......