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 La Rochelle Gifts 40.67.8555 Nantes France
2 Baane Mini Imports 07-98 9555 Stavern Norway
3 Zbyszek Zbyszek Piestrzeniewicz 266427555 Warszawa Poland
4 Blauer See Auto, Co. +49 69 66 90 2555 Frankfurt Germany
5 Land of Toys Inc. 2125557818 NYC USA
6 Euro+ Shopping Channel (91) 555 94 44 Madrid Spain
7 Volvo Model Replicas, Co 0921-12 3555 Luleå Sweden
8 Danish Wholesale Imports 31 12 3555 Kobenhavn Denmark
9 Saveley & Henriot, Co. 78.32.5555 Lyon France
10 Dragon Souveniers, Ltd. +65 221 7555 Singapore Singapore

Search