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
4b05591d
authored
2011-02-22 18:44:54 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
mysql table and branding updates
1 parent
376d8314
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
com/Branding/css/tenzing.css
com/MySQLTable/MySQLTable.php
com/Branding/css/tenzing.css
View file @
4b05591
...
...
@@ -199,14 +199,14 @@ table.tabular-data tbody td {}
#cboxOverlay
{
background
:
#3b0d32
;}
#colorbox
{}
#cboxContent
{
margin-top
:
32px
;}
#cboxContent
{
margin-top
:
32px
;
background
:
#3b0d32
;
}
#cboxLoadedContent
{
background
:
#fff
;
padding
:
1px
;}
#cboxLoadingGraphic
{
background
:
url(../images/ajax-loader.gif)
no-repeat
center
center
;}
#cboxLoadingOverlay
{
background
:
#
000
;}
#cboxTitle
{
position
:
absolute
;
top
:
-22px
;
left
:
0
;
color
:
#
000
;}
#cboxLoadingOverlay
{
background
:
#
3b0d32
;}
#cboxTitle
{
position
:
absolute
;
top
:
-22px
;
left
:
0
;
color
:
#
fff
;}
#cboxCurrent
{
position
:
absolute
;
top
:
-22px
;
right
:
205px
;
text-indent
:
-9999px
;}
#cboxSlideshow
,
#cboxPrevious
,
#cboxNext
,
#cboxClose
{
text-indent
:
-9999px
;
width
:
20px
;
height
:
20px
;
position
:
absolute
;
top
:
-20px
;
background
:
url(../images/controls.png)
no-repeat
0
0
;
}
#cboxClose
{
display
:
none
;
}
#cboxSlideshow
,
#cboxPrevious
,
#cboxNext
,
#cboxClose
{
height
:
20px
;
position
:
absolute
;
top
:
-20px
;
/* background:url(../images/controls.png) no-repeat 0 0; */
}
#cboxClose
{
display
:
none
;
color
:
#fff
;
}
#cboxPrevious
{
background-position
:
0px
0px
;
right
:
44px
;}
#cboxPrevious
.hover
{
background-position
:
0px
-25px
;}
#cboxNext
{
background-position
:
-25px
0px
;
right
:
22px
;}
...
...
@@ -460,4 +460,14 @@ input.dp-applied {
.TzAdminPagination
{
text-align
:
right
;
padding-right
:
20px
;
font-size
:
11px
;
margin
:
5px
0
;}
.TzAdminPagination
span
{
margin-right
:
5px
;
}
.TzAdminPagination
a
{
margin-right
:
5px
;
}
\ No newline at end of file
.TzAdminPagination
a
{
margin-right
:
5px
;
}
.listing-wrap
{
}
.cbv-report-list
thead
td
,
.cbv-report-list
thead
th
,
.cbv-report-list
tbody
th
,
.cbv-report-list
tbody
td
{
text-align
:
left
;
font-size
:
11px
;
word-wrap
:
normal
;
padding
:
3px
5px
;
}
.cbv-report-list
tbody
tr
.odd
td
{
background-color
:
#f5f5f5
;
}
.cbv-report-list
thead
th
{
background-color
:
#e1e1e1
;
border-bottom
:
1px
solid
#e8e8e8
;
}
.cbv-report-list
tbody
td
{
border-bottom
:
1px
solid
#e8e8e8
;
min-width
:
120px
;}
\ No newline at end of file
...
...
com/MySQLTable/MySQLTable.php
View file @
4b05591
...
...
@@ -7,7 +7,7 @@ function array2table($arr,$width)
if
(
$count
>
0
){
reset
(
$arr
);
$num
=
count
(
current
(
$arr
));
echo
"<table border=
\"
0
\"
cellpadding=
\"
5
\"
cellspacing=
\"
0
\"
width=
\"
$width
\"
class=
\"
cbv-report
\"
>
\n
"
;
echo
"<table border=
\"
0
\"
cellpadding=
\"
5
\"
cellspacing=
\"
0
\"
width=
\"
$width
\"
class=
\"
cbv-report
-list
\"
>
\n
"
;
echo
"<thead>
\n
"
;
echo
"<tr>
\n
"
;
foreach
(
current
(
$arr
)
as
$key
=>
$value
){
...
...
@@ -18,8 +18,10 @@ function array2table($arr,$width)
echo
"</tr>
\n
"
;
echo
"</thead>
\n
"
;
echo
"<tbody>
\n
"
;
$wi
=
0
;
while
(
$curr_row
=
current
(
$arr
))
{
echo
"<tr>
\n
"
;
$rclass
=
(
$wi
%
2
)
?
"odd"
:
""
;
echo
"<tr class='"
.
$rclass
.
"'>
\n
"
;
$col
=
1
;
while
(
false
!==
(
$curr_field
=
current
(
$curr_row
)))
{
echo
"<td>"
;
...
...
@@ -33,6 +35,7 @@ function array2table($arr,$width)
$col
++
;
}
echo
"</tr>
\n
"
;
$wi
++
;
next
(
$arr
);
}
echo
"</tbody>
\n
"
;
...
...
Please
register
or
sign in
to post a comment