Complex Panels NEW

Create Dashboards

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();	
?>

Gallery

#
Actions
ImageTitleDescriptionActive
1
Q
Qunc congue facilisis bibendum. Fusce mollis elit
Nunc congue facilisis bibendum. Fusce mollis elit…
2
C
Cras quis quam quis est interdum suscipit. Ut orci risus, ornare in porta at, varius viverra arcu.
Donec augue massa, vehicula et lacinia nec,…
3
D
Duis elementum facilisis massa quis rhoncus.
Fusce accumsan, odio ut placerat congue, mauris…
Search