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 27 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 250 300 100% Read More 232 0000-00-00 00:00:00 2 550
2 3 SFSDF 222 300 1% Read More 232 2016-12-14 10:34:00 2 522
3 4 PPP 300 2522 0.12% Read More 22 0000-00-00 00:00:00 21 2822
4 5 PPP 300 2522 0.12% Read More 22 0000-00-00 00:00:00 21 2822
5 6 PPP 300 2522 0.12% Read More 22 0000-00-00 00:00:00 21 2822
6 7 PP 909 990 0.9% Read More 232 0000-00-00 00:00:00 2 1899
7 8 PP 909 990 0.9% Read More 232 0000-00-00 00:00:00 2 1899
8 9 PP 909 990 0.9% Read More 232 0000-00-00 00:00:00 2 1899
9 10 NEHA 201 333 3.33% Read More 33 0000-00-00 00:00:00 3 534
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