if (!empty($credit_hours) && !is_numeric($credit_hours))
{
return 'Invalid credit-hour specification of <tt>' . htmlentities($credit_hours) . '</tt> for ' . htmlentities($course_name) . '-' . htmlentities($letter) . '. Please use a floating point number or do not enter anything if the number of credit hours is not known.';
}
foreach ($this->courses as $course)
if (!strcmp($course_name, $course->getName()))
{
$section = $course->section_get($letter);
if (!$section)
{
$section = new Section($letter, array(), $synonym);
$section = new Section($letter, array(), $synonym, $credit_hours);
echo '<html><body><p>There are no possible schedules. Please <a href="input.php?s='.$this->id.'">try again</a>.</p></body></html>';
}
echo '<p id="possiblestats">' . PHP_EOL
. ' There were a total of ' . $this->possiblePermutations . ' possible permutations. Only ' . $this->nPermutations . ' permutations had no class conflicts.' . PHP_EOL