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", "dialog", array("length"=>4,"showreadmore"=>true));
                                $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 96 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 4 300
2 3 SFSDF 300 1% Read More 232 2016-12-14 10:34:00 5 300
3 6 PPP 25220 0.12% Read More 22 0000-00-00 00:00:00 21 25220
4 7 PP 990 0.9% Read More 232 0000-00-00 00:00:00 4 990
5 8 PP 990 0.9% Read More 232 0000-00-00 00:00:00 2 990
6 9 PP 990 0.9% Read More 232 0000-00-00 00:00:00 2 990
7 10 NEHA 333 3.33% Read More 33 0000-00-00 00:00:00 3 333
8 11 NEHA 33 333 3.33% Read More 33 0000-00-00 00:00:00 3 366
9 12 NEHA 33 333 3.33% Read More 33 0000-00-00 00:00:00 3 366
10 13 SADF 3434 0.34% Read More 324 0000-00-00 00:00:00 34 3434
# Product id Product name Product price Product sell price Discount Product description Product image Qty available Added date Product rating Total Actions