$products[] = $p; } } else { //PROCESS ITEMS JNG if (in_array($item['orders_products_id'], $items_array)) { $p = intval($item['products_quantity']) . ' x ' . $item['products_model']; if ($class_o->productStatusIsCancelled($item['status'])) { $p = "<strike>{$p}</strike>"; } $products[] = $p; } } } $col['prod'] = implode('<br />', $products); if ($type == 'jng') { $gc = $class_o->retrieveGreetingCard($order_data['orders_id']); $card = is_null($gc) ? ' ' : '<img src="/images/' . $gc['greeting_card_image'] . '" />'; $col['gc'] = $card; } $col['stat'] = ' '; $lines[] = $col; } //HEADER $header = array(); $header[] = '<html>'; $header[] = '<head>'; $header[] = '<title>JULIE & GRACE Package Checklist</title>'; $header[] = '<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />'; $header[] = '<link rel="stylesheet" type="text/css" href="packages.css">'; $header[] = '</head>'; $header[] = '<body>';