<!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>
		<div style="color: #1c43a6; font-size: 18pt; width: 800px; padding-bottom: 4px; border-bottom: 2px solid #1c43a6;">
			OSAA Online Forms
		</div>

		<br />

		<div style="font-weight: bold; font-size: 13pt;">
			<?php echo Helpers::getActivityName($information['activity_program']->activity); ?> Academic All State
		</div>

		<p>
			Hello, <?php echo $information['user']->getDisplayFullName(); ?>.<br /><br />

			Thank you for submitting <?php echo $information['activity_program']->name; ?>'s <?php echo Helpers::getActivityName($information['activity_program']->activity); ?> team nomination for the Academic All State Award.  You can update your entries from your OSAA account up until the deadline.  Results should be posted to the OSAA website about one week after the deadline.			
		</p>

		<br />

		<b>Total GPA:</b> <?php echo number_format($information['data']['data']['total_gpa'], 2, '.', ''); ?><br />
		<b>Total Number of GPAs:</b> <?php echo $information['data']['data']['gpa_count']; ?><br />
		<b>Team GPA:</b> <?php echo number_format($information['data']['data']['team_gpa'], 2, '.', ''); ?><br />

		<br />		

		<table style="width: 450px; border-collapse: collapse;">
			<thead>
				<tr>
					<th style="text-align: left;">Name</th>
					<th style="text-align: left;">Grade</th>
					<th style="text-align: left;">GPA</th>
				</tr>
			</thead>

			<tbody>
				<?php if (count($information['data']['students']) > 0): ?>
					
					<?php $i = 0; ?>

					<?php foreach ($information['data']['students'] as $student): ?>

						<tr <?php if ($i++ % 2 == 0): ?> style="background-color: #eeeeee;" <?php endif; ?>>
							<td><?php echo $student->name; ?></td>
							<td><?php echo $student->grade; ?></td>
							<td><?php echo ($student->gpa > 0) ? number_format($student->gpa, 2, '.', '') : '-'; ?></td>
						</tr>

					<?php endforeach; ?>
				<?php endif; ?>
			</tbody>
		</table>

		<br />		
		<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 ($information['to']); ?>			
			<?php if (count($information['cc']) > 0): ?>
				and copied to <?php echo Helpers::arrayToList ($information['cc']); ?>
			<?php endif; ?>
		</p>
				
	</body>
</html>