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
9496df67
authored
2011-04-04 16:10:46 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added the invoice print button and added proper CSS in branding to do so to match the front end
1 parent
7583384e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
2 deletions
com/Branding/css/tenzing.css
com/UserManager/views/edit_user_payhistory.php
com/Branding/css/tenzing.css
View file @
9496df6
...
...
@@ -606,3 +606,90 @@ div.dataTables_paginate span.paginate_active {
.small-table
{}
.small-table
td
{
font-size
:
11px
;
padding
:
3px
;
}
/* LABELS | ex. <div class="label label-red label-register"> */
.label
{
width
:
43px
;
height
:
14px
;
position
:
relative
;
background-color
:
transparent
;
background-image
:
url(/wp-content/themes/cbv/assets/images/labels.gif)
;
background-repeat
:
no-repeat
;
background-position
:
0px
0px
;
display
:
block
;
}
.label-black-attending
{
background-position
:
0px
0px
;
}
.label-black-attending
:hover
{
background-position
:
-43px
0px
;}
.label-black-register
{
background-position
:
0px
-14px
;
}
.label-black-register
:hover
{
background-position
:
-43px
-14px
;
}
.label-black-taken
{
background-position
:
0px
-28px
;
}
.label-black-taken
:hover
{
background-position
:
-43px
-28px
;
}
.label-black-enrol
{
background-position
:
0px
-42px
;
}
.label-black-enrol
:hover
{
background-position
:
-43px
-42px
;
}
.label-red-attending
{
background-position
:
-43px
0px
;
}
.label-red-attending
:hover
{
background-position
:
-86px
0px
;}
.label-red-register
{
background-position
:
-43px
-14px
;
}
.label-red-register
:hover
{
background-position
:
-86px
-14px
;
}
.label-red-taken
{
background-position
:
-43px
-28px
;
}
.label-red-taken
:hover
{
background-position
:
-86px
-28px
;
}
.label-red-enrol
{
background-position
:
-43px
-42px
;
}
.label-red-enrol
:hover
{
background-position
:
-86px
-42px
;
}
.label-grey-closed
{
background-position
:
-86px
-56px
;
}
.label-grey-closed
:hover
{
background-position
:
-86px
-56px
;
}
.label-grey-fail
{
background-position
:
-86px
-70px
;
}
.label-grey-fail
:hover
{
background-position
:
-86px
-70px
;
}
.label-black-fail
{
background-position
:
0px
-70px
;
}
.label-black-fail
:hover
{
background-position
:
0px
-70px
;
}
.label-red-fail
{
background-position
:
-43px
-70px
;
}
.label-red-fail
:hover
{
background-position
:
-43px
-70px
;
}
.label-grey-pass
{
background-position
:
-86px
-84px
;
}
.label-grey-pass
:hover
{
background-position
:
-86px
-84px
;
}
.label-black-pass
{
background-position
:
0px
-84px
;
}
.label-black-pass
:hover
{
background-position
:
0px
-84px
;
}
.label-red-pass
{
background-position
:
-43px
-84px
;
}
.label-red-pass
:hover
{
background-position
:
-43px
-84px
;
}
.label-black-print
{
background-position
:
0px
-98px
;
}
.label-black-print
:hover
{
background-position
:
-86px
-98px
;}
.label-grey-print
{
background-position
:
-86px
-98px
;}
.label-grey-print
:hover
{
background-position
:
0px
-98px
;}
.label-red-print
{
background-position
:
-43px
-98px
;}
.label-red-print
:hover
{
background-position
:
-86px
-98px
;}
/* VIEW */
.label-black-view
{
background-position
:
0px
-112px
;
}
.label-black-view
:hover
{
background-position
:
-86px
-112px
;}
.label-grey-view
{
background-position
:
-86px
-112px
;}
.label-grey-view
:hover
{
background-position
:
0px
-112px
;}
.label-red-view
{
background-position
:
-43px
-112px
;}
.label-red-view
:hover
{
background-position
:
-86px
-112px
;}
/* COMING */
.label-black-coming
{
background-position
:
0px
-126px
;
}
.label-black-coming
:hover
{
background-position
:
-86px
-126px
;}
.label-grey-coming
{
background-position
:
-86px
-126px
;}
.label-grey-coming
:hover
{
background-position
:
0px
-126px
;}
.label-red-coming
{
background-position
:
-43px
-126px
;}
.label-red-coming
:hover
{
background-position
:
-86px
-126px
;}
\ No newline at end of file
...
...
com/UserManager/views/edit_user_payhistory.php
View file @
9496df6
...
...
@@ -90,11 +90,11 @@ use WP_User;
//
$html
.= '<div style="
text
-
align
:
right
;
margin
-
bottom
:
5
px
;
"><a href="
/
invoices
/?
view
=
'.$invoice->ID.'
&
pagename
=
invoice
-
preview
" class="
label
label
-
black
-
print
print
-
invoice
-
handler
" target="
_blank
"></a></div>';
$html
.= '<div style="
text
-
align
:
right
;
margin
-
bottom
:
5
px
;
"><a href="
/
invoices
/?
view
=
'.$invoice->ID.'
&
pagename
=
invoice
-
preview
" class="
label
label
-
black
-
print
print
-
invoice
-
handler
" target="
_blank
"></a></div>';
$html
.= Invoice\DrawInvoice(
$invoice
,true);
//
$html
.= '<div style="
text
-
align
:
right
;
margin
-
top
:
5
px
;
"><a href="
/
invoices
/?
view
=
'.$_GET['
view
'].'
&
pagename
=
invoice
-
preview
" class="
label
label
-
black
-
print
print
-
invoice
-
handler
" target="
_blank
"></a></div>';
$html
.= '<div style="
text
-
align
:
right
;
margin
-
top
:
5
px
;
"><a href="
/
invoices
/?
view
=
'.$_GET['
view
'].'
&
pagename
=
invoice
-
preview
" class="
label
label
-
black
-
print
print
-
invoice
-
handler
" target="
_blank
"></a></div>';
print
$html
;
...
...
Please
register
or
sign in
to post a comment