Plugins
$pdocrud->addPlugin("knob");
echo $pdocrud->loadPluginJsCode("knob",".pdocrud-number"); //to add plugin
//
// PASSWORD STRENGTH BAR
$pdocrud->fieldCssClass("password", array("password"));// add css classes to apply plugin later on that css class
$pdocrud->addPlugin("bootstrap-pwstrength");//to add plugin
// optional parameters for the bootstrap pwstrength plugin
$params["ui"] = array("showProgressBar"=> "true");
$params["common"] = array("showVerdictsInsideProgressBar"=> "true");
$params["rules"] = array("wordRepetitions"=> "true");
echo $pdocrud->loadPluginJsCode("bootstrap-pwstrength",".password",$params);//to add plugin call on class .password elements
$pdocrud->addPlugin("bootstrap-inputmask");
$pdocrud->fieldDataAttr("product_name", array("placeholder"=>"default format is [9-]AAA-999"));//optional
$pdocrud->addPlugin("bootstrap-fileinput-master");
$pdocrud->addPlugin("bootstrap-colorpicker");
$pdocrud->addPlugin("chosen");
$pdocrud->addPlugin("timepicker");
$pdocrud->addPlugin("select2");
$pdocrud->addPlugin("knob");
$pdocrud->addPlugin("datatable");
$pdocrud->addPlugin("jQuery-Word-and-Character-Counter");
$pdocrud->addPlugin("ckeditor");//to add plugin
$pdocrud->fieldCssClass("product_description", array("ckeditor"));
$pdocrud->addPlugin("summernote");
$pdocrud->addPlugin("fullcalendar");
$pdocrud->addPlugin("bootstrap-tag-input");
$pdocrud->addPlugin("rateit");
$pdocrud->addPlugin("bootstrap-pwstrength");
//
echo $pdocrud->loadPluginJsCode("bootstrap-inputmask",".product_name", array("mask"=> "'[9-]AAA-999'"));//to add plugin call on .product_name elements
echo $pdocrud->loadPluginJsCode("bootstrap-fileinput-master","input[type=file]");//to add plugin call on input[type=file] elements
echo $pdocrud->loadPluginJsCode("bootstrap-colorpicker","input[type=text]");//to add plugin call on input[type=text] elements
echo $pdocrud->loadPluginJsCode("chosen",".pdocrud-select");//to add plugin call on class .pdocrud-select elements
echo $pdocrud->loadPluginJsCode("timepicker","input[type=text]");
echo $pdocrud->loadPluginJsCode("select2","select");
echo $pdocrud->loadPluginJsCode("knob","input[type=number]");
echo $pdocrud->loadPluginJsCode("datatable",".pdocrud-table");
echo $pdocrud->loadPluginJsCode("jQuery-Word-and-Character-Counter","input[type=text]");
//echo $pdocrud->loadPluginJsCode("ckeditor","cHJvZHVjdHMjJHByb2R1Y3RfZGVzY3JpcHRpb25AM2RzZnNkZioqOTkzNDMyNA==");
echo $pdocrud->loadPluginJsCode("summernote",".summernote");
echo $pdocrud->loadPluginJsCode("fullcalendar","#fullcalendar",$data);
echo $pdocrud->loadPluginJsCode("bootstrap-tag-input",".tagsinput");
$pdocrud->loadPluginJsCode("rateit",".rateit");
//
// CREATE VERTICAL TIMELINE
$pdocrud = new PDOCrud();
$pdocrud->addPlugin("vertical-timeline-master");//to add plugin
$data = $pdocrud->getPDOModelObj()->orderBy(array("message_date"))->select("message");//get data to be displayed in time line e.g. getting data from message table
//Create html from data
//You can print_r the $data to understand the column name that needs to be used to create the block.
$block = "";
if(count($data)){
foreach($data as $row){
$block .="
".$row["message_thread_code"]."
".$row["message"]."
Read more
".$row["message_date"]."
";
}
}
$html_data = array("$block
");
echo $pdocrud->render("HTML", $html_data);