<!DOCTYPE html>
<html lang="en-US">
	<head>
		<meta charset="utf-8">
		<style type="text/css">
			* {margin:0; padding:0;}
			body {font-family:Arial, Helvetica, sans-serif; font-size:11pt; 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: #151515; 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>
			State <?php echo ucwords(str_replace('-', ' ', str_replace('concert-', '', $info['category']))); ?> Registration Form for <?php echo $info['ap']->name; ?>
		</h2>

		<h3>
			Registration Status: 
			<?php if (Helpers::strEqual($info['data']->status, 'complete')): ?>
				<?php echo ucfirst($info['data']->status); ?>
			<?php else: ?>
				Incomplete
			<?php endif; ?>
		</h3>
		<p>
			Thank you for submitting your State <?php echo ucwords(str_replace('-', ' ', str_replace('concert-', '', $info['category']))); ?> Registration Form for <?php echo $info['ap']->name; ?>.  You can resubmit your form as many times as needed until the deadline.  After the deadline, the form will close and entries will be final.  Coordinators will use the information from the latest entries you provide.
		</p>

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

		<br />

		Access your registration from at: <a href="http://www.osaa.org/forms/registration/music/<?php echo $info['category']; ?>?ap=<?php echo $info['ap']->id; ?>">www.osaa.org/forms/registration/music/<?php echo $info['category']; ?>?ap=<?php echo $info['ap']->id; ?></a>

		<br /><br />
		
		<table style="width: 800px;">
			<tr>				
				<td style="width: 30%; min-height: 4em;">					
					<h3>Subdivision</h3>
					<p>			
						<?php echo $info['ap']->division; ?><br />
						<?php echo ucwords(str_replace('-', ' ', $info['category'])); ?><br /><br />						
					</p>					
				</td>

				<td style="width: 30%; min-height: 4em;">					
					<h3>Submitted By</h3>
					<p>			
						<?php echo $info['data']->submitter->name; ?><br />						
						<?php echo $info['data']->submitter->phone; ?><br />
						<a href="mailto:<?php echo $info['data']->submitter->email; ?>"><?php echo $info['data']->submitter->email; ?></a>
					</p>					
				</td>

				<td style="width: 40%; min-height: 4em;">				
					<h3>Form Status</h3>
					<p>			
						<?php if (Helpers::strEqual($info['data']->status, 'complete')): ?>
							<span style="color: #0d581b; font-weight: bold;">
								Complete
							</span>
						<?php else: ?>
							<span style="color: #990000; font-weight: bold;">
								Incomplete
							</span>
						<?php endif; ?>
						<br />
						Created at <?php echo date('g:i a m/d/Y', strtotime($info['form']->created_at)); ?><br />
						Last updated at <?php echo date('g:i a m/d/Y', strtotime($info['form']->updated_at)); ?><br />					
					</p>					
				</td>
			</tr>
		</table>		

		<br /><br />

		<h3 class="line">Qualifying Event</h3>									
		<table style="width: 800px;">
			<tr>				
				<td style="width: 200px;"><b>Name</b></td>
				<td>
					<?php echo $info['data']->event->name; ?>
				</td>
			</tr>				
			<tr>				
				<td style="width: 200px;"><b>Sponsoring League</b></td>
				<td>
					<?php echo $info['data']->event->league; ?>
				</td>
			</tr>				
			<tr>				
				<td style="width: 200px;"><b>Location</b></td>
				<td>
					<?php echo $info['data']->event->location; ?>
				</td>
			</tr>
			<tr>				
				<td style="width: 200px;"><b>Date</b></td>
				<td>
					<?php echo $info['data']->event->date; ?>
				</td>
			</tr>
			<tr>				
				<td style="width: 200px;"><b>Host School</b></td>
				<td>
					<?php echo $info['data']->event->school; ?>
				</td>
			</tr>
		</table>	

		<b>Qualification Criteria</b>

		<table style="width: 800px; font-size: 10pt; line-height: 1em;">
			<?php if (Helpers::strEqual($info['ap']->activity, array('BND', 'ORC'))): ?>
				<tr>
					<td style="width: 40px;">
						<?php if (Helpers::strEqual($info['data']->qualify, 'automatic')): ?>
							[ X ]
						<?php else: ?>
							[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
						<?php endif; ?>
						<br /><br />
					</td>
					<td>
						The group <u>automatically qualified</u> by meeting ALL of the requirements established in the OSAA Music Handbook 3.3.2(b):
						<ul style="font-size: 9pt;">
							<li>Winning an OSAA League Contest (NOT OMEA District), AND</li>
							<li>Satisfying the minimum score requirements established in the OSAA Music Handbook 3.3.2(b)(2).</li>
						</ul>						
					</td>
				</tr>

				<tr>
					<td style="width: 40px;">
						<?php if (Helpers::strEqual($info['data']->qualify, 'leagueWinner')): ?>
							[ X ]
						<?php else: ?>
							[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
						<?php endif; ?>
						<br /><br />
					</td>
					<td>
						The group qualified for the <u>tape pool</u> by winning an OSAA League Contest (NOT OMEA District,) but did not meet all of the automatic qualification standards above; per OSAA Music Handbook 3.3.3(b)(2).
						<br /><br />
					</td>
				</tr>

				<tr>
					<td style="width: 40px;">
						<?php if (Helpers::strEqual($info['data']->qualify, 'twoScores')): ?>
							[ X ]
						<?php else: ?>
							[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
						<?php endif; ?>
						<br /><br />
					</td>
					<td>
						The group qualified for the <u>tape pool</u> by receiving qualifying scores from two or more certified adjudicators at the same qualifying contest; per OSAA Music Handbook 3.3.3(b)(1).
						<br /><br />
					</td>
				</tr>

				<tr>
					<td style="width: 40px;">
						<?php if (Helpers::strEqual($info['data']->qualify, '321score')): ?>
							[ X ]
						<?php else: ?>
							[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
						<?php endif; ?>
						<br /><br />
					</td>
					<td>
						The group qualified for the <u>tape pool</u> by receiving the top score among 3A or 2A/1A groups at a qualifying event; per OSAA Music Handbook 3.3.3(b)(3).
						<br />
					</td>
				</tr>


			<?php elseif (Helpers::strEqual($info['ap']->activity, array('CHO'))): ?>

				<tr>
					<td style="width: 40px;">
						<?php if (Helpers::strEqual($info['data']->qualify, 'automatic')): ?>
							[ X ]
						<?php else: ?>
							[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
						<?php endif; ?>
						<br /><br />
					</td>
					<td>
						The choir <u>automatically qualified</u> by meeting ALL of the requirements established in the OSAA Music Handbook 3.3.2(a):
						<ul style="font-size: 9pt;">
							<li>Winning an OSAA League Contest (NOT OMEA District), AND</li>
							<li>Receiving at least two "1" ratings (81 or higher) from certified adjudicators using the appropriate evaluation scale for the school classification at the OSAA League Contest, AND</li>
							<li>Receiving an average score of 85 or higher from three certified adjudicators at the OSAA League Contest.</li>
						</ul>										
					</td>
				</tr>

				<tr>
					<td style="width: 40px;">
						<?php if (Helpers::strEqual($info['data']->qualify, 'leagueWinner')): ?>
							[ X ]
						<?php else: ?>
							[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
						<?php endif; ?>
						<br /><br />
					</td>
					<td>
						The choir qualified for the <u>tape pool</u> by winning an OSAA League Contest (NOT OMEA District,) but did not meet all of the automatic qualification standards above; per OSAA Music Handbook 3.3.3(a)(2).
						<br /><br />
					</td>
				</tr>

				<tr>
					<td style="width: 40px;">
						<?php if (Helpers::strEqual($info['data']->qualify, 'tape')): ?>
							[ X ]
						<?php else: ?>
							[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
						<?php endif; ?>
						<br /><br />
					</td>
					<td>
						The choir qualified for the <u>tape pool</u> by receiving at least two "1" ratings (81 or higher) from certified adjudicators at a qualifying contest; per OSAA Music Handbook 3.3.3(a)(1).
						<br />
					</td>
				</tr>

			<?php endif; ?>			
					
		</table>
			
		<br /><br />

		<h3 class="line">Program Information</h3>									
		<table style="width: 800px;">
			<tr>				
				<td style="width: 200px;"><b>Group Name</b></td>
				<td>
					<?php echo $info['data']->group_name; ?>
				</td>
			</tr>				
			<tr>				
				<td style="width: 200px;"><b>Director</b></td>
				<td>
					<?php echo $info['data']->director; ?>
				</td>
			</tr>
			<tr>				
				<td style="width: 200px;"><b>Assistant Director</b></td>
				<td>
					<?php echo $info['data']->assistant_director; ?>
				</td>
			</tr>
			<?php if (!is_null($info['data']->accompanist)): ?>
				<tr>				
					<td style="width: 200px;"><b>Accompanist</b></td>
					<td>
						<?php echo $info['data']->accompanist; ?>
					</td>
				</tr>			
			<?php endif; ?>
			<?php if (!is_null($info['data']->soloists)): ?>
				<tr>				
					<td style="width: 200px;"><b>Soloist</b></td>
					<td>
						<?php echo $info['data']->soloists; ?>
					</td>
				</tr>
			<?php endif; ?>
			<tr>				
				<td style="width: 200px;"><b>No. of Performers</b></td>
				<td>
					<?php echo $info['data']->participants; ?>
				</td>
			</tr>
			
		</table>	

		<br /><br />

		<h3 class="line">Music Selection</h3>									
		<table style="width: 800px; font-size: 10pt;">
			<tr>					
				<td style="vertical-align: bottom;"><b>Order</b></td>
				<td style="vertical-align: bottom;"><b>Title</b></td>
				<td style="vertical-align: bottom;"><b>Composer</b></td>
				<td style="vertical-align: bottom;"><b>Publisher</b></td>
				<td style="vertical-align: bottom;"><b>Required List<br />or Pre-Approved</b></td>
			</tr>			

			<?php for($i = 0; $i < 6; $i++): ?>
				<tr>
					<td>Selection <?php echo $i + 1; ?></td>
					<td><?php echo $info['data']->selections[$i]->title; ?></td>
					<td><?php echo $info['data']->selections[$i]->composer; ?></td>
					<td><?php echo $info['data']->selections[$i]->publisher; ?></td>
					<td>
						<?php if ($info['data']->selections[$i]->listed): ?>
							[ X ]
						<?php else: ?>
							[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
						<?php endif; ?>
					</td>
				</tr>
			<?php endfor; ?>
		</table>	

		<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']); ?>.
		</p>
		
	</body>
</html>