function OnLoadPageData()
 {
     # get id of season
     $i_id = $this->season_manager->GetItemId($this->season);
     # read season data when first asked to edit a season
     if ($i_id and !$this->IsPostback()) {
         $this->season_manager->ReadById(array($i_id));
         $this->season = $this->season_manager->GetFirst();
     }
     # get all teams
     $this->team_manager->SetGroupInactiveLast(false);
     $this->team_manager->ReadAll();
     $this->edit->SetTeams($this->team_manager->GetItems());
     # tidy up
     unset($this->season_manager);
     unset($this->team_manager);
 }