Plugin Directory

Changeset 1872042


Ignore:
Timestamp:
05/10/2018 11:31:15 AM (8 years ago)
Author:
veradeveloper
Message:

Excel Table Update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interactive-excel-tables/trunk/excel-tables.php

    r1850382 r1872042  
    33Plugin Name: Excel tables
    44Description: This plugin allows you to import excel file into wordpress.
    5 Version: 1.1
     5Version: 1.2
    66Author: WebArea | Vera Nedvyzhenko
    77*/
     
    247247       
    248248        if ($xlsx = SimpleXLSX::parse( $data_url, true) ) {
    249             echo '<table>';
     249            $table .= '<table>';
    250250            $ext_count = 1;
    251251            foreach( $xlsx->rows() as $r ) {
     
    256256                }
    257257
    258                 echo '<tr><'.$excall.'>'.implode('</'.$excall.'><'.$excall.'>', $r ).'</'.$excall.'></tr>';
     258                $table .= '<tr><'.$excall.'>'.implode('</'.$excall.'><'.$excall.'>', $r ).'</'.$excall.'></tr>';
    259259            $ext_count++;
    260260            }
    261             echo '</table>';
     261            $table .= '</table>';
    262262        } else {
    263             echo SimpleXLSX::parse_error();
     263            $table .= SimpleXLSX::parse_error();
    264264        }
    265265    }
Note: See TracChangeset for help on using the changeset viewer.