Esempio n. 1
0
                if ($result2->rowCount() > 0) {
                    while ($row2 = $result2->fetch(PDO::FETCH_ASSOC)) {
                        $substr = format_choc_title($row2['title']);
                        $temp_title .= $substr . ', ';
                    }
                }
            }
            $temp_title = rtrim($chocs_string, ', ');
            $temp_title .= '</span>';
        }
        array_push($product_title_array, $temp_title);
        array_push($product_description_array, $row['description']);
        array_push($product_price_array, $row['price']);
    }
}
$address = makeAddress($line1, $line2, $city, $postal_code);
?>
<!DOCTYPE html>
<html lang="en-us">

<head>
	<link rel="stylesheet" type="text/css" href="/css/animate.css?"> <!-- Animate Style CSS -->
	<link rel="stylesheet" type="text/css" href="/css/housestyle.css?"> <!-- House Style CSS -->
	<link rel="stylesheet" type="text/css" href="/css/cart.css"> <!-- Page style -->
	<link rel="icon" type="image/x-icon" href="/images/housestyle/Favicon.ico">
	<link href='http://fonts.googleapis.com/css?family=Signika' rel='stylesheet' type='text/css'>
	
	<title>Kneals Chocolates - Luxury Handmade Chocolates</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="Keywords" content="Kneals, Chocolates, Handmade, Luxury, Confectionery, Wedding, Favours, Gifts">
	<meta name="Description" content="Kneals Chocolates is all about quality, locally produced handmade chocolates. We are constantly aiming to create new and interesting flavours for you to taste. Our traditional methods and craftsmanship enable us to provide you with a unique tasting experience every time.">
Esempio n. 2
0
            $temp_title .= '<span style="font-size:12px;"> - ';
            $chocIDs = explode(',', $choc_id_string);
            foreach ($chocIDs as $chocID) {
                $query2 = "SELECT title FROM individual_chocs WHERE id = ?";
                $result2 = $db_cart->query($query2, $chocID);
                if ($result2->rowCount() > 0) {
                    while ($row2 = $result2->fetch(PDO::FETCH_ASSOC)) {
                        $substr = format_choc_title($row2['title']);
                        $temp_title .= $substr . ', ';
                    }
                }
            }
            $temp_title = rtrim($chocs_string, ', ');
            $temp_title .= '</span>';
        }
        $total_row_price = $row['price'] * $quantities[$i];
        $price_f = format_price($total_row_price);
        $custEmail .= "<tr><td style='padding:10px 2px;'>{$temp_title}</td><td style='padding:10px 2px;'>{$row['description']}</td><td style='padding:10px 2px; text-align:center; '>{$quantities[$i]}</td><td style='padding:10px 2px;'>{$price_f}</td></tr>";
        $busEmail .= "<tr><td style='padding:10px 2px;'>{$temp_title}</td><td style='padding:10px 2px; text-align:center; '>{$quantities[$i]}</td><td style='padding:10px 2px; text-align:center;'>{$price_f}</td></tr>";
    }
    $i++;
}
$busEmail .= "<tr>\n    <td style='padding:10px 2px;'>&nbsp;</td>\n    <td style='padding:10px 2px; text-align:right;'><b>Shipping</b></td>\n    <td style='padding:10px 2px; text-align:center;'>&pound;3.00</td>\n</tr>\n\n<tr>\n    <td style='padding:10px 2px;'>&nbsp;</td>\n    <td style='padding:10px 2px; text-align:right;'><b>Total</b></td>\n    <td style='padding:10px 2px; text-align:center;'><b>&pound;{$query_array['price']}</b></td>\n</tr>\n\n</table>  \n<br>\n<hr>\n<br>";
$custEmail .= "\n<tr>\n    <td style='padding:10px 2px;'>&nbsp;</td>\n    <td style='padding:10px 2px; text-align:right;'><b>Shipping</b></td>\n    <td style='padding:10px 2px;'>&nbsp;</td>\n    <td style='padding:10px 2px;'><b>&pound;3.00</b></td>\n</tr>\n\n<tr>\n    <td style='padding:10px 2px;'>&nbsp;</td>\n    <td style='padding:10px 2px; text-align:right;'><b>Total</b></td>\n    <td style='padding:10px 2px;'>&nbsp;</td>\n    <td style='padding:10px 2px;'><b>&pound;{$query_array['price']}</b></td>\n</tr>\n\n</table>\n<p>We will send your order out within 24 hours to: </p>";
$address_f = makeAddress($line1, $line2, $city, $postal_code, true);
$custEmail .= "<p>{$address_f}</p>";
$busEmail .= "<p>{$address_f}</p>";
$custEmail .= "    \n<p>If this isn't the correct delivery address, please contact Kneals at <a href='mailto:kneals-info@knealschocolates.com'>kneals-info@knealschocolates.com</a> stating your kneals reference number below and your up-to-date delivery address.</p><br>\n    \n<p>We'd love to know what you think of your chocolates on <a class='follow-button' target='_blank' href='https://facebook.com/KnealsChocolates' ><img alt='facebook' width='25px' height='25px' src='http://knealschocolates.com/images/housestyle/facebook.png'/></a> or <a class='follow-button' target='_blank' href='https://twitter.com/knealschocolate' ><img alt='twitter' width='25px' height='25px' src='http://knealschocolates.com/images/housestyle/twitter.png'/></a></p><br>\n<p style='margin-bottom:2px;'>We hope you enjoy!</p>\n<p style='margin-top:2px; font-size:0.9em; font-family:cursive;'>Kneals Chocolates</p>\n<p style='font-family:helvetica;'><i><a href='mailto:kneals-info@knealschocolates.com'>kneals-info@knealschocolates.com</a><br>Phone: 0121 771 2990</i></p>\n\n<p>Kneals Reference Number: {$query_array['transaction_id']}</p>\n\n</body>\n</html>";
$busEmail .= "\n<br>\n<hr>\n<br>\n<p style='margin-bottom:0px;'>PayPal Transaction ID: {$paymentId}</p>\n<p>Kneals Reference Number: {$query_array['transaction_id']} </p>\n\n</body>\n</html>\n\n";
mail($toCustomer, $subjectCustomer, $custEmail, $headers);
mail($toBusiness, $subjectBusiness, $busEmail, $headers);