Changeset - eb70a5d98c42
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-10-10 23:24:01
ohnobinki@ohnopublishing.net
If a user tries to edit a saved schedule before a school profile is selected, remember the school profile he intended to edit after he chooses his profile.
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
input.php
Show inline comments
 
@@ -51,16 +51,19 @@ if ($school && (!empty($_REQUEST['school
 
if (!empty($_REQUEST['selectschool'])
 
    || $school['id'] == 'default' && !isset($_SESSION['school_chosen']))
 
  {
 
    $next_page = 'input.php';
 
    if (isset($_GET['s']))
 
      $next_page .= '?s=' . (int)$_GET['s'];
 
?>
 
<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">generic
 
  the <a href="<?php echo $next_page . (strpos($next_page, '?') === FALSE ? '?' : '&amp;'); ?>school=default">generic
 
  settings</a>.
 
</p>
 
<?php
 
    $inputPage->showSchools('input.php');
 
    $inputPage->showSchools($next_page);
 
    $inputPage->foot();
 
    exit;
 
  }
0 comments (0 inline, 0 general)