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 25 entries

# Product id Product name Product price Product sell price Discount Product description Product image Qty available Added date Product rating Total Actions
1 1 PP 300 100% Read More 232 0000-00-00 00:00:00 2 300
2 3 SFSDF 300 1% Read More 232 2016-12-14 10:34:00 2 300
3 4 PPP 2522 0.12% Read More 22 0000-00-00 00:00:00 21 2522
4 5 PPP 2522 0.12% Read More 22 0000-00-00 00:00:00 21 2522
5 6 PPP 2522 0.12% Read More 22 0000-00-00 00:00:00 21 2522
6 7 PP 990 0.9% Read More 232 0000-00-00 00:00:00 2 990
7 8 PP 990 0.9% Read More 232 0000-00-00 00:00:00 2 990
8 9 PP 990 0.9% Read More 232 0000-00-00 00:00:00 2 990
9 10 NEHA 333 3.33% Read More 33 0000-00-00 00:00:00 3 333
10 11 NEHA 33 333 3.33% Read More 33 0000-00-00 00:00:00 3 366
# Product id Product name Product price Product sell price Discount Product description Product image Qty available Added date Product rating Total Actions