Columns & Fields

[xcrud]    
    $xcrud = Xcrud::get_instance();
    $xcrud->table('customers');
    $xcrud->columns('customerName,phone,city,country'); // columns in grid
    $xcrud->fields('customerName,creditLimit,salesRepEmployeeNumber'); // fields in details
    echo $xcrud->render();
[/xcrud]

Customers

# Customername Phone City Country  
1 Australian Collectors, Co. 03 9520 4555 Melbourne Australia
2 La Rochelle Gifts 40.67.8555 Nantes France
3 Baane Mini Imports 07-98 9555 Stavern Norway
4 Mini Gifts Distributors Ltd. 4155551450 San Rafael USA
5 Zbyszek Zbyszek Piestrzeniewicz 266427555 Warszawa Poland
6 Blauer See Auto, Co. +49 69 66 90 2555 Frankfurt Germany
7 Mini Wheels Co. 6505555787 San Francisco USA
8 Land of Toys Inc. 2125557818 NYC USA
9 Euro+ Shopping Channel (91) 555 94 44 Madrid Spain
10 Volvo Model Replicas, Co 0921-12 3555 Luleå Sweden

Search