$response['aaData'] = array();
    $response['iDisplayStart'] = 0;
    echo json_encode($response);
    die;
}
$detail = '<img class="detail_img" src="' . AV_PIXMAPS_DIR . '/show_details.png"/>';
$results = array();
foreach ($assets as $_id => $asset_data) {
    // Alarms
    $alarms = Asset_host::has_alarms($conn, $_id);
    $alarms_icon = $alarms ? '<img src="' . AV_PIXMAPS_DIR . '/assets_tick_gray.png"/>' : '-';
    // Vulns
    $vulns = Asset_host::get_vulnerability_number($conn, $_id);
    $vulns_icon = $vulns > 0 ? '<img src="' . AV_PIXMAPS_DIR . '/assets_tick_gray.png"/>' : '-';
    // Events
    $events = Asset_host::has_events($conn, $_id);
    $events_icon = $events ? '<img src="' . AV_PIXMAPS_DIR . '/assets_tick_gray.png"/>' : '-';
    $fqdns = $asset_data['fqdns'] != '' ? Util::htmlentities($asset_data['fqdns']) : '';
    // COLUMNS
    $_res = array();
    $_res['DT_RowId'] = $_id;
    $_res[] = Util::htmlentities($asset_data['name']);
    $_res[] = Util::htmlentities(Asset::format_to_print($asset_data['ips']));
    $_res[] = $fqdns;
    $_res[] = $alarms_icon;
    $_res[] = $vulns_icon;
    $_res[] = $events_icon;
    $_res[] = $detail;
    $results[] = $_res;
}
// datatables response json