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

<p class="staff_contact">
    STAFF CONTACT: Kelly Foster, Associate Director, 503.682.6722 x233, <?php echo Helpers::obfuscateEmailLink ("kellyf@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>December 7</dd>

			<dt>Registration Deadline / Cutoff</dt>
			<dd>January 18</dd>

			<dt>Finals (All)</dt>
			<dd>February 11</dd>
			
			<dt>2017-18 Sanction App. Deadline</dt>
			<dd>March 31</dd>
			
		</dl>

		<h2>Resources</h2>
		<p>
		  	<div>&raquo; <a href="<?php echo asset ('docs/handbooks/chehandbook.pdf'); ?>" target="_blank">OSAA Cheerleading Handbook</a><div style="color: #990000; font-weight: bold; font-size: 9pt;">(Updated <?php echo date('n/j/Y', filemtime(public_path() . '/docs/handbooks/chehandbook.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.occa.net" target="_blank">Oregon Cheerleading Coaches Association (OCCA)</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>
			&raquo; <a href="<?php echo asset ('docs/che/2013-14PerformanceScoreSheetGuidelines.pdf'); ?>" target="_blank">Performance Score Guidelines</a><br>
			&raquo; <a href="<?php echo asset ('docs/che/2013-14OSAAScoreSheetsCombined.pdf'); ?>" target="_blank">OSAA/OCCA Score Sheets</a><br>
		</div></p>

		<h2>Sanctioning Application</h2>
		<p>
			&raquo; <a href="<?php echo asset ('docs/che/CheerleadingSanctioningApplication.pdf'); ?>" target="_blank">OSAA Cheerleading Competition Sanctioning Application</a> 
		</p>	   		
		
	</div>

	<div class="half">				

		<h2>Spirit Safety Clinic Certifications</h2>	
		
		<?php
			$spirit_attendance_file = '/docs/che/CheerSpiritSafetyClinicAttendance16-17.pdf';
		?>

		<?php if (file_exists(public_path() . $spirit_attendance_file)): ?>
			&raquo; <a href="<?php echo asset ($spirit_attendance_file); ?>" target="_blank">2016-17 Cheer 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 Cheer Spirit Safety Clinic Dates</h3>
		<table style="font-size: 10pt; border-collapse: collapse; width: 100%;">
			<tr>
				<td style="width: 40px; 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-04-03 12:00:00',
						'location' => 'OCCA Conference, Eugene'
					),
					(object)array(
						'start_at' => '2016-06-25 10:00:00',
						'location' => 'South Umpqua HS, Myrtle Creek'
					),
					(object)array(
						'start_at' => '2016-07-16 10:00:00',
						'location' => 'Sweet Home HS, Sweet Home'
					),
					(object)array(
						'start_at' => '2016-07-16 12:00:00',
						'location' => 'Riverside HS, Boardman'
					),					
					(object)array(
						'start_at' => '2016-07-20 18:00:00',
						'location' => 'OSAA Office, Wilsonville'
					),
					(object)array(
						'start_at' => '2016-07-30 10:00:00',
						'location' => 'Ridgeview HS, Redmond'
					),					
					(object)array(
						'start_at' => '2016-07-30 10:00:00',
						'location' => 'OSAA Office, Wilsonville'
					),
					(object)array(
						'start_at' => '2016-08-03 18:30:00',
						'location' => 'Sheldon HS, Eugene'
					),
					(object)array(
						'start_at' => '2016-08-09 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('n/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 2015-16 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>

		<?php /* <small>* Team cheer clinic</small> */ ?>
		
	</div>
</div>
