'; $output .= $agent['nombre']; $output .= ''; break; case 'name': if (! isset ($agent['nombre'])) return ''; $output = $agent['nombre']; break; case 'status': if (! isset ($agent['id_agente'])) return ui_print_status_image (STATUS_AGENT_NO_DATA, '', $return); require_once ('include/functions_reporting.php'); $info = reporting_get_agent_module_info ($agent['id_agente']); $output = $info['status_img']; break; case 'ajax_link': if (! $field_value || ! is_array ($field_value)) return ''; if (! isset ($field_value['callback'])) return ''; if (! isset ($agent['id_agente'])) return ''; $parameters = $agent['id_agente']; if (isset ($field_value['parameters'])) $parameters = implode (',', $field_value['parameters']); $text = __('Action'); if (isset ($field_value['name'])) $text = $field_value['name']; if (isset ($field_value['image'])) $text = html_print_image ($field_value['image'], true, array ('title' => $text)); $output = ''; $output .= $text; $output .= ''; break; default: if (! isset ($agent[$field])) return ''; $ouput = $agent[$field]; } if ($return) return $output; echo $output; } ?>