DEMO SITE v1.7.15

Simple relation Default theme

You can get options list from other table

HIDE CODE
<?php
	$xcrud = Xcrud::get_instance();
    $xcrud->table('employees');
    $xcrud->table_name('Simple relation');
    $xcrud->relation('officeCode','offices','officeCode','city');
    $xcrud->label('officeCode','Office in');
    $xcrud->columns('firstName,lastName,officeCode');
    $xcrud->fields('firstName,lastName,officeCode');
    $xcrud->limit(10);
    echo $xcrud->render();
?>

Simple relation

#FirstnameLastnameOffice in 
1Tom7898doofTokyo
2MamiNishiTokyo
3MartinmGerardParis
4namedsafdsafNYC
5dsafasdfdasfdsfads
6dssdsd
7вфывфыв
8
9AsssAALondon
10jordisblanchBoston
Add Export into CSV Print
Search