width = "98%"; $table->data = array (); $table->head = array (); $table->head[0] = __('Name'); $table->head[1] = __('Group'); $table->align = array (); $table->align[1] = 'center'; $rowPair = true; $iterator = 0; if ($maps !== false) { foreach ($maps as $map) { if (!check_acl ($config["id_user"], $map["group_id"], "IR", 0, true)) { continue; } if ($rowPair) $table->rowclass[$iterator] = 'rowPair'; else $table->rowclass[$iterator] = 'rowOdd'; $rowPair = !$rowPair; $iterator++; $data = array (); $data[0] = '' . $map['map_name'].' '; $data[1] = ui_print_group_icon ($map["group_id"], true); array_push ($table->data, $data); } } if (!empty ($table->data)) { html_print_table ($table); } else { echo '
' . __('No maps found') . '
'; } unset ($table); ?>