DEMO SITE v1.7.15

Labels and classes Default theme

Label() method will change all field names in all screens, column_name() - only grid headers.

HIDE CODE
<?php
	$xcrud = Xcrud::get_instance();
    $xcrud->table('employees');
    $xcrud->label('lastName','Surname');
    $xcrud->label('firstName','Name');
    $xcrud->label('officeCode','Office code')->label('reportsTo','Reports to')->label('jobTitle','Job title');
    $xcrud->column_name('firstName', 'NaMe!'); // only column renaming
    $xcrud->column_class('extension','align-center font-bold'); // any classname
    // predefined classnames: align-left, align-right, align-center, font-bold, font-italic, text-underline
    echo $xcrud->render();
?>

Employees

#SurnameNaMe!ExtensionEmailOffice codeReports toJob title 
1doofTom7898x103tking@classicmodelcars.com51102Sales Rep
2NishiMamix105323mnishi@classicmodelcars.com51056Sales Rep
3GerardMartinm15mgerard@classicmodelcars.com41102Sales Rep
4dsafdsafnamedsafaaa@classicmodelcars.com3mr
5dasfdsfadsdsafasdf2
6sdsddsfiles444
7вфывфыв
8
9AAAssstest.test@test.com7fffff
10blanchjordis1122pepe@pep.com2111CEO
Add Export into CSV Print
Search