DEMO SITE v1.7.31

Labels and classes Minimal 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
1FraAntx5428ant.fra@myoffice.com61056Sales Manager (NA) View Edit Remove
2JenningsLesliex3291ljennings@classicmodelcars.com21143Sales Rep View Edit Remove
3ThompsonLesliex4065lthompson@classicmodelcars.com71143Sales Rep View Edit Remove
4FirrelliJuliex2173jfirrelli@classicmodelcars.com41143Sales Rep View Edit Remove
5PattersonStevex4334spatterson@classicmodelcars.com21143Sales Rep View Edit Remove
6TsengchuFoon Yueo224ftseng@classicmodelcars.com31143Sales Rep View Edit Remove
7VanaufGeorgex4102gvanauf@classicmodelcars.com31143Sales Rep View Edit Remove
8BondurLouix6493lbondur@classicmodelcars.com41102Sales Rep View Edit Remove
9HernandezGerardx2028ghernande@classicmodelcars.com41102Sales Rep View Edit Remove
10CastilloPamelax2759pcastillo@classicmodelcars.com41102Sales Rep View Edit Remove
Add Export into CSV Print Search