<!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 Online Forms</h1>	

		<h2 style="color: #0d581b;">
			State <?php echo ucwords(str_replace('-', ' ', str_replace('concert-', '', $info['form']->category))); ?> Materials for <?php echo $info['ap']->name; ?>
		</h2>

		<h3 style="color: #990000;">
			Registration Status: 
			<?php if ($info['data']->complete): ?>
				Complete
			<?php elseif (!is_null($info['form']->submitted_at)): ?>
				Pending Additional Materials				
			<?php else: ?>
				Incomplete				
			<?php endif; ?>
		</h3>
		<p>
			<?php if (!$info['data']->complete): ?>
				Some supplemental materials have been received by the OSAA.  You're still missing a few required items (explained below).
			<?php else: ?>
				All required supplemental materials have been received by the OSAA.
			<?php endif; ?>
		</p>

		<?php if (!$info['data']->complete): ?>
			<table style="width: 100%;">
				<tr>
					<td style="font-weight: bold; background: #ffefb0; border: 1px solid #e1c146; padding: 8px 16px;">
						You have to submit additional supplemental materials to complete your registration.  Please refer to <a href="http://www.osaa.org/forms/music/registration">www.osaa.org/forms/music/registration</a> for your group's updated application status.
					</td>
				</tr>
			</table>
		<?php else: ?>			
			View your application status at: <a href="http://www.osaa.org/forms/music/registration">www.osaa.org/forms/music/registration</a>.

			<br />
		<?php endif; ?>

		<br /><br />

		<h3>Required Additional Materials</h3>
		<?php foreach ($info['required_items'] as $item): ?>

			<b>
				<?php if (Helpers::strEqual($item, 'form')): ?>
					Online Registration Form
				<?php elseif (Helpers::strEqual($item, 'scores')): ?>
					Adjudication Scores
				<?php elseif (Helpers::strEqual($item, 'roster')): ?>
					Class Roster
				<?php elseif (Helpers::strEqual($item, 'music')): ?>
					Sheet Music
				<?php elseif (Helpers::strEqual($item, 'tape')): ?>
					Digital Recording
				<?php endif; ?>
			</b>
			-
			<?php if ($info['data']->items->{strtolower($item)}): ?>
				Received
			<?php else: ?>
				Missing
			<?php endif; ?>

			<br />
		<?php endforeach; ?>


		<br /><br />
		
		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>