. */ include_once 'inc/class.schedule.php'; include_once 'inc' . DIRECTORY_SEPARATOR . 'class.course.inc'; include_once 'inc/class.section.php'; include_once 'inc/class.page.php'; require_once('inc/schedule_store.inc'); $scripts = array('jQuery', 'jQueryUI', 'jValidate','qTip','schedInput'); $inputPage = new page('Scheduler', $scripts, FALSE); $schedule_store = FALSE; $sch = FALSE; $school = $inputPage->get_school(); if (isset($_REQUEST['s'])) { $schedule_store = schedule_store_init(); $schedule_id = (int)$_REQUEST['s']; $sch = schedule_store_retrieve($schedule_store, $schedule_id); } $my_hc = 'jQuery(document).ready( function() { var class_last = 0; '; if ($sch) { $nclasses = $sch->nclasses_get(); for ($class_key = 0; $class_key < $nclasses; $class_key ++) { $my_hc .= input_class_js($sch->class_get($class_key), ' '); } } else { $default_classes = school_default_classes($school); foreach ($default_classes as $default_class) $my_hc .= input_class_js($default_class, ' '); $my_hc .= ' class_last = add_class(); '; } if (!isset($_SESSION['saw_qtips'])) { $my_hc .= ' addTips();'; $_SESSION['saw_qtips'] = TRUE; } $my_hc .= ' }); '; $inputPage->headcode_add('scheduleInput', $inputPage->script_wrap($my_hc), TRUE); $inputPage->head(); /* * Force a student to choose a school or declare he's a generic * student before displaying the input form. To do this, we need * another variable in $_SESSION: $_SESSION['school_chosen']. */ if ($school && (!empty($_REQUEST['school']) || $school['id'] != 'default')) $_SESSION['school_chosen'] = TRUE; if (!empty($_REQUEST['selectschool']) || $school['id'] == 'default' && !isset($_SESSION['school_chosen'])) { $next_page = 'input.php'; if (isset($_GET['s'])) $next_page .= '?s=' . (int)$_GET['s']; ?>
Choose the school you attend from the list below. If you cannot find your school, you may proceed using the generic settings.
showSchools($next_page); $inputPage->foot(); exit; } $inputPage->showSavedScheds($_SESSION); ?>Welcome to SlatePermutateaddressStudent(', ', '', FALSE); ?>! To get started, enter in some of your class IDs, and click the autosuggestion to add available sections for each class.