'username', 'index'=>'username', 'width'=>'100', 'align'=>'left'), array('name'=>'firstname', 'index'=>'firstname', 'width'=>'100', 'align'=>'left'), array('name'=>'lastname', 'index'=>'lastname', 'width'=>'100', 'align'=>'left'), array('name'=>'exam_password', 'index'=>'exam_password', 'width'=>'100', 'align'=>'left','sortable'=>'false'), //array('name'=>'actions', 'index'=>'actions', 'width'=>'100', 'align'=>'left','formatter'=>'action_formatter','sortable'=>'false') ); //Autowidth $extra_params['autowidth'] = 'true'; //height auto $extra_params['height'] = 'auto'; //With this function we can add actions to the jgrid (edit, delete, etc) /* $action_links = 'function action_formatter(cellvalue, options, rowObject) { return \''.Display::return_icon('edit.png',get_lang('Edit'),'',ICON_SIZE_SMALL).''. ' '.Display::return_icon('copy.png',get_lang('Copy'),'',ICON_SIZE_SMALL).''. ' '.Display::return_icon('delete.png',get_lang('Delete'),'',ICON_SIZE_SMALL).''. '\'; }';*/ $action_links = null; $room = UserManager::get_extra_user_data_by_field(api_get_user_id(), 'exam_room'); $room = $room['exam_room']; $schedule = UserManager::get_extra_user_data_by_field(api_get_user_id(), 'exam_schedule'); $schedule = $schedule['exam_schedule']; echo Display::page_subheader(get_lang('UserList').": ".$room." - ".$schedule); ?>