<?php
	$contest_type = '';
	if (Helpers::strEqual($info['item']->contest->contest_type, 'PI'))
	{
		$contest_type = 'Play-In';
	}
	elseif (Helpers::strEqual($info['item']->contest->contest_type, 'PO'))
	{
		$contest_type = 'Playoff';
	}

?>

<!DOCTYPE html>
<html lang="en-US">
	<head>
		<meta charset="utf-8">
		<style type="text/css">
			* {margin:0; padding:0;}
			body {font-family:Lucida Grande,Lucida Sans,Arial,sans-serif; font-size: 9pt; line-height:120%; color:#151515; background:#ffffff; width:800px;}

			h1 {font-size: 18pt; width: 800px; padding-bottom: 4px; border-bottom: 2px solid #1c43a6; color: #1c43a6;}
			h2 {font-weight: bold; font-size: 14pt; color: #990000;}
			h3 {font-weight: bold; font-size: 12pt; color: #0d2458; margin: 0 0 0.5em 0;}

			table {border-collapse: collapse;}

			.line  {border-bottom: 1px solid #7d7b7d;}			
		</style>
	</head>
	<body>
		
		<h1>OSAA Missing Time Alert</h1>	

		<p>
			The OSAA gets a number of requests regarding <?php echo $contest_type; ?> contests.  The start time for your <?php echo $contest_type; ?> contest scheduled for this <?php echo date('l', strtotime($info['item']->event->start_at)); ?> has not been entered.
		</p>		

		<table style="width: 100%;">
			<tr>
				<td style="font-weight: bold; background: #F2B8DF; border: 1px solid #E59CCD; padding: 8px 16px;">
					Your <?php echo Helpers::getActivityName($info['item']->contest->activity); ?> <?php echo $contest_type; ?> contest time has not been submitted.
				</td>
			</tr>
		</table>

		<br />

		<h3><?php echo $contest_type; ?> Contest Information</h3>		

		<table style="width: 100%;">
			<tr style="background-color: #f2f2f2;">
				<td style="width: 80%; padding: 8px 16px;">
					<b><?php echo $info['item']->contest->away_team_name; ?>
					<?php if (!is_null($info['item']->away_team) and $info['item']->away_team->level != 'V'): ?>
						[<?php echo $info['item']->away_team->level; ?> ]
					<?php endif; ?>
					vs. <?php echo $info['item']->contest->home_team_name; ?>
					<?php if (!is_null($info['item']->home_team) and $info['item']->home_team->level != 'V'): ?>
						[<?php echo $info['item']->home_team->level; ?> ]
					<?php endif; ?>
					</b><br />
					<?php echo Helpers::getActivityName($info['item']->contest->activity); ?> <?php echo $contest_type; ?> scheduled for <?php echo date('l n/j', strtotime($info['item']->event->start_at)); ?>
					<?php if (!is_null($info['item']->location_name)): ?>
						<br /><span style="font-size: 8pt;">
						<i>(Scheduled to be played at <?php echo $info['item']->location_name; ?>)</i></span>
					<?php endif; ?>
				</td>
				<td style="width: 20%; text-align: center; background-color: #005fa9;">
					<a class="scores" href="http://www.osaa.org/contests/<?php echo $info['item']->contest->id; ?>/edit" style="color: #ffffff; font-size: 12pt; font-weight: bold;">Enter Time</a>
				</td>
			</tr>
		</table>

		<br />				

		<p>
			Please take the necessary steps to submit the time of this contest as soon as possible.  If you have any questions, please contact Peter Weber at the OSAA office, 503.682.6722 x231 or <a href="mailto: peterw@osaa.org">peterw@osaa.org</a>.  For technical support, contact <a href="mailto:support@osaa.org">support@osaa.org</a>.			
		</p>			

		<p>
			Thank you in advance for providing this information.
		</p>
		
		
		Regards,<br /><br />
		Oregon School Activities Association<br />
		<a href="http://www.osaa.org">www.osaa.org</a>

		<br /><br />	

		<p style="font-size: 8pt; line-height: 110%;">
			This is an automatically generated message and was sent to <?php echo Helpers::arrayToList ($info['to']); ?>			
			<?php if (count($info['cc']) > 0): ?>
				and copied to <?php echo Helpers::arrayToList ($info['cc']); ?>
			<?php endif; ?>
		</p>
		
	</body>
</html>