class = 'info_table'; $table->width = '98%'; $table->head[0] = __('Map connection name'); $table->head[1] = __('Group'); $table->head[3] = __('Delete'); $table->align[1] = 'left'; $table->align[2] = 'left'; $table->align[3] = 'left'; $mapsConnections = db_get_all_rows_in_table('tgis_map_connection', 'conection_name'); $table->data = []; if ($mapsConnections !== false) { foreach ($mapsConnections as $mapsConnection) { $table->data[] = [ ''.$mapsConnection['conection_name'].'', ui_print_group_icon($mapsConnection['group_id'], true), ''.html_print_image('images/cross.png', true).'', ]; $table->cellclass[][2] = 'action_buttons'; } } html_print_table($table); echo '
'; echo '
'; html_print_input_hidden('action', 'create_connection_map'); html_print_submit_button(__('Create'), '', false, 'class="sub next"'); echo '
'; echo '
';