Plugin Rateit example Add rating option to display

  
                                $pdocrud = new PDOCrud();
                                $pdocrud->addPlugin("rateit");//to add plugin   
                                $pdocrud->fieldTypes("product_rating", "rateit");
                                $pdocrud->formFields(array("product_rating"));
                                $pdocrud->crudTableCol(array("product_id","product_name", "qty_available", "product_rating"));
                                $pdocrud->tableColFormatting("product_rating", "rateit");
                                $pdocrud->viewColFormatting("product_rating", "rateit");    
                                echo $pdocrud->dbTable("producttable")->render();
                                echo $pdocrud->loadPluginJsCode("rateit",".rateit");//to add plugin call on input[type=text] elements
                            

Plugin Rateit example - PDOCrud

Producttable

Showing 1 to 10 of 27 entries

# Product id Product name Qty available Product rating Actions
1 1 pp 232
2 3 sfsdf 232
3 4 ppp 22
4 5 ppp 22
5 6 ppp 22
6 7 pP 232
7 8 pP 232
8 9 pP 232
9 10 neha 33
10 11 neha 33
# Product id Product name Qty available Product rating Actions