Changeset - a935ca15be28
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 12 years ago 2013-10-30 08:50:24
ohnobinki@ohnopublishing.net
Add disclaimers about the autocompleted/saved_schedule data possibly being outdated.
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
inc/class.schedule.php
Show inline comments
 
@@ -897,48 +897,49 @@ 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;
 
    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;
 
    echo '<p><em>Please note that a saved schedule may have fallen out of sync with the course schedule as published by your registrar. To ensure that you are using up-to-date information, <a href="input.php">recreate your schedule</a>.</em></p>' . PHP_EOL;
 

	
 
    $outputPage->foot();
 
  }
 

	
 
  //--------------------------------------------------
 
  // Changes the title of the page.
 
  //--------------------------------------------------
 
  function changeTitle($t)
 
  {
 
    $this->title = $t;
 
  }
 

	
 
  //--------------------------------------------------
 
  // Make the time "pretty"
 
  //--------------------------------------------------
 
  function prettyTime($t){
 
    if($t >= 1200)
 
      {
 
	if ($t > 1259)
 
	  $t = ($t - 1200);
 
	return substr($t, 0, strlen($t)-2) . ":" . substr($t, strlen($t)-2, strlen($t)) . " PM";
 
      } else {
 
      return substr($t, 0, strlen($t)-2) . ":" . substr($t, strlen($t)-2, strlen($t)) . " AM";
 
    }
input.php
Show inline comments
 
@@ -253,49 +253,49 @@ if (!empty($_REQUEST['selectsemester']))
 
    $next_page .= 's=' . (int)$_GET['s'] . '&';
 
  if (!empty($_GET['school']))
 
    $next_page .= 'school=' . $_GET['school'] . '&';
 

	
 
  $inputPage->showSemesters($next_page);
 
  $inputPage->foot();
 
  exit;
 
  }
 

	
 
$inputPage->showSavedScheds($_SESSION);
 
?>
 

	
 
<?php if (!empty($input_warning_banner)): ?>
 
<div class="warning">
 
  <?php echo $input_warning_banner; ?>
 
</div>
 
<?php endif; ?>
 

	
 
<p>
 
  Welcome to SlatePermutate<?php $inputPage->addressStudent(', ', '', FALSE); ?>!
 
  <?php if (school_has_auto($inputPage->get_school())): ?>
 
  To get started, enter in a course identifier (e.g., <em>
 
  <?php echo empty($semester) || empty($semester['popular_course_id']) ? school_example_course_id($inputPage->get_school()) : $semester['popular_course_id']; ?></em>)
 
  and click the autosuggestion to automatically load available sections
 
  for each class.
 
  for each class. (Please note that autosuggestion data may occasionally fall out of sync with your registrar’s records).
 
  <?php else: ?>
 
  To get started, enter a course number and add some sections to it.
 
  Then specify each section's letter/number and what times it meets,
 
  add more courses, and click &ldquo;Find a Schedule&rdquo;.
 
  <!--'-->
 
  <?php endif; ?>
 
</p>
 

	
 
<form method="post" action="process.php" id="scheduleForm">
 
<p class="nospace" style="border-left: 5px solid #999; padding-left: 5px!important; padding-top: 5px!important;"><label>Schedule Name</label><br />
 
<input
 
    id="scheduleName"
 
    style="margin-bottom: 1em;"
 
    class="defText required input-submit-disable"
 
    type="text"
 
    size="25"
 
    title="My <?php echo $semester['name']; ?> Schedule"
 
    name="postData[name]"
 
    <?php
 
      if ($sch)
 
        echo 'value="' . htmlentities($sch->getName(), ENT_QUOTES) . '"';
 
      elseif ($errors_fix)
 
        echo 'value="' . htmlentities($_POST['postData']['name'], ENT_QUOTES) . '"';
 
    ?> />
0 comments (0 inline, 0 general)