<!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 Speech District <?php echo $info['league']->name; ?> Entries for <?php echo $info['object']->school->short_name; ?></h1>	

		<p>			
			This message is to inform you that the district tournament results from Speech District <?php echo $info['league']->name; ?> have successfully been submitted by the District Director, <?php echo $info['data']->director->name; ?>.  You have OSAA State Speech Championships qualifiers.  Below is a list of your school's qualifiers and their events.
		</p>						

		<?php if (count($info['qualifiers']['individual']) > 0): ?>
			<h2>Individual Event Entries</h2>

			<p>
				Some individual events require you to upload the participant's speech from the district tournament (manuscript and bibliography - refer to the <a href="http://www.osaa.org/docs/handbooks/spehandbook.pdf">OSAA Speech Handbook</a> for additional information).  For those events, a link to the corresponding OSAA Dropbox will appear in that participant's row.  File types that can be uploaded include .PDF, .DOC, .DOCX, etc.  Please be sure that the name of the file is the participant's first and last name.  For example, if John Smith qualified for After Dinner Speaking, be sure his speech is named "John Smith.pdf" and then upload it to the OSAA Dropbox via the link.
			</p>

			<table style="width: 800px;">
				<thead>
					<tr>
						<th style="text-align: left; border-bottom: 1px solid #cccccc;">Event</th>
						<th style="text-align: left; border-bottom: 1px solid #cccccc;">Name</th>
						<th style="text-align: left; border-bottom: 1px solid #cccccc;">Other IE</th>
						<th style="text-align: left; border-bottom: 1px solid #cccccc;">Speech Title</th>
						<th style="border-bottom: 1px solid #cccccc;">&nbsp;</th>
					</tr>
				</thead>

				<tbody>
					<?php foreach ($info['qualifiers']['individual'] as $qualifier): ?>
						<?php
							$event = $info['events'][$qualifier->event];
						?>
						<tr>
							<td><?php echo $event->name; ?> (<?php echo $event->slug; ?>)</td>							
							<td>
								<?php if ($qualifier->is_alt): ?>
									<i>ALTERNATE</i> -
								<?php endif; ?>
								<?php echo $qualifier->name; ?>
							</td>							
							<td>
								<?php echo (!Helpers::strIsEmpty($qualifier->other_event)) ? $qualifier->other_event : '- -'; ?>									
							</td>
							<td><?php echo (!property_exists($event, 'no_title')) ? $qualifier->title : 'N/A'; ?></td>
							<td>
								<?php if (property_exists($event, 'dropbox')): ?>
									<a href="<?php echo $event->dropbox; ?>">Upload Speech</a>
								<?php endif; ?>
							</td>
						</tr>
					<?php endforeach; ?>
				</tbody>	

			</table>

			<br />

		<?php endif; ?>

		<?php if (count($info['qualifiers']['team']) > 0): ?>
			<h2>Team Event Entries</h2>

			<table style="width: 800px;">
				<thead>
					<tr>
						<th style="text-align: left; border-bottom: 1px solid #cccccc;">Event</th>
						<th style="text-align: left; border-bottom: 1px solid #cccccc;">Names</th>					
					</tr>
				</thead>

				<tbody>
					<?php foreach ($info['qualifiers']['team'] as $qualifier): ?>
						<?php
							$event = $info['events'][$qualifier->event];
						?>
						<tr>
							<td><?php echo $event->name; ?> (<?php echo $event->slug; ?>)</td>							
							<td>
								<?php if ($qualifier->is_alt): ?>
									<i>ALTERNATE</i> -
								<?php endif; ?>
								<?php echo $qualifier->name; ?>
							</td>							
						</tr>
					<?php endforeach; ?>
				</tbody>	

			</table>

			<br />

		<?php endif; ?>

		<p>
			If you have any corrections, please contact Peter Weber, <a href="mailto:peterw@osaa.org">peterw@osaa.org</a>.
		</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>