<?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" style="font-size: 10pt;">
	<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>All Finals</dt>
			<dd>February 11</dd>
			
			<dt>2017-18 Sanction App. Deadline</dt>
			<dd>March 31</dd>
			
		</dl>

		<br />

		<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>
			   		
		
	</div>

	<div class="half">				

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

		<br />

		<h2>Spirit Safety Certification</h2>
		<p>
			The OSAA is rolling out a new online Spirit Safety Certification course.  Spirit Safety certifications will now be offered exclusively online.  This online certification course must be completed annually in order to fulfill the Spirit Safety Certification requirement for all Cheerleading and Dance/Drill coaches.  This new online certification process is free.  
		</p>
		<p>
			<b>Online course will be available: July 25th, 2017</b>
		</p>
		<p>
			&raquo; <a href="<?php echo url('/spirit-safety'); ?>">OSAA Spirit Safety</a>
		</p>

		<?php /*  <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
				$spirit_safety_file = storage_path() . '/data/spirit_safety_clinics.json';

				if (file_exists($spirit_safety_file))
				{
					$raw_data = file_get_contents($spirit_safety_file);
					
					if ($raw_data === false)
					{
						throw new Exception("There was an error opening the data file containing spirit safety clinic information.");						
					}

					$data = json_decode($raw_data);

					if (is_null($data) or !is_object($data) or !property_exists($data, strtoupper($activity_slug)))
					{
						throw new Exception("The data file containing spirit safety clinic information was invalid.");
					}

					$clinics = $data->{ strtoupper($activity_slug) };

					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;
						}
					});

				}
				else
				{
					$clinics = array();
				}

				$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 ' . Session::get('year') . '-' . substr(intval(Session::get('year')) + 1, 2, 2) . ' 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>
