Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e0fee74c
authored
2024-03-19 13:23:20 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added filters to reports
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
b1d519b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
com/MySQLTable/MySQLTable.php
com/MySQLTable/MySQLTable.php
View file @
e0fee74
...
...
@@ -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
.
" "
;
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
)
{
...
...
Please
register
or
sign in
to post a comment