Plugin Rateit example - PDOCrud
Message :
Producttable
Showing 1 to 10 of 27 entries
$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
Showing 1 to 10 of 27 entries