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; $own_info = get_user_info ($config['id_user']); if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM")) $own_groups = array_keys(users_get_groups($config['id_user'], "IR")); else $own_groups = array_keys(users_get_groups($config['id_user'], "IR", false)); if ($maps !== false) { foreach ($maps as $map) { if ($rowPair) $table->rowclass[$iterator] = 'rowPair'; else $table->rowclass[$iterator] = 'rowOdd'; $rowPair = !$rowPair; $iterator++; $is_in_group = in_array($map['group_id'], $own_groups); if (!$is_in_group){ continue; } if (!check_acl ($config["id_user"], $map["group_id"], "IR", 0, true)) { continue; } $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); ?>