Columns and fields Default theme
Select only needed columns and fields
HIDE CODE
SHOW CODE
<?php
$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();
?>
Customers
Customers
# | Customername | Phone | City | Country | |
1 | Blauer See Auto, Co. | +49 69 66 90 2555 | Frankfurt | Germany | |
2 | Mini Wheels Co. | 6505555787 | San Francisco | USA | |
3 | Land of Toys Inc. | 2125557818 | NYC | USA | |
4 | Volvo Model Replicas, Co | 0921-12 3555 | Luleå | Sweden | |
5 | Danish Wholesale Imports | 31 12 3555 | Kobenhavn | Denmark | |
6 | Saveley & Henriot, Co. | 78.32.5555 | Lyon | France | |
7 | Dragon Souveniers, Ltd. | +65 221 7555 | Singapore | Singapore | |
8 | Muscle Machine Inc | 2125557413 | NYC | USA | |
9 | Diecast Classics Inc. | 2155551555 | Allentown | USA | |
10 | Technics Stores Inc. | 6505556809 | Burlingame | USA | |