Add side bar Add side bar to view/edit forms (added in v 2.6)

You can add side bar similar to profile page view of many admin template now easily using the addSidebar function. You can add it in both view as well as edit forms. You can add your custom css also to adjust it as per your template. click on edit/view action button to check sidebar.

  
                                $pdocrud = new PDOCrud();
                                //list of urls to displayed below the sidebar
                                $urls[] = array("url"=>"#profile","text" => "Profile", "icon" =>"fa fa-user", "data"=>"", "attr" =>array("data-profile"=>"user_id"),"class" => array("parent-sidebar"));
                                $urls[] = array("url"=>"#recent-activity","text" => "Recent Activity", "icon" =>"fa fa-history", "data"=>"12/12/2017", "attr" =>array(),"class" => array("parent-sidebar"));
                                 /**
                                * Add sidebar to existing data in edit/view form
                                * @param   string   $sidebarImage                        column name of image or url of image
                                * @param   string   $sidebarHeading1                     column name for sidebar heading 1 or some text
                                * @param   string   $sidebarHeading2                     column name for sidebar heading 2 or some text
                                * @param   array    $sidebarURLs                         sidebar urls
                                * @param   string   $position                            Position of the sidebar (either left or right)
                                * return   object                                        Object of class
                                */
                                $pdocrud->addSidebar("parent_profile_img","name","email",$urls,"left");
                                echo $pdocrud->dbTable("parent")->render();
                                

Deprecated: Required parameter $field follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $task follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $totalrecords follows optional parameter $page in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudHelper.php on line 191

Parent

Showing 1 to 1 of 1 entries

# Parent id Name Email Password Phone Address Profession Actions
1 1 toto a@free.fr abcdefg 0101010101 a1 p1
# Parent id Name Email Password Phone Address Profession Actions