Output this screen using HTML..
184442
public void printHtmlMenuDesc(PrintWriter out, String strTag, String strParams, String strData)
    {
        out.print(m_recDetail.getClassExplain());
    }
762413
public function display() {
        if (count($this->capabilities) > self::NUM_CAPS_FOR_SEARCH) {
            global $PAGE;
            $jsmodule = array(
                'name' => 'rolescapfilter',
                'fullpath' => '/admin/roles/module.js',
                'strings' => array(
                    array('filter', 'moodle'),
                    array('clear', 'moodle'),                ),
                'requires' => array('node', 'cookie', 'escape')
            );
            $PAGE->requires->js_init_call('M.core_role.init_cap_table_filter', array($this->id, $this->context->id), false,
                $jsmodule);
        }
        echo '<table class="' . implode(' ', $this->classes) . '" id="' . $this->id . '">' . "\n<thead>\n";
        echo '<tr><th class="name" align="left" scope="col">' . get_string('capability', 'core_role') . '</th>';
        $this->add_header_cells();
        echo "</tr>\n</thead>\n<tbody>\n";

        // Loop over capabilities.
        $contextlevel = 0;
        $component = '';
        foreach ($this->capabilities as $capability) {
            if ($this->skip_row($capability)) {
                continue;
            }

            // Prints a breaker if component or name or context level has changed.
            if (component_level_changed($capability, $component, $contextlevel)) {
                $this->print_heading_row($capability);
            }
            $contextlevel = $capability->contextlevel;
            $component = $capability->component;

            // Start the row.
            $rowattributes = $this->get_row_attributes($capability);
            // Handle class attributes same as other.
            $rowclasses = array_unique(array_merge(array('rolecap'), $this->get_row_classes($capability)));
            if (array_key_exists('class', $rowattributes)) {
                $rowclasses = array_unique(array_merge($rowclasses, array($rowattributes['class'])));
            }
            $rowattributes['class']  = implode(' ', $rowclasses);

            // Table cell for the capability name.
            $contents = '<th scope="row" class="name"><span class="cap-desc">' . get_capability_docs_link($capability) .
                '<span class="cap-name">' . $capability->name . '</span></span></th>';

            // Add the cells specific to this table.
            $contents .= $this->add_row_cells($capability);

            echo html_writer::tag('tr', $contents, $rowattributes);
        }

        // End of the table.
        echo "</tbody>\n</table>\n";
    }
839360
public function display()
    {
        if (self::$displayer === null) {
            if (isset($_SERVER['REQUEST_URI'])) {
                echo $this->toXHTML();
            } else {
                echo $this->toString();
            }
        } else {
            $displayer = self::$displayer;
            $displayer->display($this);
        }
    }
637377
public function render() {

		$this->screen = get_current_screen();

		if ( ! $this->is_active() ) {
			return;
		}

		$this->screen->add_help_tab( array(
			'id'      => $this->slug,
			'title'   => $this->struct['title'],
			'content' => $this->struct['content'],
		) );

	}
716546
function start_html() {
        global $OUTPUT;

        // Render button to allow user to reset table preferences.
        echo $this->render_reset_button();

        // Do we need to print initial bars?
        $this->print_initials_bar();

        // Paging bar
        if ($this->use_pages) {
            $pagingbar = new paging_bar($this->totalrows, $this->currpage, $this->pagesize, $this->baseurl);
            $pagingbar->pagevar = $this->request[TABLE_VAR_PAGE];
            echo $OUTPUT->render($pagingbar);
        }

        if (in_array(TABLE_P_TOP, $this->showdownloadbuttonsat)) {
            echo $this->download_buttons();
        }

        $this->wrap_html_start();
        // Start of main data table

        echo html_writer::start_tag('div', array('class' => 'no-overflow'));
        echo html_writer::start_tag('table', $this->attributes);

    }
168015
public String getHtmlControl()
    {
        StringWriter sw = new StringWriter();
        PrintWriter rw = new PrintWriter(sw);
        this.getScreenField().printData(rw, HtmlConstants.HTML_DISPLAY);      // DO print screen
        String string = sw.toString();
        return string;
    }
921533
static public function display()
    {
        Sorter::sort(Listing::$files);
        $content = '<!DOCTYPE html>';
        $content .= sprintf('
<html xmlns="http://www.w3.org/1999/xhtml" lang="%s">', Translation::getCanonicalLocale());
        $content .= '
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>' . sprintf(Translation::trans('index_of'), Main::getDir()) . '</title>';
        $content .= static::getStyle();
        $content .= '
    </head>
    <body>';
        $content .= static::getTitle();
        $content .= '
        <table align="center">';
        $content .= static::getHeader();
        foreach (Listing::$files as $file) {
            $content .= static::getRow($file);
        }
        $content .= static::getFooter();
        $content .= '
        </table>';
        $content .= '
    </body>
</html>';
        die($content);
    }
1309191
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $this->calculatePages();

        if ($this->total_pages > 1) {
            $div_tag = new SwatHtmlTag('div');
            $div_tag->id = $this->id;
            $div_tag->class = $this->getCSSClassString();
            $div_tag->open();

            if ($this->display_parts & self::POSITION) {
                $this->displayPosition();
            }

            if ($this->display_parts & self::PREV) {
                $this->displayPrev();
            }

            if ($this->display_parts & self::PAGES) {
                $this->displayPages();
            }

            if ($this->display_parts & self::NEXT) {
                $this->displayNext();
            }

            $div_tag->close();
        }
    }
638691
def html(self):
        """"""
        output = self.html_preamble
        output += self._repr_html_()
        output += self.html_post
        return output
459534
public function display()
    {
        $options = $this->getOptions();

        if (!$this->visible || count($options) === 0) {
            return;
        }

        SwatWidget::display();

        $this->getForm()->addHiddenField($this->id . '_submitted', 1);

        $div_tag = new SwatHtmlTag('div');
        $div_tag->id = $this->id;
        $div_tag->class = $this->getCSSClassString();
        $div_tag->open();

        $input_tag = new SwatHtmlTag('input');
        $input_tag->type = 'checkbox';

        $label_tag = new SwatHtmlTag('label');
        $label_tag->class = 'swat-control';

        echo '<table>';

        if ($this->entry_column_title !== null) {
            echo '<thead><tr><th>&nbsp;</th><th>';
            echo $this->entry_column_title;
            echo '</th></tr></thead>';
        }

        // Only show the check all control if more than one checkable item is
        // displayed.
        if ($this->show_check_all && count($options) > 1) {
            echo '<tfoot><tr><td colspan="2">';
            $this->getCompositeWidget('check_all')->display();
            echo '</td></tr></tfoot>';
        }

        echo '<tbody>';
        foreach ($options as $key => $option) {
            echo '<tr><td>';

            $checkbox_id = $key . '_' . $option->value;

            $input_tag->value = (string) $option->value;
            $input_tag->removeAttribute('checked');
            $input_tag->name = $this->id . '[' . $key . ']';

            if (in_array($option->value, $this->values)) {
                $input_tag->checked = 'checked';
            }

            $input_tag->id = $this->id . '_' . $checkbox_id;
            echo '<span class="swat-checkbox-wrapper">';
            $input_tag->display();
            echo '<span class="swat-checkbox-shim"></span>';
            echo '</span>';

            $label_tag->for = $this->id . '_' . $checkbox_id;
            $label_tag->setContent($option->title, $option->content_type);
            $label_tag->display();

            echo '</td><td>';

            $this->getEntryWidget($option->value)->display();

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

        echo '</table>';

        $div_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
655408
protected function outputContent()
    {
        foreach ($this->_html as $part) {
            if ($part instanceof Element) {
                $part->output();
            } else {
                echo $part;
            }
        }
    }
908227
def write_screen(self, font, color, screen_pos, text, align="left",
                   valign="top"):
    """"""
    pos = point.Point(*screen_pos) * point.Point(0.75, 1) * font.get_linesize()
    text_surf = font.render(str(text), True, color)
    rect = text_surf.get_rect()
    if pos.x >= 0:
      setattr(rect, align, pos.x)
    else:
      setattr(rect, align, self.surf.get_width() + pos.x)
    if pos.y >= 0:
      setattr(rect, valign, pos.y)
    else:
      setattr(rect, valign, self.surf.get_height() + pos.y)
    self.surf.blit(text_surf, rect)
246113
def page(self, attr=None, fill=u' '):
        '''
        if attr is None:
            attr = self.attr
        if len(fill) != 1:
            raise ValueError
        info = CONSOLE_SCREEN_BUFFER_INFO()
        self.GetConsoleScreenBufferInfo(self.hout, byref(info))
        if info.dwCursorPosition.X != 0 or info.dwCursorPosition.Y != 0:
            self.SetConsoleCursorPosition(self.hout, self.fixcoord(0, 0))

        w = info.dwSize.X
        n = DWORD(0)
        for y in range(info.dwSize.Y):
            self.FillConsoleOutputAttribute(self.hout, attr, 
                                            w, self.fixcoord(0, y), byref(n))
            self.FillConsoleOutputCharacterW(self.hout, ord(fill[0]), 
                                             w, self.fixcoord(0, y), byref(n))

        self.attr = attr
17272
public void printHtmlHeading(PrintWriter out)
    {
        if (this.getScreenField().getConverter() != null)
            super.printHtmlHeading(out);
        else if (this.getScreenField().getParentScreen() instanceof GridScreen)
        { // These are command buttons such as "Form" or "Detail"
            String strImage = "Form";
            if (((SButtonBox)this.getScreenField()).getImageButtonName() != null)
                strImage = ((SButtonBox)this.getScreenField()).getImageButtonName();
            out.println("<th align=\"center\" valign=\"center\"><img src=\"" + HtmlConstants.IMAGE_DIR + "buttons/" + strImage + ".gif\" width=\"16\" height=\"16\" alt=\"Open this record\"></th>");
        }
    }
117306
public function output()
    {
        // If the view file exists
        if ($this->hasFile()) {
            // Extract all view variables
            extract($this->getVars());
            ob_start();
            include($this->getPath() . '/' . $this->getFile(true));
            $html = ob_get_contents();
            ob_end_clean();
            return $html;
        } else {
            die('Fatal Error: ' . $this->getPath() . '/' . $this->getFile(true) . ' does not exist.');
        }
    }
1072031
public void printScreenFieldData(ScreenComponent sField, PrintWriter out, int iPrintOptions)
    {
        ((HScreenField)((ScreenField)sField).getScreenFieldView()).printHtmlHeading(out);
        ((HScreenField)((ScreenField)sField).getScreenFieldView()).printDisplayControl(out);
    }
235666
def htmlFormat(output, pathParts = (), statDict = None, query = None):
  """"""
  statDict = statDict or scales.getStats()
  if query:
    statDict = runQuery(statDict, query)
  _htmlRenderDict(pathParts, statDict, output)