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
| # | Surname | NaMe! | Extension | Office code | Reports to | Job title | ||
|---|---|---|---|---|---|---|---|---|
| 1 | View Edit Remove | |||||||
| 2 | View Edit Remove | |||||||
| 3 | View Edit Remove | |||||||
| 4 | 8 | View Edit Remove | ||||||
| 5 | Fausto | Herrera | Roi_4 | herrera.fausto@myoffice.com | 8 | View Edit Remove | ||
| 6 | Herrera | Fausto | Roi_4 | faustoherrera@outlook.com | 7 | View Edit Remove | ||
| 7 | View Edit Remove | |||||||
| 8 | View Edit Remove | |||||||
| 9 | View Edit Remove | |||||||
| 10 | asdasd | asdasd | asdasd | Meerasdasd.2007@Yahoo.com | 7 | asdasdasd | View Edit Remove |