<?php $__env->startSection('page_title'); ?>
    OSAA - Spirit Safety Clinic
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_sub_title'); ?>    
   OSAA Spirit Safety Clinic
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    @parent

    <style type="text/css">
        #sub_nav h2 {
            color: #990000;
            font-size: 12pt;
            text-align: center;
        }

        #sub_nav p {
            margin-left: 1em;
            margin-right: 1em;
            font-size: 10pt;
            text-align: center;
        }

    </style>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('jquery_init'); ?>

    $('.division_select, .page_functions').remove();

<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_functions'); ?>
       

<?php $__env->stopSection(); ?>


<?php $__env->startSection('sub_navigation'); ?>
    <div id="sub_nav">
        <h1>Links</h1>

        <ul>
            <li><a href="<?php echo url('/cheer'); ?>">Cheerleading</a></li>
            <li><a href="<?php echo url ('/dance'); ?>">Dance/Drill</a></li>
        </ul>   

        <br />

        <h2>Late Clinic Certification</h2>
        
        <p>
            $25 fee invoiced to school
        </p>

        <br />

        <p style="text-align: left;">
            For late certifications, download the NFHS Power Point presentation and the rules book corrections using the links below.  After viewing the rules presentation, complete the spirit safety rules test for either Cheerleading or Dance.            

            <br /><br />

            <b>Follow the instructions on the exam carefully.</b>

            <br /><br />


            &raquo; <a href="<?php echo asset('/docs/clinics/2015-16 NFHS Spirit Rule Power Point.pptx'); ?>" target="_blank">2015-16 NFHS Spirit Rule Power Point</a><br />
            &raquo; <a href="<?php echo asset('/docs/clinics/2015SpiritRulesBookCorrectionsEdits.pdf'); ?>" target="_blank">2015-16 Spirit Rules Book Corrections</a><br />
            <br />
            &raquo; <a href="<?php echo asset('/docs/clinics/2015-2016SpiritRulesTestCHEER.pdf'); ?>" target="_blank">Cheerleading Spirit Safety Rules Test</a><br />
            &raquo; <a href="<?php echo asset('/docs/clinics/2015-2016SpiritRulesTestDANCE.pdf'); ?>" target="_blank">Dance Spirit Safety Rules Test</a>
        </p>

    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main_content'); ?>    
    
    <div class="columns">

        <div class="half">

            <h1>Cheerleading</h1>

            <br />

            <h2>Spirit Safety Clinic Certifications</h2>    
        
            
            &raquo; <a href="<?php echo asset ('docs/che/CheerSpiritSafetyClinicAttendance15-16.pdf'); ?>" target="_blank">2015-16 Cheer Safety Clinic Certifications</a>
            
            <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;">2015-16 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' => '2015-06-27 11:30:00',
                            'location' => 'Hidden Valley HS, Grants Pass'
                        ),
                        (object)array(
                            'start_at' => '2015-07-18 13:00:00',
                            'location' => 'Hermiston HS, Hermiston'
                        ),
                        (object)array(
                            'start_at' => '2015-07-18 10:30:00',
                            'location' => 'Sweet Home HS, Sweet Home'
                        ),
                        (object)array(
                            'start_at' => '2015-07-25 10:30:00',
                            'location' => 'Ridgeview HS, Redmond'
                        ),
                        (object)array(
                            'start_at' => '2015-08-05 09:00:00',
                            'location' => 'OSAA Office, Wilsonville'
                        ),
                        (object)array(
                            'start_at' => '2015-08-10 18:00:00',
                            'location' => 'OSAA Office, Wilsonville'
                        ),
                        (object)array(
                            'start_at' => '2015-08-11 18:00:00',
                            'location' => 'Sheldon HS, Eugene'
                        )
                    );

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

        </div>

        <div class="half">

            <h1>Dance/Drill</h1>

            <br />

            <h2>Spirit Safety Clinic Certifications</h2>
                
            &raquo; <a href="<?php echo asset ('docs/dnc/Dance&DrillSpiritSafetyClinicAttendance15-16.pdf'); ?>" target="_blank">2015-16 Dance Safety Clinic Certifications</a>
            
            <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;">2015-16 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' => '2015-06-28 10:45:00',
                            'location' => 'Pacific University, Forest Grove'
                        ),
                        (object)array(
                            'start_at' => '2015-07-02 10:45:00',
                            'location' => 'Pacific University, Forest Grove'
                        ),
                        (object)array(
                            'start_at' => '2015-07-06 10:45:00',
                            'location' => 'Pacific University, Forest Grove'
                        ),
                        (object)array(
                            'start_at' => '2015-07-11 10:45:00',
                            'location' => 'Pacific University, Forest Grove'
                        ),
                        (object)array(
                            'start_at' => '2015-08-05 10:30:00',
                            'location' => 'OSAA Office, Wilsonville'
                        ),
                        (object)array(
                            'start_at' => '2015-08-10 17: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 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>

        </div>


    </div>


<?php $__env->stopSection(); ?>