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
376d8314
authored
2011-02-18 21:18:20 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updating the colorbox, and also added MySQLTable class
1 parent
9ea0a7cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
44 deletions
com/Branding/css/tenzing.css
com/Branding/images/controls.png
com/MySQLTable/MySQLTable.php
com/Branding/css/tenzing.css
View file @
376d831
...
...
@@ -175,15 +175,16 @@ table.tabular-data tbody td {}
margin
:
.5em
0em
;
}
/*
ColorBox Core Style
The following rules are the styles that are consistant between themes.
Avoid changing this area to maintain compatability with future versions of ColorBox.
*/
#colorbox
,
#cboxOverlay
,
#cboxWrapper
{
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
999
8
;
overflow
:
hidden
;}
#colorbox
,
#cboxOverlay
,
#cboxWrapper
{
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
999
9
;
overflow
:
hidden
;}
#cboxOverlay
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;}
#cboxMiddleLeft
,
#cboxBottomLeft
{
clear
:
left
;}
#cboxContent
{
position
:
relative
;
overflow
:
hidden
;}
#cboxContent
{
position
:
relative
;
overflow
:
visible
;}
#cboxLoadedContent
{
overflow
:
auto
;}
#cboxLoadedContent
iframe
{
display
:
block
;
width
:
100%
;
height
:
100%
;
border
:
0
;}
#cboxTitle
{
margin
:
0
;}
...
...
@@ -191,52 +192,34 @@ table.tabular-data tbody td {}
#cboxPrevious
,
#cboxNext
,
#cboxClose
,
#cboxSlideshow
{
cursor
:
pointer
;}
/*
E
xample user style
ColorBox e
xample user style
The following rules are ordered and tabbed in a way that represents the
order/nesting of the generated HTML, so that the structure easier to understand.
*/
#cboxOverlay
{
background
:
#3b0d32
;
}
#cboxOverlay
{
background
:
#3b0d32
;}
#colorbox
{}
#cboxTopLeft
{
width
:
21px
;
height
:
21px
;
background
:
url(../images/controls.png)
no-repeat
-100px
0
;}
#cboxTopRight
{
width
:
21px
;
height
:
21px
;
background
:
url(../images/controls.png)
no-repeat
-129px
0
;}
#cboxBottomLeft
{
width
:
21px
;
height
:
21px
;
background
:
url(../images/controls.png)
no-repeat
-100px
-29px
;}
#cboxBottomRight
{
width
:
21px
;
height
:
21px
;
background
:
url(../images/controls.png)
no-repeat
-129px
-29px
;}
#cboxMiddleLeft
{
width
:
21px
;
background
:
url(../images/controls.png)
left
top
repeat-y
;}
#cboxMiddleRight
{
width
:
21px
;
background
:
url(../images/controls.png)
right
top
repeat-y
;}
#cboxTopCenter
{
height
:
21px
;
background
:
url(../images/border.png)
0
0
repeat-x
;}
#cboxBottomCenter
{
height
:
21px
;
background
:
url(../images/border.png)
0
-29px
repeat-x
;}
#cboxContent
{
background
:
#fff
;}
#cboxLoadedContent
{
margin-bottom
:
28px
;}
#cboxTitle
{
position
:
absolute
;
bottom
:
4px
;
left
:
0
;
text-align
:
center
;
width
:
100%
;
color
:
#949494
;}
#cboxCurrent
{
position
:
absolute
;
bottom
:
4px
;
left
:
58px
;
color
:
#949494
;}
#cboxSlideshow
{
position
:
absolute
;
bottom
:
4px
;
right
:
30px
;
color
:
#0092ef
;}
#cboxPrevious
{
position
:
absolute
;
bottom
:
0
;
left
:
0px
;
background
:
url(../images/controls.png)
no-repeat
-75px
0px
;
width
:
25px
;
height
:
25px
;
text-indent
:
-9999px
;}
#cboxPrevious
.hover
{
background-position
:
-75px
-25px
;}
#cboxNext
{
position
:
absolute
;
bottom
:
0
;
left
:
27px
;
background
:
url(../images/controls.png)
no-repeat
-50px
0px
;
width
:
25px
;
height
:
25px
;
text-indent
:
-9999px
;}
#cboxNext
.hover
{
background-position
:
-50px
-25px
;}
#cboxLoadingOverlay
{
background
:
url(../images/loading_background.png)
no-repeat
center
center
;}
#cboxLoadingGraphic
{
background
:
url(../images/loading.gif)
no-repeat
center
center
;}
#cboxClose
{
position
:
absolute
;
bottom
:
0
;
right
:
0
;
background
:
url(../images/controls.png)
no-repeat
-25px
0px
;
width
:
25px
;
height
:
25px
;
text-indent
:
-9999px
;}
#cboxClose
.hover
{
background-position
:
-25px
-25px
;}
#cboxContent
{
margin-top
:
32px
;}
#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
;}
#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
;
}
#cboxPrevious
{
background-position
:
0px
0px
;
right
:
44px
;}
#cboxPrevious
.hover
{
background-position
:
0px
-25px
;}
#cboxNext
{
background-position
:
-25px
0px
;
right
:
22px
;}
#cboxNext
.hover
{
background-position
:
-25px
-25px
;}
#cboxClose
{
background-position
:
-50px
0px
;
right
:
0
;}
#cboxClose
.hover
{
background-position
:
-50px
-25px
;}
.cboxSlideshow_on
#cboxPrevious
,
.cboxSlideshow_off
#cboxPrevious
{
right
:
66px
;}
.cboxSlideshow_on
#cboxSlideshow
{
background-position
:
-75px
-25px
;
right
:
44px
;}
.cboxSlideshow_on
#cboxSlideshow
.hover
{
background-position
:
-100px
-25px
;}
.cboxSlideshow_off
#cboxSlideshow
{
background-position
:
-100px
0px
;
right
:
44px
;}
.cboxSlideshow_off
#cboxSlideshow
.hover
{
background-position
:
-75px
-25px
;}
/*
The following fixes png-transparency for IE6.
It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
Since this method does not support CSS background-positioning, it is incompatible with CSS sprites.
Colorbox preloads navigation hover classes to account for this.
!! Important Note: AlphaImageLoader src paths are relative to the HTML document,
while regular CSS background images are relative to the CSS document.
*/
.cboxIE
#cboxTopLeft
{
background
:
transparent
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
AlphaImageLoader
(
src
=
../
images
/
internet_explorer
/
borderTopLeft
.
png
,
sizingMethod
=
'scale'
);}
.cboxIE
#cboxTopCenter
{
background
:
transparent
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
AlphaImageLoader
(
src
=
//
images
/
internet_explorer
/
borderTopCenter
.
png
,
sizingMethod
=
'scale'
);}
.cboxIE
#cboxTopRight
{
background
:
transparent
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
AlphaImageLoader
(
src
=
../
images
/
internet_explorer
/
borderTopRight
.
png
,
sizingMethod
=
'scale'
);}
.cboxIE
#cboxBottomLeft
{
background
:
transparent
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
AlphaImageLoader
(
src
=
../
images
/
internet_explorer
/
borderBottomLeft
.
png
,
sizingMethod
=
'scale'
);}
.cboxIE
#cboxBottomCenter
{
background
:
transparent
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
AlphaImageLoader
(
src
=
../
images
/
internet_explorer
/
borderBottomCenter
.
png
,
sizingMethod
=
'scale'
);}
.cboxIE
#cboxBottomRight
{
background
:
transparent
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
AlphaImageLoader
(
src
=
../
images
/
internet_explorer
/
borderBottomRight
.
png
,
sizingMethod
=
'scale'
);}
.cboxIE
#cboxMiddleLeft
{
background
:
transparent
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
AlphaImageLoader
(
src
=
../
images
/
internet_explorer
/
borderMiddleLeft
.
png
,
sizingMethod
=
'scale'
);}
.cboxIE
#cboxMiddleRight
{
background
:
transparent
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
AlphaImageLoader
(
src
=
../
images
/
internet_explorer
/
borderMiddleRight
.
png
,
sizingMethod
=
'scale'
);}
.update-placeholder
{
padding-left
:
5px
;
color
:
green
;
}
...
...
@@ -473,4 +456,8 @@ input.dp-applied {
background
:
transparent
url(../images/paid.png)
top
left
no-repeat
;
}
#sidebar_meta_box
.inside
{
margin
:
0
;}
\ No newline at end of file
#sidebar_meta_box
.inside
{
margin
:
0
;}
.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
...
...
com/Branding/images/controls.png
View file @
376d831
1.22 KB
|
W:
|
H:
570 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
com/MySQLTable/MySQLTable.php
0 → 100644
View file @
376d831
<?php
namespace
Tz\WordPress\Tools\MySQLTable
;
function
array2table
(
$arr
,
$width
)
{
$count
=
count
(
$arr
);
if
(
$count
>
0
){
reset
(
$arr
);
$num
=
count
(
current
(
$arr
));
echo
"<table border=
\"
0
\"
cellpadding=
\"
5
\"
cellspacing=
\"
0
\"
width=
\"
$width
\"
class=
\"
cbv-report
\"
>
\n
"
;
echo
"<thead>
\n
"
;
echo
"<tr>
\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
"
;
while
(
$curr_row
=
current
(
$arr
))
{
echo
"<tr>
\n
"
;
$col
=
1
;
while
(
false
!==
(
$curr_field
=
current
(
$curr_row
)))
{
echo
"<td>"
;
echo
$curr_field
.
" "
;
echo
"</td>
\n
"
;
next
(
$curr_row
);
$col
++
;
}
while
(
$col
<=
$num
){
echo
"<td> </td>
\n
"
;
$col
++
;
}
echo
"</tr>
\n
"
;
next
(
$arr
);
}
echo
"</tbody>
\n
"
;
echo
"</table>
\n
"
;
}
}
function
CSVExport
(
$arr
)
{
$out
=
""
;
$count
=
count
(
$arr
);
if
(
$count
>
0
)
{
reset
(
$arr
);
$num
=
count
(
current
(
$arr
));
$k
=
0
;
foreach
(
current
(
$arr
)
as
$key
=>
$value
){
if
(
$k
>
0
)
{
$out
.=
","
;
}
$out
.=
'"'
.
str_replace
(
'"'
,
'\"'
,
$key
)
.
'"'
;
$k
++
;
}
$out
.=
"
\n
"
;
while
(
$curr_row
=
current
(
$arr
))
{
$col
=
1
;
while
(
false
!==
(
$curr_field
=
current
(
$curr_row
)))
{
if
(
$col
>
1
)
{
$out
.=
","
;
}
$out
.=
'"'
.
str_replace
(
'"'
,
'\"'
,
$curr_field
)
.
'"'
;
next
(
$curr_row
);
$col
++
;
}
while
(
$col
<=
$num
)
{
if
(
$col
>
1
)
{
$out
.=
","
;
}
$out
.=
'""'
;
$col
++
;
}
$out
.=
"
\n
"
;
next
(
$arr
);
}
}
return
$out
;
}
?>
\ No newline at end of file
Please
register
or
sign in
to post a comment