DEMO SITE v1.7.15

Labels and classes Bootstrap 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 
1TsengFoon Yueo224ftseng@classicmodelcars.com21143Sales Rep
2VanaufGeorgex4102gvanauf@classicmodelcars.com31143Sales Rep
3BondurLouix6493lbondur@classicmodelcars.com21102Sales Rep
4CastilloPamelax2759pcastillo@classicmodelcars.com21102Sales Rep
5BottLarryx2311lbott@classicmodelcars.com71102Sales Rep
6JonesBarryx102bjones@classicmodelcars.com71102Sales Rep
7FixterAndyx101afixter@classicmodelcars.com71088Sales Rep
8MarshPeterx102pmarsh@classicmodelcars.com61088Sales Rep
9KingTomx103tking@classicmodelcars.com61088Sales Rep
10NishiMamix101mnishi@classicmodelcars.com51056Sales Rep
Search