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
 
@@ -806,14 +806,24 @@ class Schedule
 
	     . "</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;
0 comments (0 inline, 0 general)