Coments like template – default theme

This trick allows you use add and grid view per one page

table('images');
$xcrud1->change_type('image', 'image', false, array(
        'width' => 450,
        'thumbs' => array(array(
                'height' => 55,
                'width' => 120,
                'crop' => true,
                'marker' => '_th'))));
    //$xcrud1->columns("*");
    //$xcrud1->unset_edit()->unset_view();
    //$xcrud1->hide_button('add');
    echo $xcrud1->render();
	$moo=$xcrud1;
	//print_r ($moo);
    foreach($moo as $foo){
		print_r ($foo).'
'; } ?>
cefd615fe00a97925e16c75d304f752c214aa00bArray
(
)
Array
(
[upload_button] => xcrud-button xcrud-green
[upload_button_icon] => icon-upload
[remove_button] => xcrud-button xcrud-red
[remove_button_icon] => icon-close
[image] =>
[details_container] => xcrud-details-table
[details_row] =>
[details_label_cell] =>
[details_field_cell] =>
[tabs_container] => xcrud-tabs
[tabs_header_row] => nav nav-tabs
[tabs_header_cell] =>
[tabs_header_link] =>
[tabs_content] => tab-content
[tabs_content_pane] => tab-pane
[tabs_first_element] => active
[bool_field] =>
[int_field] =>
[float_field] =>
[text_field] =>
[textarea_field] =>
[texteditor_field] =>
[price_field] =>
[coord_field] =>
[address_field] =>
[date_field] =>
[datetime_field] =>
[time_field] =>
[timestamp_field] =>
[select_field] =>
[multiselect_field] =>
[radio_field] =>
[checkboxes_field] =>
[remote_image_field] =>
[remote_image] =>
[point_map] =>
[point_field] => xcrud-inline
[point_search] => xcrud-inline
[search_container] =>
[search_go] => xcrud-button xcrud-green
[search_reset] => xcrud-button xcrud-red
[search_open] => xcrud-button xcrud-cyan
[search_phrase] => xcrud-input-small
[search_from] => xcrud-input-small
[search_to] => xcrud-input-small
[search_range] => xcrud-input-small
[search_fieldlist] => xcrud-input-small
[search_phrase_dropdown] => xcrud-input-small
[grid_default] => xcrud-button
[grid_default_icon] => icon-star
[grid_edit] => xcrud-orange
[grid_edit_icon] => icon-pencil
[grid_remove] => xcrud-button xcrud-red
[grid_remove_icon] => icon-remove
[grid_view] => xcrud-button xcrud-cyan
[grid_view_icon] => icon-info-2
[grid_duplicate] => xcrud-button
[grid_duplicate_icon] => icon-copy-3
[limit_list] => xcrud-button
[pagination_container] => xcrud-pagination
[pagination_item] =>
[pagination_active] => active
[pagination_dots] =>
[tooltip_icon] => icon-question
[modal_icon] => icon-expand
[slide_down_icon] => icon-arrow-down
[slide_up_icon] => icon-arrow-up
)
Array
(
[images.id] =>
[images.image] => 1
[images.title] => 1
[images.description] => 1
[images.body] => 1
[images.sourcetext] => 1
[images.sourceurl] => 1
[images.tags] => 1
[images.userid] => 1
[images.dateadded] => 1
[images.active] => 1
)
Array
(
[count] => 0
)
1388140799

Leave a Reply

Your email address will not be published. Required fields are marked *