Swat/SwatRadioNoteBook.php
protected function displaySinglePage(SwatNoteBookPage $page)
    {
        $container = new SwatHtmlTag('div');
        $container->id = $this->id;
        $container->class = 'swat-radio-note-book';
        $container->open();

        $div = new SwatHtmlTag('div');
        $div->class = 'swat-radio-note-book-page';
        $div->open();
        $page->display();
        $div->close();

        $input = new SwatHtmlTag('input');
        $input->type = 'hidden';
        $input->name = $this->id;
        $input->id = $this->id . '_' . $page->id;
        $input->value = $this->id . '_' . $page->id;
        $input->display();

        $container->close();
    }
protected function displaySinglePage(SwatNoteBookPage $page)
    {
        $container = new SwatHtmlTag('div');
        $container->id = $this->id;
        $container->class = 'swat-radio-note-book';
        $container->open();

        $div = new SwatHtmlTag('div');
        $div->class = 'swat-radio-note-book-page';
        $div->open();
        $page->display();
        $div->close();

        $input = new SwatHtmlTag('input');
        $input->type = 'hidden';
        $input->name = $this->id;
        $input->id = $this->id . '_' . $page->id;
        $input->value = $this->id . '_' . $page->id;
        $input->display();

        $container->close();
    }
protected function displaySinglePage ( SwatNoteBookPage $ page ) { $ container = new SwatHtmlTag ( 'div' ) ; $ container -> id = $ this -> id ; $ container -> class = 'swat-radio-note-book' ; $ container -> open ( ) ; $ div = new SwatHtmlTag ( 'div' ) ; $ div -> class = 'swat-radio-note-book-page' ; $ div -> open ( ) ; $ page -> display ( ) ; $ div -> close ( ) ; $ input = new SwatHtmlTag ( 'input' ) ; $ input -> type = 'hidden' ; $ input -> name = $ this -> id ; $ input -> id = $ this -> id . '_' . $ page -> id ; $ input -> value = $ this -> id . '_' . $ page -> id ; $ input -> display ( ) ; $ container -> close ( ) ; }
Displays the only page of this notebook if this notebook contains only
one page

@param SwatNoteBookPage $page the page to display.
Displays the only page of this notebook if this notebook contains only one page