Labels and classes

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
Actions
1FixterAndyx101afixter@classicmodelcars.com1231088Sales Rep View Edit Remove
2MarshPeterx102pmarsh@classicmodelcars.com61088Sales Rep View Edit Remove
3KingTomx103tking@classicmodelcars.com1089Sales Rep View Edit Remove
4NishiMamix101mnishi@classicmodelcars.com1056Sales Rep View Edit Remove
5GerardMartinmx2312mgerard@classicmodelcars.com41102Sales Rep View Edit Remove
6aaaaaaaaaaaaaa View Edit Remove
7 View Edit Remove
8azertberthetotot.frberthe.azert@myoffice.com1' View Edit Remove
93432432kjkjkjkpippo.dadmkmkma98898989pippo.dada.3432432@myoffice.com6 View Edit Remove
10 View Edit Remove
Search