59d538b7 by Kevin Burton

merged 202 to tag 0.4

1 parent 5440a825
...@@ -605,4 +605,91 @@ div.dataTables_paginate span.paginate_active { ...@@ -605,4 +605,91 @@ div.dataTables_paginate span.paginate_active {
605 } 605 }
606 606
607 .small-table {} 607 .small-table {}
608 .small-table td { font-size:11px; padding:3px; }
...\ No newline at end of file ...\ No newline at end of file
608 .small-table td { font-size:11px; padding:3px; }
609
610 /* LABELS | ex. <div class="label label-red label-register"> */
611 .label {
612 width:43px;
613 height: 14px;
614 position:relative;
615 background-color: transparent;
616 background-image: url(/wp-content/themes/cbv/assets/images/labels.gif);
617 background-repeat: no-repeat;
618 background-position: 0px 0px;
619 display: block;
620 }
621
622 .label-black-attending { background-position: 0px 0px; }
623 .label-black-attending:hover {background-position: -43px 0px;}
624
625 .label-black-register { background-position: 0px -14px; }
626 .label-black-register:hover { background-position: -43px -14px; }
627
628 .label-black-taken { background-position: 0px -28px; }
629 .label-black-taken:hover { background-position: -43px -28px; }
630
631 .label-black-enrol { background-position: 0px -42px; }
632 .label-black-enrol:hover { background-position: -43px -42px; }
633
634 .label-red-attending { background-position: -43px 0px; }
635 .label-red-attending:hover {background-position: -86px 0px;}
636
637 .label-red-register { background-position: -43px -14px; }
638 .label-red-register:hover { background-position: -86px -14px; }
639
640 .label-red-taken { background-position: -43px -28px; }
641 .label-red-taken:hover { background-position: -86px -28px; }
642
643 .label-red-enrol { background-position: -43px -42px; }
644 .label-red-enrol:hover { background-position: -86px -42px; }
645
646 .label-grey-closed { background-position: -86px -56px; }
647 .label-grey-closed:hover { background-position: -86px -56px; }
648
649 .label-grey-fail { background-position: -86px -70px; }
650 .label-grey-fail:hover { background-position: -86px -70px; }
651
652 .label-black-fail { background-position: 0px -70px; }
653 .label-black-fail:hover { background-position: 0px -70px; }
654
655 .label-red-fail { background-position: -43px -70px; }
656 .label-red-fail:hover { background-position: -43px -70px; }
657
658 .label-grey-pass { background-position: -86px -84px; }
659 .label-grey-pass:hover { background-position: -86px -84px; }
660
661 .label-black-pass { background-position: 0px -84px; }
662 .label-black-pass:hover { background-position: 0px -84px; }
663
664 .label-red-pass { background-position: -43px -84px; }
665 .label-red-pass:hover { background-position: -43px -84px; }
666
667
668 .label-black-print {background-position: 0px -98px; }
669 .label-black-print:hover {background-position: -86px -98px;}
670
671 .label-grey-print {background-position: -86px -98px;}
672 .label-grey-print:hover {background-position: 0px -98px;}
673
674 .label-red-print {background-position: -43px -98px;}
675 .label-red-print:hover {background-position: -86px -98px;}
676
677 /* VIEW */
678 .label-black-view {background-position: 0px -112px; }
679 .label-black-view:hover {background-position: -86px -112px;}
680
681 .label-grey-view {background-position: -86px -112px;}
682 .label-grey-view:hover {background-position: 0px -112px;}
683
684 .label-red-view {background-position: -43px -112px;}
685 .label-red-view:hover {background-position: -86px -112px;}
686
687 /* COMING */
688 .label-black-coming {background-position: 0px -126px; }
689 .label-black-coming:hover {background-position: -86px -126px;}
690
691 .label-grey-coming {background-position: -86px -126px;}
692 .label-grey-coming:hover {background-position: 0px -126px;}
693
694 .label-red-coming {background-position: -43px -126px;}
695 .label-red-coming:hover {background-position: -86px -126px;}
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -90,11 +90,11 @@ use WP_User; ...@@ -90,11 +90,11 @@ use WP_User;
90 90
91 91
92 92
93 //$html .= '<div style="text-align:right;margin-bottom:5px;"><a href="/invoices/?view='.$invoice->ID.'&pagename=invoice-preview" class="label label-black-print print-invoice-handler" target="_blank"></a></div>'; 93 $html .= '<div style="text-align:right;margin-bottom:5px;"><a href="/invoices/?view='.$invoice->ID.'&pagename=invoice-preview" class="label label-black-print print-invoice-handler" target="_blank"></a></div>';
94 94
95 $html .= Invoice\DrawInvoice($invoice,true); 95 $html .= Invoice\DrawInvoice($invoice,true);
96 96
97 //$html .= '<div style="text-align:right;margin-top:5px;"><a href="/invoices/?view='.$_GET['view'].'&pagename=invoice-preview" class="label label-black-print print-invoice-handler" target="_blank"></a></div>'; 97 $html .= '<div style="text-align:right;margin-top:5px;"><a href="/invoices/?view='.$_GET['view'].'&pagename=invoice-preview" class="label label-black-print print-invoice-handler" target="_blank"></a></div>';
98 98
99 99
100 print $html; 100 print $html;
......