Changeset - 0f237d0addac
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 14 years ago 2011-10-27 00:14:04
ohnobinki@ohnopublishing.net
Cleaner English concerning the number of possible and realized permutations.
1 file changed with 12 insertions and 2 deletions:
0 comments (0 inline, 0 general)
inc/class.schedule.php
Show inline comments
 
@@ -800,26 +800,36 @@ class Schedule
 
              . '        <span class="course-data">'.  htmlentities(json_encode($permutation_courses)) . "</span>\n"
 
	      . '      </div> <!-- id="section' . ($i + 1) . "\" -->\n";
 
	  }
 

	
 
          echo "    </div> <!-- class=\"scontent\" -->\n"
 
	     . "  </div> <!-- class=\"scroller\" -->\n"
 
	     . "</div> <!-- id=\"my-glider\" -->\n"
 
	     . $footcloser; // Closes off the content div
 
      } else {
 
      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
 
    echo '<p id="possiblestats">' . PHP_EOL;
 
    if ($this->possiblePermutations == 1)
 
      echo 'There was one possible permutation.';
 
    else
 
      echo 'There were a total of ' . $this->possiblePermutations . ' possible permutations.';
 
    if ($this->possiblePermutations == $this->nPermutations)
 
      echo ' No permutations had';
 
    elseif (!$this->nPermutations)
 
      echo ' All permutations had';
 
    else
 
      echo ' Only ' . $this->nPermutations . ' permutation' . ($this->nPermutations == 1 ? '' : 's') . ' had no';
 
    echo ' scheduling conflicts.' . PHP_EOL
 
      . '</p>' . PHP_EOL;
 
    if ($this->created)
 
      echo ''
 
	. '<p id="created-time">' . PHP_EOL
 
	. '  Created <span class="cute-time">' . gmdate('c', $this->created) . '</span>.' . PHP_EOL
 
	. '</p>' . PHP_EOL;
 

	
 
    $outputPage->foot();
 
  }
 

	
 
  //--------------------------------------------------
 
  // Changes the title of the page.
0 comments (0 inline, 0 general)