<?php echo $__env->make ('/activities/highlights', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<p class="staff_contact">
    STAFF CONTACT: Kyle Stanfield, Assistant Executive Director, 503.682.6722 x239, <?php echo Helpers::obfuscateEmailLink ("kyles@osaa.org"); ?>
</p>
   
<div class="columns">
	<div class="half">
		
		<h2>Important Season Dates - 2016-17</h2>
		<dl>

			<dt>First Practice Date</dt>
			<dd>August 15</dd>

			<dt>First Contest Date</dt>
			<dd>August 25</dd>

			<dt>Registration Forms Available</dt>
			<dd>November 7</dd>

			<dt>Registration Deadline / Cutoff</dt>
			<dd>December 16</dd>
			
			<dt>Music/Rosters/Team Photo Due</dt>
			<dd>March 6</dd>

			<dt>Finals (All)</dt>
			<dd>March 16-18</dd>
		</dl>

		<h2>Resources</h2>
		<p>
		  	<div>&raquo; <a href="<?php echo asset ('docs/handbooks/dnchandbook.pdf'); ?>" target="_blank">OSAA Dance/Drill Handbook</a><div style="color: #990000; font-weight: bold; font-size: 9pt;">(Updated <?php echo date('n/j/Y', filemtime(public_path() . '/docs/handbooks/dnchandbook.pdf')); ?>)</div>
			&raquo; <a href="http://nfhs.org/activities-sports/spirit/" target="_blank">NFHS Rules Information</a><br>			
			&raquo; <a href="<?php echo url('/health-safety'); ?>">Health and Safety Information</a><br>
			&raquo; <a href="http://www.ddcaoregon.org" target="_blank">Dance Drill Coaches Association (DDCA)</a><br>
			&raquo; <a href="<?php echo asset ('docs/forms/ReimbursementFormula.pdf'); ?>" target="_blank">OSAA Playoff Reimbursement Formula</a><br>		
			&raquo; <a href="<?php echo asset ('docs/forms/MemberSchoolTicketPolicy.pdf'); ?>" target="_blank">OSAA Member School Ticket Policy</a><br>
		</div>
		</p>
		
	</div>

<div class="half">


		
	
	<h2>Spirit Safety Clinic Certifications</h2>
				
		<?php
			$spirit_attendance_file = '/docs/dnc/Dance&DrillSpiritSafetyClinicAttendance16-17.pdf';
		?>

		<?php if (file_exists(public_path() . $spirit_attendance_file)): ?>
			&raquo; <a href="<?php echo asset ($spirit_attendance_file); ?>" target="_blank">2016-17 Dance Safety Clinic Certifications</a>
		<?php else: ?>
			2016-17 attendance lists will be posted here.
		<?php endif; ?>		
		
		<br class="clear" />

		<img src="<?php echo asset('/images/icons/calendar_2_32px.png'); ?>" alt="" title="" style="float: right;" />
		
		<h3 style="color: #990000; margin-bottom: 9px;">2016-17 Dance Spirit Safety Clinic Dates</h3>
		<table style="font-size: 10pt; border-collapse: collapse; width: 100%;">
			<tr>
				<td style="width: 54px; font-weight: bold; border-bottom: 2px solid #1C43A6;">Date</td>
				<td style="width: 40px; font-weight: bold; border-bottom: 2px solid #1C43A6;">Day</td>				
				<td style="width: 54px; font-weight: bold; border-bottom: 2px solid #1C43A6;">Time</td>
				<td style="font-weight: bold; border-bottom: 2px solid #1C43A6;">Location</td>
			</tr>

			<?php
				$clinics = array(
					(object)array(
						'start_at' => '2016-06-29 14:45:00',
						'location' => 'Pacific University, Forest Grove'
					),
					(object)array(
						'start_at' => '2016-07-06 14:45:00',
						'location' => 'Pacific University, Forest Grove'
					),
					(object)array(
						'start_at' => '2016-07-10 10:30:00',
						'location' => 'Pacific University, Forest Grove'
					),
					(object)array(
						'start_at' => '2016-07-15 10:45:00',
						'location' => 'Pacific University, Forest Grove'
					),
					(object)array(
						'start_at' => '2016-08-03 18:00:00',
						'location' => 'Sheldon HS, Eugene'
					),
					(object)array(
						'start_at' => '2016-08-06 18:00:00',
						'location' => 'OSAA Office, Wilsonville'
					),
					(object)array(
						'start_at' => '2016-08-20 10:00:00',
						'location' => 'OSAA Office, Wilsonville'
					)
				);

				usort($clinics, function ($a, $b)
				{
					$a1 = strtotime($a->start_at);
					$b1 = strtotime($b->start_at);

					if ($a1 < $b1)
					{
						return -1;
					}
					elseif ($a1 > $b1)
					{
						return 1;
					}
					else
					{
						return 0;
					}
				});

				$count = 0;

				foreach ($clinics as $i => $clinic)
				{
					$over = true;
					if (strtotime($clinic->start_at) >= time())
					{
						$count++;
						$over = false;
					}

					if (!$over)
					{
						echo (($i % 2) == 1) ? '<tr style="height: 2.25em; background-color: #efefef;">' : '<tr style="height: 2.25em;">';						
					}
					else
					{
						echo (($i % 2) == 1) ? '<tr style="height: 2.25em; background-color: #efefef; text-decoration: line-through;">' : '<tr style="height: 2.25em; text-decoration: line-through;">';	
					}					
					echo '<td>' . date('M j', strtotime($clinic->start_at)) . '</td>';
					echo '<td>' . date('D', strtotime($clinic->start_at)) . '</td>';
					echo '<td>' . date('g:ia', strtotime($clinic->start_at)) . '&nbsp;&nbsp;</td>';
					echo '<td>' . $clinic->location . '</td>';
					echo '</tr>';
				}

				if ($count == 0)
				{
					echo '<tr style="line-height: 4em;"><td colspan="4" style="text-align: center;">All 2016-17 Spirit Safety Clinics have been completed.</td></tr>';
				}
			?>

		</table>

		<div style="font-size: 9pt; line-height: 1.15em; margin-top: 1em; font-weight: bold;">
			This required coach certification clinic is free - no registration required.
		</div>
		
	</div>
</div>