diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -7,22 +7,61 @@ include_once 'class.section.php'; include_once 'inc/class.page.php'; $scripts = array('jQuery','jValidate','schedInput'); -$inputPage = new page('Scheduler', $scripts); +$inputPage = new page('Scheduler', $scripts, FALSE); + +$sch = FALSE; +if (isset($_REQUEST['savedkey']) && isset($_SESSION['saved'])) + { + $savedkey = (int)$_REQUEST['savedkey']; + if (isset($_SESSION['saved'][$savedkey])) + { + $sch = unserialize($_SESSION['saved'][$savedkey]); + } + } + +if ($sch) +{ + $nclasses = $sch->nclasses_get(); + $my_hc = ''; + $inputPage->headcode_add('scheduleInput', $my_hc, TRUE); +} +else + $inputPage->headcode_add('schduleInput', '', TRUE); + +$inputPage->head(); $inputPage->showSavedScheds($_SESSION); - ?>