@@ -33,42 +33,43 @@ var sectionsOfClass = new Array();
}
else
$inputPage->headcode_add('schduleInput', '<script type="text/javascript">
var classNum = 0;
/* holds number of sections for each class */
var sectionsOfClass = Array();
// </script>', TRUE);
$inputPage->head();
/*
* Force a student to choose a school or declare he's a generic
* student before displaying the input form.
* student before displaying the input form. To do this, we need
* another variable in $_SESSION: $_SESSION['school_chosen'].
*/
$school = $inputPage->get_school();
if ($_REQUEST['setted'] == 1 || $school['id'] != 'default')
$_SESSION['school_setted'] = TRUE;
if ($_REQUEST['school'] == 1 || $school['id'] != 'default')
$_SESSION['school_chosen'] = TRUE;
if ($_REQUEST['selectschool'] == 1
|| $school['id'] == 'default' && !isset($_SESSION['school_setted']))
|| $school['id'] == 'default' && !isset($_SESSION['school_chosen']))
{
?>
<h2>School Selection</h2>
<p>
Choose the school you attend from the list below. <b>If you cannot
find your school</b>, you may proceed using
the <a href="input.php?school=default&setted=1">generic
the <a href="input.php?school=default">generic
settings</a>.
</p>
<?php
$inputPage->showSchools('input.php?setted=1');
$inputPage->showSchools('input.php');
$inputPage->foot();
exit;
$inputPage->showSavedScheds($_SESSION);
Welcome to SlatePermutate<?php $inputPage->addressStudent(', ', '',
FALSE); ?>! (<a href="input.php?selectschool=1">Not from <?php echo
$school['name']; ?>?</a>) To get started, enter in some of your
classes, and add available sections for each class.
Status change: