function OnPageLoad()
    {
        echo '<h1>' . htmlentities($this->GetPageTitle(), ENT_QUOTES, "UTF-8", false) . '</h1>';
        if (is_object($this->match)) {
            echo "<p>Thank you. You have added the following match:</p>";
            echo new MatchListControl(array($this->match));
            echo "<p>Don't worry if you made a mistake, just <a href=\"" . htmlentities($this->match->GetEditNavigateUrl(), ENT_QUOTES, "UTF-8", false) . '">edit this match</a> 
			      or <a href="' . htmlentities($this->match->GetDeleteNavigateUrl(), ENT_QUOTES, "UTF-8", false) . '">delete this match</a>.</p>';
            $this->edit->SetHeading('Add another {0}');
            # Configure edit control
            $this->edit->SetCssClass('panel addAnotherPanel');
        } else {
            /* Create instruction panel */
            $o_panel = new XhtmlElement('div');
            $o_panel->SetCssClass('panel instructionPanel large');
            $o_title_inner1 = new XhtmlElement('div', 'Add your matches quickly:');
            $o_title = new XhtmlElement('h2', $o_title_inner1);
            $o_panel->AddControl($o_title);
            $o_tab_tip = new XhtmlElement('ul');
            $o_tab_tip->AddControl(new XhtmlElement('li', 'Use the <span class="tab">tab</span> key on your keyboard to move through the form'));
            $o_tab_tip->AddControl(new XhtmlElement('li', 'Type the first letter or number to select from a dropdown list'));
            if ($this->i_match_type != MatchType::TOURNAMENT_MATCH) {
                $o_tab_tip->AddControl(new XhtmlElement('li', 'If you\'re not sure when the match starts, leave the time blank'));
            }
            $o_panel->AddControl($o_tab_tip);
            echo $o_panel;
            # Configure edit control
            $this->edit->SetCssClass('panel');
        }
        # display the match to edit
        echo $this->edit;
        parent::OnPageLoad();
    }
 /**
  * Lazy load of aggregated editors
  * @return void
  */
 private function EnsureAggregatedEditors()
 {
     if (!is_object($this->fixture_editor)) {
         require_once 'stoolball/match-fixture-edit-control.class.php';
         $this->fixture_editor = new MatchFixtureEditControl($this->GetSettings(), null, false);
         $this->fixture_editor->SetNamingPrefix(get_class($this->fixture_editor));
         # Ensure prefix is unique
         $this->fixture_editor->SetShowValidationErrors(false);
         $this->fixture_editor->SetShowHeading(true);
         $this->fixture_editor->SetHeading('About this match');
         $this->fixture_editor->SetCssClass('panel');
     }
     if ($this->b_user_is_match_admin and !is_object($this->season_editor)) {
         require_once 'stoolball/season-id-editor.class.php';
         $this->season_editor = new SeasonIdEditor($this->GetSettings(), $this, 'Season');
     }
 }