Cells & Row Highlights
Highlight separate cells and full rows.
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table('orderdetails'); $xcrud->highlight('quantityOrdered', '<', 25, 'red'); $xcrud->highlight('quantityOrdered', '>=', 25, 'yellow'); $xcrud->highlight('quantityOrdered', '>', 40, '#8DED79'); $xcrud->highlight_row('quantityOrdered', '>=', 50, '#8DED79'); $xcrud->highlight('priceEach', '>', 100, '#9ADAFF'); //$xcrud->modal('quantityOrdered'); //$xcrud->modal('quantityOrdered', 'fa fa-user'); $xcrud->modal(array('quantityOrdered'=>'glyphicon glyphicon-search')); //$xcrud->modal(array('quantityOrdered'=>'fa fa-user')); echo $xcrud->render(); ?>
Orderdetails
# | Ordernumber | Productcode | Quantityordered | Priceeach | Orderlinenumber | |
---|---|---|---|---|---|---|
1 | 10100 | S18_4409 | 75.46 | 4 | View Edit Remove | |
2 | 10101 | S18_2325 | 108.12 | 4 | View Edit Remove | |
3 | 10101 | S18_2795 | 167.09 | 1 | View Edit Remove | |
4 | 10101 | S24_1937 | 32.53 | 3 | View Edit Remove | |
5 | 10101 | S24_2022 | 44.35 | 2 | View Edit Remove | |
6 | 10102 | S18_1342 | 95.55 | 2 | View Edit Remove | |
7 | 10102 | S18_1367 | 43.13 | 1 | View Edit Remove | |
8 | 10103 | S10_1949 | 214.3 | 11 | View Edit Remove | |
9 | 10103 | S10_4962 | 119.67 | 4 | View Edit Remove | |
10 | 10103 | S12_1666 | 121.64 | 8 | View Edit Remove |