public function import_preview_page($header, $data) {

        $html = $this->output->heading(get_string('importpreview', 'grades'));

        $table = new html_table();
        $table->head = $header;
        $table->data = $data;
        $html .= html_writer::table($table);

        return $html;
    }
public function import_preview_page($header, $data) {

        $html = $this->output->heading(get_string('importpreview', 'grades'));

        $table = new html_table();
        $table->head = $header;
        $table->data = $data;
        $html .= html_writer::table($table);

        return $html;
    }
public function import_preview_page ( $ header , $ data ) { $ html = $ this -> output -> heading ( get_string ( 'importpreview' , 'grades' ) ) ; $ table = new html_table ( ) ; $ table -> head = $ header ; $ table -> data = $ data ; $ html .= html_writer :: table ( $ table ) ; return $ html ; }
A renderer for the CSV file preview.

@param array $header Column headers from the CSV file.
@param array $data The rest of the data from the CSV file.
@return string html to be displayed.
A renderer for the CSV file preview .