<?php
	session_start();
include_once('../../../admin/db/saucerer.php');

	if(isset($_POST['submit'])){



            if($_POST['username'] != ''){

                $_SESSION['username'] = $_POST['username'];

            }

            else {

  $sql = "SELECT * FROM xmas_party WHERE email = '".$_POST['email']."'";
            $query = $conn->query($sql);
            if($query->num_rows > 0){

                $_SESSION['error'] = "<span style='color:#A87E2C;font-size: 14px;'>You are already registered, thank you!</span>";

                //return the inputted fields
                $_SESSION['email'] = $_POST['email'];

            }

            else {

		$event_id = $_POST['event_id'];
		$event = $_POST['event'];
    $name = $_POST['name'];
    $phone = $_POST['phone'];
		$email = addslashes($_POST['email']);
		$child_no = $_POST['child_no'];
		$suggestion = $_POST['suggestion'];


		mysqli_query($conn,"insert into `xmas_party` (`event_id`, `event`, `name`, `phone`, `email`, `child_no`, `suggestion`) values ('$event_id', '$event', '$name', '$phone', '$email', '$child_no', '$suggestion')") or die(mysqli_error());

		//use for MySQLi OOP
		if($conn){
			$_SESSION['success'] = "<span style='color:#A87E2C; font-weight:bold; font-size: 12px;'>Thank you for joining the Cornerstone Christmas Party, check your email for more details!</span>";
		}
		
		
		else{
			$_SESSION['error'] = "<span style='color:#A87E2C; font-weight:bold; font-size: 12px;'>Something went wrong while submitting your request, Try again!</span>";
		}
	}

 }

}

header('location: ../');

?>


<?php

$conn= mysqli_connect("localhost", "custbahd_customassistname", "Rwatangabo1son", "custbahd_cornerstone"); 
  
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;

require_once __DIR__ . '/vendor/phpmailer/src/Exception.php';
require_once __DIR__ . '/vendor/phpmailer/src/PHPMailer.php';
require_once __DIR__ . '/vendor/phpmailer/src/SMTP.php';



$mail = new PHPMailer(true);
$mail->SMTPDebug = 0;
$mail->isSMTP();
$mail->Host = 'premium146.web-hosting.com';
$mail->SMTPAuth = true;
$mail->Username = "info@cornerstoneassetmanagers.com";
$mail->Password = "Cornerstone@256";
$mail->SMTPSecure = "ssl";
$mail->Port = 465;


//To Client

  if(isset($_POST['submit'])){

            if($_POST['username'] != ''){

                $_SESSION['username'] = $_POST['username'];

            }

            else {


$mail->From = "info@cornerstoneassetmanagers.com";
$mail->FromName = "Cornerstone Asset Managers";

$mail->addAddress("$email", "$name"); 


$mail->isHTML(true);

$mail->Subject = "Thank you for joining the Cornerstone Christmas Party";


$mail->Body = "


<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'>
<head>
	<!--[if gte mso 9]>
	<xml>
		<o:OfficeDocumentSettings>
		<o:AllowPNG/>
		<o:PixelsPerInch>96</o:PixelsPerInch>
		</o:OfficeDocumentSettings>
	</xml>
	<![endif]-->
	<meta http-equiv='Content-type' content='text/html; charset=utf-8' />
	<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1' />
    <meta http-equiv='X-UA-Compatible' content='IE=edge' />
	<meta name='format-detection' content='date=no' />
	<meta name='format-detection' content='address=no' />
	<meta name='format-detection' content='telephone=no' />
	<meta name='x-apple-disable-message-reformatting' />
    <!--[if !mso]><!-->
	<link href='https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap' rel='stylesheet' />
    <!--<![endif]-->
	<title>Agents BBQ Party</title>
	<!--[if gte mso 9]>
	<style type='text/css' media='all'>
		sup { font-size: 100% !important; }
	</style>
	<![endif]-->
	

	<style type='text/css' media='screen'>
		/* Linked Styles */
		body { padding:0 !important; margin:0 !important; display:block !important; min-width:100% !important; width:100% !important; background:#f3f4f6; -webkit-text-size-adjust:none }
		a { color:#000001; text-decoration:none }
		p { padding:0 !important; margin:0 !important } 
		img { -ms-interpolation-mode: bicubic; /* Allow smoother rendering of resized image in Internet Explorer */ }
		.mcnPreviewText { display: none !important; }
.logo {
    width: 90%;
    margin-left: 0;
}

				
		/* Mobile styles */
		@media only screen and (max-device-width: 480px), only screen and (max-width: 480px) {
			.mobile-shell { width: 100% !important; min-width: 100% !important; }
			.bg { background-size: 100% auto !important; -webkit-background-size: 100% auto !important; }
			
			.text-header,
			.m-center { text-align: center !important; }
			
			.center { margin: 0 auto !important; }
			.container { padding: 20px 10px !important }
			
			.td { width: 100% !important; min-width: 100% !important; }

			.m-br-15 { height: 15px !important; }
			.p30-15 { padding: 30px 15px !important; }
			.p0-15-30 { padding: 0px 15px 30px 15px !important; }
			.mpb30 { padding-bottom: 30px !important; }

			.m-td,
			.m-hide { display: none !important; width: 0 !important; height: 0 !important; font-size: 0 !important; line-height: 0 !important; min-height: 0 !important; }

			.m-block { display: block !important; }

			.fluid-img img { width: 100% !important; max-width: 100% !important; height: auto !important; }

			.column,
			.column-dir,
			.column-top,
			.column-empty,
			.column-empty2,
			.column-dir-top { float: left !important; width: 100% !important; display: block !important; }

			.column-empty { padding-bottom: 30px !important; }
			.column-empty2 { padding-bottom: 10px !important; }

			.content-spacing { width: 15px !important; }

.logo {
    width: 200px;
    margin-left: 0;
}
		}
	</style>
</head>
<body class='body' style='padding:0 !important; margin:0 !important; display:block !important; min-width:100% !important; width:100% !important; background:#f3f4f6; -webkit-text-size-adjust:none;'>
	<table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#f3f4f6'>
		<tr>
			<td align='center' valign='top'>
				<table width='650' border='0' cellspacing='0' cellpadding='0' class='mobile-shell'>
					<tr>
						<td class='td container' style='width:650px; min-width:650px; font-size:0pt; line-height:0pt; margin:0; font-weight:normal; padding:55px 0px;'>
							<!-- Header -->
							<table width='100%' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td class='p30-15 tbrr' style='padding: 30px; border-radius:26px 26px 0px 0px;' bgcolor='#ffffff'>
										<table width='100%' border='0' cellspacing='0' cellpadding='0'>
											<tr>
												<th class='column-top' width='145' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal; vertical-align:top;'>
													<table width='100%' border='0' cellspacing='0' cellpadding='0'>
														<tr>
															<td class='img m-center' style='font-size:0pt; line-height:0pt; text-align:left;'><img src='https://cornerstoneassetmanagers.com/assets/img/logo/logo-dark.png' class='logo' editable='true' border='0' alt='Cornerstone Logo' /></td>
														</tr>
													</table>
												</th>
												<th class='column-empty2' width='1' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal; vertical-align:top;'></th>
												<th class='column' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
													<table width='100%' border='0' cellspacing='0' cellpadding='0'>
														<tr>
															<td class='text-header' style='color:#999999; font-family:Poppins,serif; font-size:13px; line-height:18px; text-align:right;'><multiline><webversion class='link2' style='color:#999999; text-decoration:none;text-transform: uppercase;'>Agents BBQ Party</webversion></multiline></td>
														</tr>
													</table>
												</th>
											</tr>
										</table>
									</td>
								</tr>
							</table>
							<!-- END Header -->
							
							<repeater>
								
								<!-- Hero Image -->
								<layout label='Hero Image'>
									<table width='100%' border='0' cellspacing='0' cellpadding='0'>
										<tr>
											<td class='fluid-img' style='font-size:0pt; line-height:0pt; text-align:left;'><img src='https://cornerstoneassetmanagers.com/assets/img/stock/events/agents-bbq/header/1.png' border='0' width='650' editable='true' alt='' /></td>
										</tr>
									</table>
								</layout>
								<!-- END Hero Image -->

								<!-- Intro -->
								<layout label='Intro'>
									<table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#ffffff'>
										<tr>
											<td style='padding-bottom: 10px;'>
												<table width='100%' border='0' cellspacing='0' cellpadding='0'>
													<tr>
														<td class='p30-15' style='padding: 60px 30px;'>
															<table width='100%' border='0' cellspacing='0' cellpadding='0'>
																<tr>
																	<td class='h1 pb25' style='color:#A87E2C; font-family:Poppins,serif; font-size:40px; line-height:46px; text-align:center; padding-bottom:25px;text-transform: uppercase;'><multiline>Cornerstone Agents</multiline></td>
																</tr>
													<tr>
														<td style='padding-bottom: 40px;' class='mpb30' >
															<table width='100%' border='0' cellspacing='0' cellpadding='0'>
																<tr>
																	<td class='content-spacing' width='100' style='font-size:0pt; line-height:0pt; text-align:left;'><table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#d9dada' class='border' style='font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%;'><tr><td bgcolor='#d9dada' height='1' class='border' style='font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%;'>&nbsp;</td></tr></table>
</td>
																	<td class='section-title' style='color:#000000; font-family:Poppins,serif; font-size:16px; line-height:22px; text-align:center; text-transform:uppercase;'><multiline>End of Year Appreciation BBQ Party</multiline></td>
																	<td class='content-spacing' width='100' style='font-size:0pt; line-height:0pt; text-align:left;'><table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#d9dada' class='border' style='font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%;'><tr><td bgcolor='#d9dada' height='1' class='border' style='font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%;'>&nbsp;</td></tr></table>
</td>
																</tr>
															</table>
														</td>
													</tr>
																<tr>
																	<td class='text-center pb25' style='color:#666666; font-family:Poppins,sans-serif; font-size:14px; line-height:25px; text-align:center; padding-bottom:25px;'><multiline>Thank you $name, we look forward to you joining us for the Cornerstone Agents BBQ Party scheduled to take place on Wednesday, 10th December 2025 at 6:00 PM at the Cornerstone Asset Managers' offices on Plot 16A, Ntinda II Rd - Naguru, Kampala (U).</multiline></td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</layout>
								<!-- END Intro -->

								<!-- CTA -->
								<layout label='CTA'>
									<table width='100%' border='0' cellspacing='0' cellpadding='0'>
										<tr>
											<td style='padding: 0px 30px 50px 30px;' class='p0-15-30' bgcolor='#ffffff'>
												<table width='100%' border='0' cellspacing='0' cellpadding='0'>
													<tr>
														<td style='padding-bottom: 40px;' class='mpb30' >
															<table width='100%' border='0' cellspacing='0' cellpadding='0'>
																<tr>
																	<td class='content-spacing' width='100%' style='font-size:0pt; line-height:0pt; text-align:left;'><table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#d9dada' class='border' style='font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%;'><tr><td bgcolor='#d9dada' height='1' class='border' style='font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%;'>&nbsp;</td></tr></table>
</td>
																	
																	
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td class='h2 pb30' style='color:#000000; font-family:Poppins,serif; font-size:18px; line-height:36px; text-align:center; padding-bottom:30px;'>
															<multiline>Your efforts do not go unnoticed, we value everything you bring to the company.</multiline>
														</td>
													</tr>
													<tr>
														<td class='text-center pb30' style='color:#666666; font-family:Poppins,sans-serif; font-size:14px; line-height:25px; text-align:center; padding-bottom:30px;'>
															<multiline>We would like to extend our sincere appreciation to all our agents for the outstanding work you continue to do. Your dedication, professionalism, and commitment to serving our clients have made a significant impact, and we are truly grateful. Thank you for consistently going above and beyond.</multiline>
														</td>
													</tr>
													<!-- Button -->
													<tr>
														<td align='center'>
															<table class='center' border='0' cellspacing='0' cellpadding='0' style='text-align:center;'>
																<tr>
																	<td class='text-button' style='background:#000; color:#fff; font-family:Poppins,serif; font-size:14px; line-height:18px; padding:12px 30px; text-align:center; border-radius:25px; text-transform:uppercase;'><multiline><a href='https://maps.app.goo.gl/Psz32wDdX1ZU3g85A' target='_blank' class='link' style='color:#fff; text-decoration:none;'><span class='link' style='color:#A87E2C; text-decoration:none;'>Get Directions</span></a></multiline></td>
																</tr>
															</table>
														</td>
													</tr>
													<!-- END Button -->
												</table>
											</td>
										</tr>
									</table>
								</layout>
								<!-- END CTA -->
								
								<!-- Hero Image -->
								<layout label='Hero Image'>
									<table width='100%' border='0' cellspacing='0' cellpadding='0'>
										<tr>
											<td class='fluid-img' style='font-size:0pt; line-height:0pt; text-align:left;'><img src='https://cornerstoneassetmanagers.com/assets/img/stock/events/agents-bbq/body/1.jpg' border='0' width='650' height='' editable='true' alt='' /></td>
										</tr>
									</table>
								</layout>
								<!-- END Hero Image -->

							</repeater>
    
    <!-- Footer -->
    <table width='100%' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td class='pb10' style='padding-bottom:10px;'></td>
								</tr>
      <tr>
        <td class='p30-15' style='padding: 50px 30px;border-radius: 6px;' bgcolor='#ffffff'><table width='100%' border='0' cellspacing='0' cellpadding='0'>
            <tr>
              <td align='center' style='padding-bottom: 30px;'><table border='0' cellspacing='0' cellpadding='0'>
                  <tr>
                    <td class='img' width='55' style='font-size:0pt; line-height:0pt; text-align:left;'><a href='https://www.facebook.com/profile.php?id=61569347717892' target='_blank'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/1.png' width='25' height='25' editable='true' border='0' alt='Facebook' /></a></td>
                    <td class='img' width='55' style='font-size:0pt; line-height:0pt; text-align:left;'><a href='https://x.com/csassetmanagers?s=21' target='_blank'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/3.png' width='25' height='25' editable='true' border='0' alt='Twitter' /></a></td>
                    <td class='img' width='55' style='font-size:0pt; line-height:0pt; text-align:left;'><a href='https://www.instagram.com/cornerstone_assetmanagers/profilecard/' target='_blank'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/2.png' width='25' height='25' editable='true' border='0' alt='Instagram' /></a></td>
                    <td class='img' width='55' style='font-size:0pt; line-height:0pt; text-align:left;'><a href='https://www.linkedin.com/company/cornerstone-asset-managers/' target='_blank'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/6.png' width='25' height='25' editable='true' border='0' alt='Linked In' /></a></td>
                    <td class='img' width='55' style='font-size:0pt; line-height:0pt; text-align:left;'><a href='https://www.youtube.com/channel/UC4ODu7TJiwK2FfToYPRgTYg' target='_blank'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/4.png' width='25' height='25' editable='true' border='0' alt='YouTube' /></a></td>
                    <td class='img' width='38' style='font-size:0pt; line-height:0pt; text-align:left;'><a href='https://wa.me/256767936167?text=https://cornerstone.co.ug *Cornerstone Support* %0D%0A  %0D%0A Hello, we are always happy to hear from you %0D%0A  %0D%0A' target='_blank'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/8.png' width='25' height='25' editable='true' border='0' alt='Whatsapp' /></a></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td class='text-footer2 pb30' style='color:#999999; font-family:Poppins,sans-serif; font-size:12px; line-height:20px; text-align:center; padding-bottom:2px;'><multiline><a href='tel:+256767936167' style='color:#999999;text-decoration: underline;'>+256 767 936167</a> | <a href='mailto:clientsupport@cornerstone.co.ug' style='color:#999999;text-decoration: underline;'>clientsupport@cornerstone.co.ug</a></multiline></td>
            </tr>
            <tr>
              <td class='text-footer2 pb30' style='color:#999999; font-family:Poppins,sans-serif; font-size:12px; line-height:26px; text-align:center; padding-bottom:30px;'><multiline>Plot 16A, Ntinda II Road - Kampala, Uganda</multiline></td>
            </tr>
													<tr>
														<td style='padding-bottom: 40px;' class='mpb30' >
															<table width='100%' border='0' cellspacing='0' cellpadding='0'>
																<tr>
																	<td class='content-spacing' width='100%' style='font-size:0pt; line-height:0pt; text-align:left;'><table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#d9dada' class='border' style='font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%;'><tr><td bgcolor='#d9dada' height='1' class='border' style='font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%;'>&nbsp;</td></tr></table>
</td>
																	
																	
																</tr>
															</table>
														</td>
													</tr>
            <tr>
              <td class='text-footer3' style='color:#c0c0c0; font-family:Poppins,sans-serif; font-size:12px; line-height:18px; text-align:center;'><unsubscribe class='link3' style='color:#c0c0c0; text-decoration:none;'>The Cornerstone Agents BBQ Night is a celebration to extend our sincere appreciation to all our agents for the outstanding work you continue to do. Kindly call us on <span class='link3-u' style='color:#c0c0c0; text-decoration:underline;'><a href='tel:+256767936167' style='color:#c0c0c0;'>+256 767 936167</a></span></unsubscribe></td>
            </tr>
          </table></td>
      </tr>
    </table>
    <!-- END Footer -->
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>
</html>







";


try {
    $mail->send();
    echo "";
} catch (Exception $e) {
    echo "Mailer Error: " . $mail->ErrorInfo;
   }

 }

}



//To Admin

$mail = new PHPMailer(true);
$mail->SMTPDebug = 0;
$mail->isSMTP();
$mail->Host = 'premium146.web-hosting.com';
$mail->SMTPAuth = true;
$mail->Username = "info@cornerstoneassetmanagers.com";
$mail->Password = "Cornerstone@256";
$mail->SMTPSecure = "ssl";
$mail->Port = 465;

if(isset($_POST['submit'])){

            if($_POST['username'] != ''){

                $_SESSION['username'] = $_POST['username'];

            }

            else {

$subject = "$name has joined the Cornerstone Christmas Party";

$mail->From = "info@cornerstoneassetmanagers.com";
$mail->FromName = "Admin | Cornerstone Asset Managers";

$mail->addAddress("info@cornerstoneassetmanagers.com", "Cornerstone Asset Managers"); 


$mail->isHTML(true);

$mail->Subject = "$name has joined the Cornerstone Christmas Party";


$mail->Body = "


<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'>
<head>
  <!--[if gte mso 9]>
  <xml>
    <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    <o:PixelsPerInch>96</o:PixelsPerInch>
    </o:OfficeDocumentSettings>
  </xml>
  <![endif]-->
  <meta http-equiv='Content-type' content='text/html; charset=utf-8' />
  <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1' />
    <meta http-equiv='X-UA-Compatible' content='IE=edge' />
  <meta name='format-detection' content='date=no' />
  <meta name='format-detection' content='address=no' />
  <meta name='format-detection' content='telephone=no' />
  <meta name='x-apple-disable-message-reformatting' />
    <!--[if !mso]><!-->
  <link href='https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i|Raleway:400,400i,700,700i' rel='stylesheet' />
    <!--<![endif]-->
  <title>Cornerstone Asset Managers &copy;</title>
  <!--[if gte mso 9]>
  <style type='text/css' media='all'>
    sup { font-size: 100% !important; }
  </style>
  <![endif]-->
  

  <style type='text/css' media='screen'>
    /* Linked Styles */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

    @media (prefers-color-scheme: dark) {
  :root {
    .section-title.email,.section-title.info,.section-title.one {color: #A87E2C !important;}
  }
}


    body { padding:0 !important; margin:0 !important; display:block !important; min-width:100% !important; width:100% !important; background:#333545; -webkit-text-size-adjust:none; font-family: 'Oswald', sans-serif; }
    a { color:#A87E2C; text-decoration:none }
    p { padding:0 !important; margin:0 !important } 
    img { -ms-interpolation-mode: bicubic; /* Allow smoother rendering of resized image in Internet Explorer */ }
    .mcnPreviewText { display: none !important; }
    .text-footer a { color: #7e7e7e !important; }
    .text-footer2 a { color: #c3c3c3 !important; }
    
    /* Mobile styles */
    @media only screen and (max-device-width: 480px), only screen and (max-width: 480px) {
      .mobile-shell { width: 100% !important; min-width: 100% !important; }
      
      .m-center { text-align: center !important; }
      .m-center img{ width: 110px !important;margin-left: -190px !important; }
      .m-left { margin-right: auto !important; }
      .img-right {position: absolute;right: 10px;margin-top: -25px;}
      .img-right img{ width: 80px !important; }
      .img img{ width: 200px !important; }
      
      .center { margin: 0 auto !important; }
      
      .td { width: 50% !important; min-width: 50% !important; }

      .m-br-15 { height: 15px !important; }
      .m-separator { border-bottom: 1px solid #000000; }
      .small-separator { border-top: 1px solid #333333 !important; padding-bottom: 20px !important; }

      .m-td,
      .m-hide { display: none !important; width: 0 !important; height: 0 !important; font-size: 0 !important; line-height: 0 !important; min-height: 0 !important; }

      .m-block { display: block !important; }

      .fluid-img img { width: 100% !important; max-width: 100% !important; height: auto !important; }
      
      .content-middle { width: 140px !important; padding: 0px !important; }

      .text-white { font-size: 12px !important;line-height:5px !important;padding-bottom: 20px !important; }

      .text-white.one { font-size: 12px !important;line-height:25px !important;padding-bottom: 0px !important; }

      .text-white.two { font-size: 14px !important; }

      .h2-white { font-size: 12px !important; line-height: 30px !important;padding-bottom: 4px !important; }
      .h3-white { font-size: 24px !important; line-height: 30px !important; }

      .text4 { font-size: 12px !important; line-height: 15px !important;padding-bottom: 10px !important;}

      .line img {width: 65%;}

      .direction {font-size: 12px !important;padding: 5px 20px !important;position: absolute;margin-top: 5px;}

      .section-title.one {padding:0 20px 60px !important;}
      .section-title.email {font-size: 12px !important;}

      .mpb15 { padding-bottom: 15px; }
      .content { padding: 20px 15px !important; }

      .section-inner { padding: 0px !important; }

      .content-2 { padding: 30px 15px 30px 15px !important; }
      .pt30 { padding-top: 20px !important; }
      .p30-15 { padding: 30px 15px !important; }
      .footer { padding: 30px 15px !important; }
      .main { padding: 0px !important; }
      .section { padding: 30px 15px 30px 15px !important; }
      .section2 { padding: 0px 15px 30px 15px !important; }
      .section4 { padding: 30px 15px !important; }
      .section-inner2 { padding: 30px 15px !important; }

      .separator-outer { padding-bottom: 30px !important; }
      .section3 { padding: 30px 15px !important; }
      .mpb10 { padding-bottom: 10px !important; padding-top: 5px !important; }
      .preheader { padding-bottom: 20px !important; } 

      .column,
      .column-dir,
      .column-top,
      .column-empty,
      .column-empty2,
      .column-bottom,
      .column-dir-top,
      .column-dir-bottom { float: left !important; width: 50% !important; display: block !important; }
      .column-top .text-button { font-size: 10px !important;padding: 0 !important;font-weight: normal !important;height: 30px; }
      .column-top.one { position: absolute;right: 25px; }
      .column-top.two { position: absolute;left: 25px; }
      .column-empty { padding-bottom: 30px !important; }
      .column-empty2 { padding-bottom: 10px !important; }
      .content-spacing { width: 15px !important; }
    }
  </style>
</head>
<body class='body' style='padding:0 !important; margin:0 !important; display:block !important; min-width:100% !important; width:100% !important; background:rgba(0, 47, 104, 0.1); -webkit-text-size-adjust:none;'>
  <table width='100%' border='0' cellspacing='0' cellpadding='0'>
    <tr>
                <td align='center' valign='top'>
        <!-- Main -->
        <table width='100%' border='0' cellspacing='0' cellpadding='0'>
          <tr>
            <td align='center'>
              <table width='650' border='0' cellspacing='0' cellpadding='0' class='mobile-shell'>
                <tr>
                      <td class='td' style='width:650px; min-width:650px; font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
          <!-- Pre Header -->
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                      <tr>
                            <td class='preheader' style='padding:30px 0px 20px 0px;'>
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                   <tr>
            <th class='column-top' width='240' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal; vertical-align:top;'>
            </th>
            <th class='column-empty2' width='1' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'></th>
            <th class='column' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
          </td>
          </tr>
            </table>
          <!-- END Pre Header -->

          <!-- Header -->
              <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor=''>
                      <tr>
                            <td style='padding: 30px 0px 30px 30px;'>
              <table width='100%' border='0' cellspacing='0' cellpadding='0' dir='rtl' style='direction: rtl;'>
                   <tr>
            
            <th class='column-empty' width='1' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'></th>
            <th class='column-dir' dir='ltr' width='200' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal; direction:ltr;'>
        <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                         <tr>
          <td class='img m-center mpb10' style='font-size:0pt; line-height:0pt; text-align:center;'><img src='../../../../assets/img/logo/logo-dark.png' width='200' editable='true' border='0' alt='Cornerstone Logo' style='margin-left: -20px;' /></td>
                      </tr>
        </table>
            </th>
                   </tr>
            </table>
          </td>
          </tr>
            </table>
          <!-- END Header -->

                    <repeater>
          <!-- Intro -->
          <layout label='Intro'>
                  <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#A87E2C'>
                          <tr>
          <th class='column' width='325' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
      <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                       <tr>
          <td class='fluid-img' style='font-size:0pt; line-height:0pt; text-align:left;'><img src='../../../../assets/img/stock/core/2.png' width='325' height='400' editable='true' border='0' alt='Cornerstone Asset Managers' style='object-fit: cover;object-position: right;'></td>
          </tr>
      </table>
          </th>
          <th class='column' width='325' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
      <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                       <tr>
          <td class='content' style='padding:30px 20px;'>
            <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                <tr>
              <td class='h2-white left pb20' style='color:#ffffff; font-size:18px; line-height:38px; text-transform:uppercase; font-weight:bold; text-align:left; padding-bottom:10px;text-decoration: underline;'><multiline>Cornerstone Agents BBQ Night Submission</multiline></td>
          </tr>
                <tr>
              <td class='text-white two left pb15' style='color:#ffffff; font-size:16px; line-height:20px; text-align:left; padding-bottom:8px;'><multiline>Name: $name</multiline></td>
          </tr>
                <tr>
              <td class='text-white left pb15' style='color:#ffffff; font-size:12px; line-height:20px; text-align:left; padding-bottom:6px;'><multiline><a href='tel:$phone' style='color:#ffffff;'>Phone: $phone</a></multiline></td>
          </tr>
                <tr>
              <td class='text-white left pb15' style='color:#ffffff; font-size:12px; line-height:20px; text-align:left; padding-bottom:8px;'><multiline><a href='mailto:$email' style='color:#ffffff;'>Email: $email</a></multiline></td>
          </tr>
                
          <!-- Button -->
                <tr>
              <td align='left'>
                  <table width='140' border='0' cellspacing='0' cellpadding='0'>
                      <tr>
                    <td class='text-button white-button' style='font-size:14px; line-height:18px; text-align:center; text-transform:uppercase; padding:10px; background:#ffffff; color:#f54084; font-weight:bold;'><multiline><a href='tel:$phone' target='_blank' class='link' style='color:#A87E2C; text-decoration:none;'><span class='link' style='color:#A87E2C; text-decoration:none;'>Call Sender</span></a></multiline></td>
          </tr>
          </table>
                            </td>
          </tr>
                <tr>
              <td class='text-white left one' style='color:#ffffff; font-size:12px; line-height:20px; text-align:left; padding-bottom:8px;padding-top: 20px;'><multiline><a href='mailto:$email' style='color:#ffffff;text-decoration: underline;'>Send email instead.</a></multiline></td>
          </tr>
          <!-- END Button -->
          </table>
          </td>
          </tr>
      </table>
          </th>
          </tr>
          </table>

          </layout>
          <!-- END Intro -->

        
                    </repeater>
 
          <!-- Footer -->
              <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor=''>
                      <tr>
                            <td class='footer' style='padding:60px 30px;'>
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                   
                   
                   <tr>
                      <td class='separator' style='border-bottom:1px solid #A87E2C;'></td>
                   </tr>
                   <tr>
                      <td class='text-footer pt30' style='color:#A87E2C; font-size:12px; line-height:20px; text-align:center; padding-top:30px;'><multiline><a href='https://cornerstoneassetmanagers.com' style='color:#A87E2C !important;'>Cornerstone Asset Managers</a> © <script>document.write(new Date().getFullYear());</script></a> All Rights Reserved <br />Plot 16A, Ntinda II Road | Naguru, Kampala (U)</multiline></td>
                   </tr>
            </table>
          </td>
          </tr>
            </table>
          <!-- END Footer -->
                    
          <!-- Footer Bar -->
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                      <tr>
                            <td class='footer-bar' style='padding:35px 15px;'>
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                   <tr>
                      <td class='text-footer2' style='color:#85868d; font-size:12px; line-height:20px; text-align:center;'>
                                <multiline>This is an automated contact message for Cornerstone Asset Managers through the website.</multiline>
            </td>
                   </tr>
            </table>
          </td>
          </tr>
            </table>
          <!-- END Footer Bar -->
                  </td>
                </tr>
            </table>
            </td>
          </tr>
        </table>
        <!-- END Main -->
      </td>
    </tr>
  </table>
</body>
</html>




";


try {
    $mail->send();
    echo "";
} catch (Exception $e) {
    echo "Mailer Error: " . $mail->ErrorInfo;
   }

 }

}

?>


