Swat/SwatRadioNoteBook.php
protected function displayPage(SwatNoteBookPage $page, $count = 0)
    {
        echo '<tr class="swat-radio-note-book-option-row">';
        echo '<td>';

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

        if ($page->id == $this->selected_page) {
            $radio->checked = 'checked';
        }

        echo '<span class="swat-radio-wrapper">';
        $radio->display();
        echo '<span class="swat-radio-shim"></span>';
        echo '</span>';

        echo '</td>';
        echo '<td>';

        $label = new SwatHtmlTag('label');
        $label->for = $this->id . '_' . $page->id;
        $label->setContent($page->title, $page->title_content_type);
        $label->display();

        echo '</td>';
        echo '</tr>';

        echo '<tr class="swat-radio-note-book-page-row">';
        echo '<td></td>';

        $td = new SwatHtmlTag('td');
        $td->class = 'swat-radio-note-book-page';

        if ($page->id == $this->selected_page) {
            $td->class .= ' selected';
        }

        $td->open();
        echo '<div class="swat-radio-note-book-page-container">';
        $page->display();
        echo '</div>';
        $td->close();

        echo '</tr>';
    }
protected function displayPage(SwatNoteBookPage $page, $count = 0)
    {
        echo '<tr class="swat-radio-note-book-option-row">';
        echo '<td>';

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

        if ($page->id == $this->selected_page) {
            $radio->checked = 'checked';
        }

        echo '<span class="swat-radio-wrapper">';
        $radio->display();
        echo '<span class="swat-radio-shim"></span>';
        echo '</span>';

        echo '</td>';
        echo '<td>';

        $label = new SwatHtmlTag('label');
        $label->for = $this->id . '_' . $page->id;
        $label->setContent($page->title, $page->title_content_type);
        $label->display();

        echo '</td>';
        echo '</tr>';

        echo '<tr class="swat-radio-note-book-page-row">';
        echo '<td></td>';

        $td = new SwatHtmlTag('td');
        $td->class = 'swat-radio-note-book-page';

        if ($page->id == $this->selected_page) {
            $td->class .= ' selected';
        }

        $td->open();
        echo '<div class="swat-radio-note-book-page-container">';
        $page->display();
        echo '</div>';
        $td->close();

        echo '</tr>';
    }
protected function displayPage ( SwatNoteBookPage $ page , $ count = 0 ) { echo '<tr class="swat-radio-note-book-option-row">' ; echo '<td>' ; $ radio = new SwatHtmlTag ( 'input' ) ; $ radio -> type = 'radio' ; $ radio -> name = $ this -> id ; $ radio -> id = $ this -> id . '_' . $ page -> id ; $ radio -> value = $ this -> id . '_' . $ page -> id ; if ( $ page -> id == $ this -> selected_page ) { $ radio -> checked = 'checked' ; } echo '<span class="swat-radio-wrapper">' ; $ radio -> display ( ) ; echo '<span class="swat-radio-shim"></span>' ; echo '</span>' ; echo '</td>' ; echo '<td>' ; $ label = new SwatHtmlTag ( 'label' ) ; $ label -> for = $ this -> id . '_' . $ page -> id ; $ label -> setContent ( $ page -> title , $ page -> title_content_type ) ; $ label -> display ( ) ; echo '</td>' ; echo '</tr>' ; echo '<tr class="swat-radio-note-book-page-row">' ; echo '<td></td>' ; $ td = new SwatHtmlTag ( 'td' ) ; $ td -> class = 'swat-radio-note-book-page' ; if ( $ page -> id == $ this -> selected_page ) { $ td -> class .= ' selected' ; } $ td -> open ( ) ; echo '<div class="swat-radio-note-book-page-container">' ; $ page -> display ( ) ; echo '</div>' ; $ td -> close ( ) ; echo '</tr>' ; }
Displays an individual page in this radio notebook

@param SwatNoteBookPage $page the page to display
@param integer $count the ordinal idnex of the page being displayed
starting at 1.
Displays an individual page in this radio notebook