protectCalendar($calendarId); $item = $plugin->getCalendar($calendarId); if (empty($item)) { api_not_allowed(true); } $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; $formToString = ''; $template = new Template(); $actionLeft = Display::url( Display::return_icon( 'back.png', get_lang('Add'), null, ICON_SIZE_MEDIUM ), api_get_path(WEB_PLUGIN_PATH).'learning_calendar/start.php' ); $actions = Display::toolbarAction('toolbar-forum', [$actionLeft]); // jqgrid will use this URL to do the selects $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_calendar_users&id='.$calendarId; // The order is important you need to check the the $column variable in the model.ajax.php file $columns = [ get_lang('FirstName'), get_lang('LastName'), get_lang('Exam'), ]; // Column config $column_model = [ ['name' => 'firstname', 'index' => 'firstname', 'width' => '35', 'align' => 'left', 'sortable' => 'false'], ['name' => 'lastname', 'index' => 'lastname', 'width' => '35', 'align' => 'left', 'sortable' => 'false'], [ 'name' => 'exam', 'index' => 'exam', 'width' => '20', 'align' => 'center', 'sortable' => 'false', ], ]; // Autowidth $extraParams['autowidth'] = 'true'; // height auto $extraParams['height'] = 'auto'; $extraParams['sortname'] = 'name'; $extraParams['sortorder'] = 'desc'; $extraParams['multiselect'] = true; $deleteIcon = Display::return_icon('delete.png', get_lang('Delete'), null, ICON_SIZE_SMALL); $urlStats = api_get_path(WEB_CODE_PATH); $action_links = ''; $deleteUrl = ''; // Add the JS needed to use the jqgrid $htmlHeadXtra[] = api_get_jqgrid_js(); Display::display_header(); ?> '; echo ''. Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'), '', '32'). ''; echo ''; echo Display::grid_html('usergroups'); Display::display_footer();