<?php
    // Create an array for information
    $info = array();

    // Get the user's privileges/roles
    $info['user_access'] = (object)array(
        'logged_in'    => Auth::check(),
        'school'       => false,
        'osaa'         => false,
        'commissioner' => false,
        'bia'          => false
    );

    if ($info['user_access']->logged_in)
    {        
        $info['user_access']->osaa = Auth::user()->isOsaaUser();
        $info['user_access']->commissioner = Auth::user()->isCommissioner();
        $info['user_access']->bia = Auth::user()->isBiaUser();

        // Special access for Gibby
        if (Helpers::isGibby())
        {
            $info['user_access']->commissioner = true;
        }
        
        $schools = Auth::user()->getLinkedSchools();

        // Check if there are any schools associated with this user account
        if (count($schools) > 0)
        {
            $info['user_access']->school = true;
        }
    }
?>

<?php $__env->startSection('page_title'); ?>
    OSAA - Help
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_sub_title'); ?>    
   OSAA Website Help
<?php $__env->stopSection(); ?>

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

    <style type="text/css">
        h3 {
            color: #220000 !important;
        }
    </style>

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

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

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

<?php $__env->startSection('page_functions'); ?>
	<?php /* -
    <a href="#"><img src="<?php echo asset('images/icons/bookmark_24px.png'); ?>" alt="[B]" title="Bookmark this page" width="24" height="24" /></a>
    <a href="#"><img src="<?php echo asset('images/icons/pdf_24px.png'); ?>" alt="[E]" title="Export as PDF file" width="24" height="24" /></a>
    <a href="#"><img src="<?php echo asset('images/icons/ap_listing_24px.png'); ?>" alt="[A]" title="AP listing" width="24" height="24" /></a>
    <a href="#"><img src="<?php echo asset('images/icons/print_24px.png'); ?>" alt="[P]" title="Print this page" width="24" height="24" /></a>
    <a href="#"><img src="<?php echo asset('images/icons/help_24px.png'); ?>" alt="[H]" title="Help" width="24" height="24" /></a>
     */ ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('main_content'); ?>    	
    
    <h1>Accounts &amp; Logins</h1>

    <?php if (!$info['user_access']->logged_in): ?>
        <h2>OSAA Website Accounts</h2>
        <p>
            Anyone on the internet can create an OSAA Website Account.  Creating an account entails providing a unique e-mail address and a password.  Since anyone in the world can register for an account, access to administrative functions like editing schedules, staff, rosters, submitting scores, filling out online forms, etc. is only available to accounts that have linked to a school.
        </p>
        <p>
            <a href="<?php echo url('/account/register'); ?>">&raquo; Register for an OSAA Website Account</a>
        </p>    
        <div style="margin-left: 40px; font-size: 9pt;">
            <div class="columns float_left">
                <div class="third">
                    <h3>E-Mail Address</h3>
                    <p>
                        It is highly recommended to use your school related e-mail address. Users must have their own, unique e-mail address.  If your registration attempt fails because your e-mail address is already in use, then an account has already been registered to that e-mail address.
                    </p>
                </div>
                <div class="third">
                    <h3>Forgotten Passwords</h3>
                    <p>
                        If you do not remember your password, you can request a new, temporary password to be sent to the e-mail address registered with your account.
                    </p>
                    <p>
                        <a href="<?php echo url('/account/recover'); ?>">&raquo; Recover Your Account</a>
                    </p>
                </div>
                <div class="third">
                    <h3>Password</h3>
                    <p>
                        Passwords must be 8-16 characters and can include letters, numbers, or special characters.  Your account password is different from your school's key code.
                    </p>
                </div>
            </div>        
        </div>

        <br class="clear" />

        <h2>School Key Codes and Linking Accounts</h2>
        <p>
            OSAA Website Accounts must be linked to a school in order to access administrative and management functions for that school.  Linking an account to a school is accomplished by entering in a School's Key Code.
        </p>        
        <p>
            If you know your school's key code, you can enter it at account creation to link your newly registered account to a school.  Otherwise, you can link your account to a school at a later date.
        </p>        

        <div style="margin-left: 40px; font-size: 9pt;">
            <div class="columns float_left">                
                <div class="third">
                    <h3>Where Do I Get My Key Code?</h3>
                    <p>
                        If you do not know your key code, you can request it from your Athletic Director or AD Secretary.  Administrators can lookup their school's key codes from their "My Account" page.  You can still create an account and link your account to a school at a later time.
                    </p>
                </div>
            </div>        
        </div>

        <br class="clear" />

        <h1>Online Forms</h1>
        <h2>Event Management &amp; Ticket Report Form</h2>

        <div style="margin-left: 40px; font-size: 9pt;">
            <div class="columns float_left">
                <div class="third">                
                    <h3>Where Is the Form?</h3>
                    <p>
                        School administrators can access the online Event Management &amp; Ticket Report Form on their <b>My Account</b> page.  Users must be logged in with administrative access to use these online forms.
                    </p>
                    <p>
                        <a href="<?php echo url('/account/login'); ?>" target="_blank">&raquo; Login to Your Account</a>
                    </p>
                </div>
                <div class="third">
                    <h3>Instructions</h3>
                    <p>
                        The following document provides a lot of information regarding the new online Event Management &amp; Ticket Report form for OSAA playoff contests.
                    </p>
                    <p>
                        <a href="<?php echo asset('/docs/osaainfo/Event Management & Ticket Report Instructions.pdf'); ?>" target="_blank">&raquo; Event Management &amp; Ticket Report Instructions</a>
                    </p>
                </div>
                <div class="third">
                    
                </div>
            </div>           

            <br class="clear" />
        </div>
    <?php else: ?>

        <h2>School Key Codes and Linking Accounts</h2>
        <p>
            OSAA Website Accounts must be linked to a school in order to access administrative and management functions for that school.  Linking an account to a school is accomplished by entering in a School's Key Code.  If you are logged in, you can link your account to a school by filling out the "Add a School or New Role" form from your "My Account" page.
        </p>
        <p>
            <a href="<?php echo url('/account'); ?>#new-role">&raquo; Add a School or New Role</a>
            <?php if (!$info['user_access']->logged_in): ?>
                <span class="small gray note" style="margin-left: 25px;">(You must be logged in to do this operation.)</span>
            <?php endif; ?>
        </p>
        <div style="margin-left: 40px; font-size: 9pt;">
            <div class="columns float_left">
                <div class="third">
                    <h3>Administrative Key Code</h3>
                    <p>
                        Your school's Administrative Key Code is an 8 character string of letters and/or numbers that links your account with administrative privileges.  Administrators can edit school staff and contact information, submit online forms, and manage teams.
                    </p>
                </div>
                <div class="third">
                    <h3>Coaches Key Code</h3>
                    <p>
                        Your school's Coaches Key Code, or Non-Administrative Key Code, is a 4 character string of letters and/or numbers that links your account with coaching privileges.  Coaches can edit schedules, manage rosters, and submit scores.
                    </p>                
                </div>
                <div class="third">
                    <h3>Where Do I Get My Key Code?</h3>
                    <p>
                        If you do not know your key code, you can request it from your Athletic Director or AD Secretary.  Administrators can lookup their school's key codes from their "My Account" page.  You can still create an account and link your account to a school at a later time.
                    </p>
                </div>
            </div>        
        </div>

    
    
        <br class="clear" />

        <?php if ($info['user_access']->school): ?>
            <h1>Schedules &amp; Scores</h1>

            <h2>Managing Schedules</h2>
            <p>
                You must be logged in to manage your schedules and other school or team tasks.  Administrators have access to all team functions, coaches can access their linked sports/activities teams.
            </p>
            <p>
                <a href="<?php echo asset ('docs/osaainfo/OSAAAccountInstructions.pdf'); ?>" target="_blank">&raquo; Full OSAA Website Instructions</a>  
        	</p>
            <div style="margin-left: 40px; font-size: 9pt;">
                <div class="columns float_left">
                    <div class="third">                
                        <?php /*  <h3>2016-17 Schedules</h3>
                        <p>
                            Schools are required to input varsity team sport schedules into the OSAA website by the first contest date.  Refer to section 3 in the full website instructions.
                        </p>  */ ?>

                        
                            <h3>2018-19 Schedules <div style="float: right; color: #ffffff; background-color: #dd0000; font-size: 10pt; padding: 0.15em 0.25em; margin-right: 10px;">FALL &amp; WINTER</div></h3>
                            <p>
                                Next school year's fall and winter sports and activities have been added to the website.  Follow these instructions for entering in next year's 2018-19 schedules.
                            </p>
                            <p>
                                <a href="<?php echo asset ('docs/help/NextYearScheduling.pdf'); ?>" target="_blank">&raquo; Inputting 2018-19 Schedules</a>
                            </p>
                        
                    </div>
                    <div class="third">
                        <h3>Entering Scores</h3>
                        <p>
                            Scores must be entered by 10pm the night of the contest.  Be sure your contest information is correct (opponents, date, time) before submitting a score.  Refer to section 6 in the full website instructions.
                        </p>
                    </div>
                    <div class="third">
                        <h3>Staff, Coaches, &amp; Certifications</h3>
                        <p>
                            Sections 9 &amp; 10 in the full website instructions cover the steps for managing school staff and coaches.  Administrators can also add in certifications for tracking purposes.
                        </p>
                    </div>
                </div>           

                <br class="clear" />

                <div class="columns float_left">
                    <div class="third">
                        <h3>Out-of-State Records</h3>
                        <p>
                            Instructions regarding managing records of out-of-state opponents can be found below.
                        </p>
                        <p>
                           <a href="<?php echo asset ('docs/osaainfo/ManagingOutofStateRecordsInstructions.pdf'); ?>" target="_blank">&raquo; Managing Out-of-State Records Instructions</a>
                        </p>
                    </div>
                    <div class="third">
                        <h3>Volleyball Tournaments</h3>
                        <p>
                            For instructions on entering Volleyball Tournament contests and results, please follow the instructions below.
                        </p>
                        <p>
                            <a href="<?php echo asset ('docs/osaainfo/VolleyballTournamentInstructions.pdf'); ?>" target="_blank">&raquo; Volleyball Tournament Instructions</a>
                        </p>
                    </div>
                </div>
            </div>
        

            <h1>Online Forms</h1>
            <h2>Eligibility Request Form</h2>

            <div style="margin-left: 40px; font-size: 9pt;">
                <div class="columns float_left">
                    <div class="third">                
                        <h3>Where Is the Form?</h3>
                        <p>
                            School administrators can access the online Student Eligibility Request Form on the <a href="<?php echo url('/governance/forms'); ?>" target="_blank">OSAA Forms</a> page.  You can also access the form directly from the following link.
                        </p>
                        <p>
                            <a href="<?php echo url('/forms/eligibility'); ?>" target="_blank">&raquo; Online Eligibility Form</a>
                        </p>
                    </div>
                    <div class="third">
                        <h3>Instructions</h3>
                        <p>
                            The following document provides a lot of information regarding the online eligibility request form and process.
                        </p>
                        <p>
                            <a href="<?php echo asset ('docs/osaainfo/OnlineEligibilityInstructions.pdf'); ?>" target="_blank">&raquo; Online Eligibility Instructions</a>
                        </p>
                    </div>
                    <div class="third">
                        
                    </div>
                </div>           

                <br class="clear" />
            </div>

            <h2>Event Management &amp; Ticket Report Form</h2>

            <div style="margin-left: 40px; font-size: 9pt;">
            <div class="columns float_left">
                <div class="third">                
                    <h3>Where Is the Form?</h3>
                    <p>
                        School administrators can access the online Event Management &amp; Ticket Report Form on their <b>My Account</b> page under the <b>Ticket Reports</b> sub-tab.  Users must be logged in with administrative access to use these online forms.
                    </p>
                    <p>
                        <a href="<?php echo url('/account'); ?>" target="_blank">&raquo; My Account</a>
                    </p>
                </div>
                <div class="third">
                    <h3>Instructions</h3>
                    <p>
                        The following document provides a lot of information regarding the new online Event Management &amp; Ticket Report form for OSAA playoff contests.
                    </p>
                    <p>
                        <a href="<?php echo asset('/docs/osaainfo/Event Management & Ticket Report Instructions.pdf'); ?>" target="_blank">&raquo; Event Management &amp; Ticket Report Instructions</a>
                    </p>
                </div>
                <div class="third">
                    
                </div>
            </div>           

            <br class="clear" />
        </div>

            <h1>OSAA Calendar</h1>
            <h2>Syncing</h2>

            <div style="margin-left: 40px; font-size: 9pt;">
                <div class="columns float_left">
                    <div class="third">                
                        <h3>Sync with the OSAA Calendar</h3>
                        <p>
                            You can sync the OSAA calendar with your many applications including Google calendar and Outlook.  Follow the steps outlined on this page to sync your calendar with the OSAA calendar.
                        </p>
                        <p>
                            The URL to the OSAA calendar is shown below.  This links to the OSAA's Internet Calendaring and Scheduling (ICS) file, also known as an iCalendar.
                        </p>                        
                        <p>
                            <a href="webcal://outlook.office365.com/owa/calendar/99c6ac679727468b870626ba59577311@osaa.org/ecfac95d9cf94aa88bc691bb9fa5ee864467951806542035677/S-1-8-2805962506-2479837140-127788313-1296219182/reachcalendar.ics" class="sync_download" target="_blank" style="font-size:9pt;">OSAA Calendar ICS Link</a>
                        </p>
                    </div>
                    <div class="third">
                        <h3>Google Calendar Sync</h3>
                        <p>
                            <ol>
                                <li>Right-click on the <b>OSAA Calendar ICS Link</b>, shown left, and select <b>Copy link address</b> or <b>Copy link</b>
                                <li>Go to your Google calender in a web browser</li>
                                <li>At the bottom of the left slide, click the <b>Arrow</b> next to <b>Other Calendars</b></li>
                                <li>Select <b>Add by URL</b></li>
                                <li>Paste the copied URL and click <b>Add Calendar</b></li>
                            </ol>
                        </p>
                    </div>
                    <div class="third">
                        <h3>Outlook Sync</h3>
                        <p>
                            <ol>
                                <li>Click the link to the <b>OSAA Calendar ICS</b> (shown to the left)</li>                                
                                <li>You might be prompted to acknowledge that you are opening a hyperlink, if so, click <b>Yes</b></li>
                                <li>If asked, open the link with <b>Microsoft Outlook</b></li>
                                <li>At the prompt, <b>Add this Internet Calendar to Outlook and subscribe to updates</b>, click <b>Yes</b>.
                                <li>The OSAA Calendar opens in side-by-side view in the Outlook Calendar and is added to the Navigation Pane in Calendar view under <b>Other Calendars</b></li>
                            </ol>
                        </p>
                    </div>
                </div>           

                <br class="clear" />
            </div>

        <?php endif; ?>

        <?php if ($info['user_access']->commissioner): ?>

            <h1>Help for Commissioners</h1>
            <h2>Ejection Reports</h2>
            <div style="margin-left: 40px; font-size: 9pt;">
                <div class="columns float_left">
                    <div class="third">                
                        <h3>Ejection Policies and Reminders</h3>
                        <p>
                            The following link opens a document with pertinent information regarding ejections and some reminders for Commissioners.
                        </p>
                        <p>
                            <a href="<?php echo asset('/docs/commissioners/Ejection Information for Commissioners.pdf'); ?>" target="_blank">&raquo; Ejection Information for Commissioners</a>
                        </p>
                    </div>
                    <div class="third">
                        <h3>Instructions</h3>
                        <p>
                            The following document provides a step-by-step outline of accessing the online ejection report form and submitting an ejection report.
                        </p>
                        <p>
                            <a href="<?php echo asset('/docs/commissioners/Online Ejection Report Instructions.pdf'); ?>" target="_blank">&raquo; Online Ejection Report Instructions</a>
                        </p>
                    </div>
                    <div class="third">
                        <h3>Additional Assistance</h3>
                        <p>
                            If you need additional assistance with ejection reports, please contact OSAA support, <?php echo Helpers::obfuscateEmailLink ("spoort@osaa.org"); ?> or call (503) 682-6722 x228.
                        </p>
                    </div>
                </div>           

                <br class="clear" />
            </div>

            <h2>Playoff Reimbursements</h2>
            <div style="margin-left: 40px; font-size: 9pt;">
                <div class="columns float_left">
                    <div class="third">                
                        <h3>Instructions</h3>
                        <p>                            
                            The following document provides a step-by-step outline of accessing the online playoff reimbursement forms.
                        </p>
                        <p>
                            <a href="<?php echo asset('/docs/commissioners/Online Playoff Reimbursement Instructions.pdf'); ?>" target="_blank">&raquo; Online Playoff Reimbursement Instructions</a>
                        </p>
                    </div>
                    <div class="third">
                        <h3>Additional Assistance</h3>
                        <p>
                            If you need additional assistance with ejection reports, please contact OSAA support, <?php echo Helpers::obfuscateEmailLink ("spoort@osaa.org"); ?> or call (503) 682-6722 x228.
                        </p>
                    </div>
                </div>           

                <br class="clear" />
            </div>




        <?php endif; ?>

    <?php endif; ?>


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