Advanced Panels NEW Bootstrap 5 theme
Modifying panels to apply various xCRUD features
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table("gallery"); $xcrud->panel_view(true,3); //param1= true/false to be shown or not shown; //param2 = No of panels per row $xcrud->highlight_row('active', '>=', '1', '#F0FBED'); $xcrud->highlight('active', '>', '0', '#9ADAFF'); //$xcrud->columns('description'); $xcrud->fields('image,title,description,active'); $xcrud->fields_inline('image,title,description'); $xcrud->column_callback("title","getAvatar"); $xcrud->column_callback("active","getStatusSwitchRadio_Gallery"); $xcrud->create_action("deactivate_gallery","deactivate_gallery"); $xcrud->create_action("activate_gallery","activate_gallery"); $xcrud->change_type("description","textarea"); $xcrud->buttons_position('left'); $xcrud->buttons_arrange('dropdown-inline'); $xcrud->change_type('image', 'image', false, array( 'width' => 450, 'path' => '../uploads/gallery', 'thumbs' => array(array( 'height' => 55, 'width' => 120, 'crop' => true, 'marker' => '_th')))); echo $xcrud->render(); ?>