diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -39,9 +39,39 @@ var sectionsOfClass = Array(); // ', TRUE); $inputPage->head(); + +/* + * Force a student to choose a school or declare he's a generic + * student before displaying the input form. + */ +$school = $inputPage->get_school(); +if ($_REQUEST['setted'] == 1 || $school['id'] != 'default') + $_SESSION['school_setted'] = TRUE; +if ($_REQUEST['selectschool'] == 1 + || $school['id'] == 'default' && !isset($_SESSION['school_setted'])) + { +?> +

School Selection

+

+ Choose the school you attend from the list below. If you cannot + find your school, you may proceed using + the generic + settings. +

+showSchools('input.php?setted=1'); + $inputPage->foot(); + exit; + } + $inputPage->showSavedScheds($_SESSION); ?> -

Welcome to SlatePermutate! To get started, enter in some of your classes, and add available sections for each class.

+

+ Welcome to SlatePermutateaddressStudent(', ', '', + FALSE); ?>! (Not from ?) To get started, enter in some of your + classes, and add available sections for each class. +

Keyboard Shortcut: Press "c" to add a class


@@ -82,4 +112,5 @@ var sectionsOfClass = Array();

 


Advanced

*/ ?> showSchoolInstructions(); $inputPage->foot();