PDOCrud Table Data Formatting

  
                                $pdocrud = new PDOCrud();  
                                $pdocrud->tableColFormatting("product_name", "string",array("type" =>"uppercase"));
                                $pdocrud->tableColFormatting("product_description", "string",array("type" =>"lowercase"));
                                $pdocrud->tableColFormatting("product_image", "image");
                                $pdocrud->tableColFormatting("product_description", "readmore", array("length"=>4,"showreadmore"=>true));//not showing read more 
                                $pdocrud->tableColFormatting("product_rating", "html",array("type" =>"html","str"=>"{col-name}"));
                                $pdocrud->tableColFormatting("discount", "formula",array("type" =>"percentage"));
                                $pdocrud->tableColFormatting("qyt_available", "formula",array("type" =>"number_format","decimalpoint"=>2));
                                $pdocrud->tableColAddition("Total", "sum",array("product_price","product_sell_price"));
                                $pdocrud->tableColFormatting("qyt_available", "formula",array("type" =>"round","decimalpoint"=>2));
                                $pdocrud->tableColFormatting("product_price", "formula",array("type" =>"ceil"));
                                $pdocrud->tableColFormatting("product_sell_price", "formula",array("type" =>"floor"));
                                $pdocrud->tableDataFormatting("col", "style", array("product_price",">", "200"),array("background:#000","color:#ff0"));
                                echo $pdocrud->dbTable("producttable")->render();
                                

Producttable

Showing 1 to 10 of 19 entries

# Product id Product name Product price Product sell price Discount Product description Product image Qty available Added date Product rating Total Actions
1 15 TEST PROD 12000 0.02% Read More 23 2016-08-31 00:00:00 34 12000
2 16 TEST PROD 34 3333 3.33% Read More 234 2016-08-31 00:00:00 3 3367
3 17 FGFDFDG 300 0.25% Read More 33 2016-09-15 00:00:00 5 300
4 18 TEST 2 123 0.12% Read More 213 2016-09-20 00:00:00 1 125
5 19 ?? 5 3 0% Read More 1 2016-09-28 00:00:00 1 8
6 20 RF 66 879 0.07% Read More 76 2016-09-28 00:00:00 3 945
7 21 0 0 0% Read More 87 0000-00-00 00:00:00 0 0
8 22 0 45 44 0% Read More 11 2016-12-01 00:00:00 5 89
9 23 XASASD 0 0 0% Read More 0 0000-00-00 00:00:00 0 0
10 24 0 0 0% Read More 56 0000-00-00 00:00:00 0 0
# Product id Product name Product price Product sell price Discount Product description Product image Qty available Added date Product rating Total Actions