delete($_GET['id']); $content = $event_email_template->display(); break; default: case 'listing': $event_email_template = new EventEmailTemplate(); $content = $event_email_template->display(); break; } //jqgrid will use this URL to do the selects $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_event_email_template'; //The order is important you need to check the the $column variable in the model.ajax.php file $columns = [ get_lang('Subject'), get_lang('EventTypeName'), get_lang('Language'), get_lang('Status'), get_lang('Actions'), ]; //Column config $column_model = [ ['name' => 'subject', 'index' => 'subject', 'width' => '80', 'align' => 'left'], // array('name'=>'message', 'index'=>'message', 'width'=>'500', 'align'=>'left','sortable'=>'false'), ['name' => 'event_type_name', 'index' => 'event_type_name', 'width' => '80', 'align' => 'left'], ['name' => 'language_id', 'index' => 'language_id', 'width' => '80', 'align' => 'left'], ['name' => 'activated', 'index' => 'activated', 'width' => '80', 'align' => 'left'], ['name' => 'actions', 'index' => 'actions', 'width' => '100'], ]; //Autowidth $extra_params['autowidth'] = 'true'; //height auto $extra_params['height'] = 'auto'; $htmlHeadXtra[] = api_get_jqgrid_js(); $htmlHeadXtra[] = ''; $interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('PlatformAdmin')]; $interbreadcrumb[] = ['url' => '#', 'name' => get_lang('Events')]; $tpl = new Template($tool_name); $tpl->assign('message', $message); $tpl->assign('content', $content); $tpl->display_one_col_template();